Java/C# vs Rust
Java/C# vs Rust
Posted Aug 17, 2024 4:13 UTC (Sat) by khim (subscriber, #9252)In reply to: Java/C# vs Rust by Cyberax
Parent article: Standards for use of unsafe Rust in the kernel
> They don't have to do monomorphisation that requires you to keep pretty much all the stuff in RAM.
Which means that it would have been Rust with Extended Pascal/Ada like generics (which would have evolved into a Swift-like generics later, most likely).
I think we are arguing about different things: you say that Rust in a form exactly like Rust was done in 2015 wasn't possible to gave in year 1995 while I say that Rust with all the important properties that matter for safety was easy to create using 1995 technology.
It wouldn't have been competitive with what we have today but it would have been as fast as Java in 1995 (Java wasn't a speed daemon back then buy any means) and it could have evolved, over time, into safe language that could be used for low-level things like Linux kernel, too.
But Java had better marketing and it also promoted write once, run anywhere myth thus it was chosen. And we had to wait 20 years for a something that's safer than what we had in a year 1981.
