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.
[ Parent
| on HN ]
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...
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.
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?
Javac isn't even an optimizing compiler. There's few things faster than it.