Hacker News new | ask | show | jobs
by imtringued 2785 days ago
Do those languages have anything even remotely similar to linear types [0]? If not then they aren't even in the same league as Rust.

[0] https://en.wikipedia.org/wiki/Substructural_type_system

These types of comments really irritate me. New thing X comes out that solves an unsolved problem. Then someone comments "why not obsolete thing Y that doesn't solve the problem sufficiently"?

I constantly see comparisons like JVM vs WASM [1], or in this case Ada vs Rust. And very often the newer thing is superior and is not popular just because of cargo culting.

[1] i.e. To obtain similar performance while still using java bytecode you will have to stop using the Java object model completely and exclusively use sun.misc.Unsafe and calculate field offsets of structs manually and still have the risk of vulnerabilities like buffer overflows similar to writing programs in C.