4 ms·
Meanwhile a large C++ code base I maintain broke on a minor GCC version bump. My Rust 1.0 code on the other hand has compiled just fine since the dawn of stabl
by bfrog 5y ago
Meanwhile a large C++ code base I maintain broke on a minor GCC version bump.
My Rust 1.0 code on the other hand has compiled just fine since the dawn of stable rust.
The only really stable languages might be C89, C99, some fortran, and Cobol.
I think the Rust team does a fantastic job of supporting old code bases with new compilers. Crater is a testament to how much they care in fact.
- rvz 5y agoWell of course a hello world Rust project would just compile fine since Rust 1.0, unlike my recent Rust project which broke again and that just broke on a minor version bump. As for another ancient Rust project which was also on 1.0 when I was trying the language out, the borrow checker on 1.52.1 screeched at every line of my code. While C++ is just as bad, the fact that Firefox must always use the latest Rust compiler gives you a hint that it will not work on lower versions; hence the need of a MSRV. (Minimum Supported Rust Version)
- bfrog 5y agoMy project had about 40kloc and acted as a low latency ad server. Far from a hello world.
- dexterlemmer 5y agoIf the borrow checker of 1.52.1 "screeches" on every LOC but it compiles on 1.0 then very likely either there's some bug in 1.52.1 that you should report or you code was never correct and should never have compiled in 1.0 in the first place but did due to a compiler bug that since got fixed. Of course, without more info nobody can tell which of these or even whether it is one of these two or something else.