News for hackers. Stuff that matters.
Re:Why Rust? by ttfkam on Tuesday October 18, 2022 @09:19AM (#33246672)
Obviously not fast enough for Google since they literally invented a new programming language (Go) to address the compile time and runtime limitations of Java.
Re:Why Rust? by thesuperbigfrog on Tuesday October 18, 2022 @09:39AM (#33246934)
>> Obviously not fast enough for Google since they literally invented a new programming language (Go) to address the compile time and runtime limitations of Java.

Go was created to overcome complexity issues and compile times of C++ (not Java):

https://commandcenter.blogspot.com/2012/06/less-is-exponenti...

https://go.dev/talks/2015/gophercon-goevolution.slide#4

Re:Why Rust? by ttfkam on Sunday October 23, 2022 @03:32PM (#33309546)
I misspoke (miswrote?). You are correct, it was created to address the issues Google had with C++ and—crucially—other internally supported languages like Java and Python could not adequately fill C++'s role.

If Java could have filled this role in both compile time and memory efficiency, Go in all likelihood would never have been created.

But yes, Go beats Java in compile-time speed as well.

Re:Why Rust? by traceroute66 on Tuesday October 18, 2022 @09:24AM (#33246726)
> they literally invented a new programming language (Go) to address the compile time and runtime limitations of Java.

And then ironically they then use a complex and runtime-heavy Java-based CI/CD to manage the compilation of their Go codebase.

Go is great though, best bit is how its so useable for web-stuff out of the box. Unlike Rust where you have to spend half your life either re-inventing the wheel or choosing which of hundreds of crates you want to use to do stuff that should be part of stdlib.

Re:Why Rust? by fuckstick on Tuesday October 18, 2022 @09:25AM (#33246729)
Of all the criticisms I’ve heard hurled at Java, compile time isn’t one of them. Have you actually used any of these things you comment on?
Re:Why Rust? by vips7L on Tuesday October 18, 2022 @10:34AM (#33247825)
Javac isn't even an optimizing compiler. There's few things faster than it.
Re:Why Rust? by ttfkam on Wednesday October 19, 2022 @10:54AM (#33263115)
I used to work for Google and have yet to see Java compile faster than Go.