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

Skip to comments.

Why I Switched From Rust to Go on the Backend
Level up.gitconnected.com ^ | 10th November 2022 | Anthony Oleinik

Posted on 11/15/2022 9:09:15 PM PST by Cronos

click here to read article


Navigation: use the links below to view more comments.
first 1-2021-35 next last
Anyone else moving to Go?
1 posted on 11/15/2022 9:09:15 PM PST by Cronos
[ Post Reply | Private Reply | View Replies]

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

As a guy taught how to design languages, I find this interesting.
The critical thing you really do is define the problem you want to deal with and then select the methods, tools, resources, and supplies to do that task in the time frame, within the costs, and deal with the inevitable failures
you will encounter.
That is not coding.
It is called engineering.
A skill most all “High Tech” coders don’t have a clue about.


3 posted on 11/15/2022 9:45:18 PM PST by rellic
[ Post Reply | Private Reply | To 1 | View Replies]

To: ShadowAce

tech ping


4 posted on 11/15/2022 9:46:47 PM PST by dayglored ("Listen. Strange women lying in ponds distributing swords is starting to sound pretty good.")
[ 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: rellic

You need software engineers and architects to design the flow and hld and to some level lld, but for the grunt worm it may be better to use coders as well, there are more of them and cheaper. And invest in great qa, preferably pessimists who believe there is something wrong with the code.


6 posted on 11/15/2022 10:39:39 PM PST by Cronos (.)
[ Post Reply | Private Reply | To 3 | View Replies]

To: dayglored

Impressive


7 posted on 11/15/2022 10:40:16 PM PST by Cronos (.)
[ Post Reply | Private Reply | To 5 | View Replies]

To: Cronos

Thanks. I deeply enjoy programming. I’m very fortunate in that for most of my career I’ve been paid to do what I would otherwise do in my spare time as a hobby. That’s a blessing.


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

To: rellic
Gimme back my FORTRAN. That is something I understand. Crunch numbers. Caveman.

Long retired Engineer….

9 posted on 11/15/2022 10:59:23 PM PST by Hootowl99
[ Post Reply | Private Reply | To 3 | View Replies]

To: rellic

Rust, Golang, Hasura, Postgres, GraphQL API, REST, GQL, CRUD, S3, etc etc

But of course..... easy as pie.
I can barely do html/css to create a simple webpage.


10 posted on 11/16/2022 1:15:13 AM PST by minnesota_bound (Need more money to buy everything now)
[ Post Reply | Private Reply | To 3 | View Replies]

To: Cronos

Peruse later.


11 posted on 11/16/2022 2:44:28 AM PST by NetAddicted (Just looking)
[ Post Reply | Private Reply | To 1 | View Replies]

To: dayglored

“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.”

I agree with all your comments especially the one above. In many lustrum of programming for money I have yet to find an app that can’t be done most efficiently in ‘c’ and (gasp!) COBOL. Web pages in ‘PHP’ work well when supported by ‘bash’ and ‘c’.

In reality the project should define the language(s) needed instead of forcing a language on a project.


12 posted on 11/16/2022 2:58:58 AM PST by ByteMercenary (Slo-Joe and KamalHo are not my leaders.)
[ Post Reply | Private Reply | To 5 | View Replies]

To: Cronos

I don’t have a clue what this guy is talking about, but I found it an entertaining read. Lots of people who think they know how to write could learn something from him.


13 posted on 11/16/2022 3:50:16 AM PST by avenir (Information overload = Pattern recognition)
[ Post Reply | Private Reply | To 1 | View Replies]

To: Cronos; rdb3; JosephW; martin_fierro; Still Thinking; zeugma; Vinnie; ironman; Egon; raybbr; ...

14 posted on 11/16/2022 4:02:12 AM PST by ShadowAce (Linux - The Ultimate Windows Service Pack )
[ Post Reply | Private Reply | To 1 | 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

i prefer c/c++ for my server backend responding to network requests or to easily enable pub/sub strategies... all with an eye on performance.

the whole stack these days seems to be tending towards:

( c/c++ backend ) <—> ( protobuf messaging ) <—> ( javascript based web front end )

native frontend code seems to be going the way of the dodo, with chromium clients being the portable foundation for most native dev

thoughts?


17 posted on 11/16/2022 5:21:01 AM PST by sten (fighting tyranny never goes out of style)
[ Post Reply | Private Reply | To 1 | View Replies]

To: dayglored
You seem to run parallel with my experience. To be fully transparent, I don't think C++ brings much to the embedded workplace.

I've written quite a lot in assembler as well, but so much in the last thirty years or so.

18 posted on 11/16/2022 5:23:17 AM PST by GingisK
[ Post Reply | Private Reply | To 5 | View Replies]

To: ByteMercenary

COBOL! Wash out your mouth!


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

To: cymbeline
“Rust has innate garbage collection”

Write so that you don't create garbage.

20 posted on 11/16/2022 5:25:53 AM PST by GingisK
[ Post Reply | Private Reply | To 15 | View Replies]


Navigation: use the links below to view more comments.
first 1-2021-35 next last

Disclaimer: Opinions posted on Free Republic are those of the individual posters and do not necessarily represent the opinion of Free Republic or its management. All materials posted herein are protected by copyright law and the exemption for fair use of copyrighted works.

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