Top
Best
New

Posted by jabits 1 day ago

Migrating from Go to Rust(corrode.dev)
431 points | 441 commentspage 5
amelius 1 day ago|
Go has shorter and more predictable GC pauses. If a reference count drops to zero in Rust, it may take an unbounded time to free all the things it refers to (recursively if necessary).
cube00 19 hours ago||
I still prefer having deterministic control over when the free occurs.

For example, I can transmit the response to the client and then free the memory afterwards so they're not kept waiting.

amelius 12 hours ago||||
Can't use that approach for a GUI.
za3faran 7 hours ago|||
What if you have many clients that are constantly coming in, when do you decide to free the memory after sending their respective responses?
HackerThemAll 12 hours ago||
The datetime to string conversions in Go are devil's spawn.
kermatt 5 hours ago|
Share some examples?
phplovesong 7 hours ago||
Go has warts, but projects like Lisette (https://lisette.run/) try to fix those. Go has bare syntax, as lack some (modern?) features. But imho it has a superb runtime, eg has a WAY better concurrency story than what you see in Rust.
up2isomorphism 14 hours ago||
I never feel rust learning curve is steep. It is just everything is awkward, even more awkward than modern C++.
shevy-java 16 hours ago||
Some years ago Go was all the hype rage.

Now Rust is the new Go.

I find that very confusing.

p2detar 13 hours ago|
Some folks already dropped rust and went with zig. Honestly, to me it seems only devs at the peak density of the programming bell curve, are the ones arguing about “the better” programming language.
sylware 9 hours ago||
What about AI assisted migration?

There was a signal to assist c++ to plain and simple C AI mass migration.

Removing any languages with ultra-complex syntax towards simple and plain C is always a good thing.

asplake 12 hours ago||
I
fithisux 16 hours ago||
JVM languages to Rust, I understand it somehow.

But Go to Rust???

It does not make any sense.

hu3 1 hour ago|
They run a Rust consultancy business. Anything is worth converting to Rust, for the right price.
dilyevsky 23 hours ago||
> Under heavy allocation, P99 latency tails are noticeably worse than a Rust equivalent that simply doesn’t allocate on the hot path.

Lmao so not an equivalent then? Standard glibc malloc, which is default in rust, will also similarly degrade albeit for different reasons.

More comments...