News for hackers. Stuff that matters.
Re:Why asynchronous Rust doesn't work by thu2111 on Wednesday March 10, 2021 @05:20AM (#26409761)
Why would I want to write a server in a language that requires such awkward approaches to basics like coroutines and dynamic dispatch when I could use kotlin on the JVM and get pauseless GC, ultra fast edit/compile/run cycles, efficient and powerful coroutines, and eventually Loom which will eliminate the whole problem of coloured functions completely and let me just forget about coroutines? Multi threading bugs are not so common in real Java/Kotlin programs to justify this epic set of costs, in my view.
Re:Why asynchronous Rust doesn't work by karlmdavis on Wednesday March 10, 2021 @09:11AM (#26411374)
Have you ever tried writing the same application on both a JVM language and in Rust, and then measuring the latency & throughput differentials? Blew my mind the first time.

Of course, if speed isn’t a concern for you, then please carry on.

Re:Why asynchronous Rust doesn't work by roca on Wednesday March 10, 2021 @07:52AM (#26410706)
GC always forces you into a tradeoff between pause time, throughput, and memory overhead.
Re:Why asynchronous Rust doesn't work by xiphias2 on Wednesday March 10, 2021 @11:00AM (#26412606)
Good luck getting Google's ad backend with 20ms latency budget and billions of dollars of revenue approved with the JVM.

Therr are many tasks where what you suggests is just too slow and unpredictable.

Don't get me wrong, I think JVM is great, it's just not systems level programming.

Re:Why asynchronous Rust doesn't work by thu2111 on Wednesday March 10, 2021 @11:24AM (#26412895)
Modern JVM GCs have pause times below 1msec. That's a new capability though so most people aren't yet aware of it.

And Google's ads backend are hardly the definition of server. Their ads front-end for example always used to be in Java. Not sure what it is these days

Re:Why asynchronous Rust doesn't work by ha_jo_331 on Wednesday March 10, 2021 @06:40AM (#26410223)
Or even better: Go