Free Republic
Browse · Search
General/Chat
Topics · Post Article

To: Cronos

I would generally prefer C, but that’s more , I suspect, from habit. Rust has innate garbage collection.

I think of C as for when you need very low level efficient code, and C++ for when you need a *lot* of very efficient code all in one language. Rust covers almost all of the situations you would use C today, and a lot of the C++ cases as well. Go has some of the C++ cases, but it’s pretty similar to the C# or even Haskell cases.


2 posted on 11/15/2022 9:22:07 PM PST by Cronos (.)
[ Post Reply | Private Reply | To 1 | View Replies ]


To: Cronos
C has been my primary language of choice for 40 years, although in the last 8, as I moved away from doing lots of programming, I have written more in script (mainly Bash), augmenting with C when appropriate. Back in the day I generated upwards of 200K lines of C, including a small-C compiler, numerous industrial application programs and device drivers, and the code for a spacecraft attitude control device (Why C for space? because my only other option was Fortran.)

But I haven't been wow'ed by any of the newer languages, Rust or Go among them, perhaps for the same reason that I haven't gotten around to learning Italian -- I don't have an application to write that demands it.

5 posted on 11/15/2022 9:59:24 PM PST by dayglored ("Listen. Strange women lying in ponds distributing swords is starting to sound pretty good.")
[ Post Reply | Private Reply | To 2 | View Replies ]

To: Cronos

“Rust has innate garbage collection”

That’s expensive at execution time. Otherwise all languages would have it.


15 posted on 11/16/2022 4:42:41 AM PST by cymbeline
[ Post Reply | Private Reply | To 2 | View Replies ]

To: Cronos
I use C/C++ exclusively. This is mostly because I design, build, and program embedded devices. Occasionally I must write something on the PC end to communicate with those instruments. Happiness comes from not doing phones, tablets, or web pages.

Shoot, I even dip into assembler from time to time whenever an interrupt handle must be really fast.

16 posted on 11/16/2022 5:19:41 AM PST by GingisK
[ Post Reply | Private Reply | To 2 | View Replies ]

To: Cronos

The main reason Rust was created is because of memory safety. With C and C++ you have to know how to code safely in order to write code that can’t be hacked. Rust supposedly makes your program much more resistant to being hacked.

Or so they say. I am not a coder, but I do play one on TV.


23 posted on 11/16/2022 5:50:41 AM PST by sloanrb
[ Post Reply | Private Reply | To 2 | View Replies ]

Free Republic
Browse · Search
General/Chat
Topics · Post Article


FreeRepublic, LLC, PO BOX 9771, FRESNO, CA 93794
FreeRepublic.com is powered by software copyright 2000-2008 John Robinson