I am getting a bit tired of slop rust compilers/whatever, they will say they are X faster but then they cannot compile/link freya/rust-skia (I just tried)...
tip: If you are building a rust compiler build the top 5000 rust crates, repeat until any of them fail!
@muqeet_archive@ptr_to_joel could it be rewritten further, into another language? possibly, but you'd have to demonstrate better safety and speed, which isn't that easy since you can always harden further and optimise further by improving the Rust. you won't get that step change moving from Rust to X
@muqeet_archive@ptr_to_joel so the hype has a basis, you know? but the fact that rewrites are even being considered in the first place, well that's essentially a meme.
@korulang@4ster_light no, it's an analogy. but it's an unusually precise analogy.
flowistry is an external tool that chose between 2 approaches: rely on modular contracts, or do WPA. they implemented & compared those approaches, & settled on modular contracts.
rust made the same choice. understand?
@korulang@4ster_light you're a certain kind of purist, i get it, and it's something i genuinely can appreciate. nothing that you say (except the hyperbole) is wrong as such. but there are practical realities that Rust has considered. Rust is a very, very good language, because it is pragmatic.
@korulang@4ster_light people are complaining enough about Rust's compile times as it is... can you imagine?
it's a practical engineering trade-off where the experience of the compiler-user is being balanced against the experience of the language-user. do you understand what i mean?
@korulang@4ster_light it's a little imprecise (interior mutability, unsafe and partial-struct mutation) but compared to whole program analysis which took something like 100x more time it still got 94% accuracy. rustc itself takes the exact same trade-off: require and rely on modular explicit contracts
@korulang@4ster_light it wouldn't surprise me. it's a trade-off. there's a project called flowistry that does program slicing for rust programs (tracking everything a variable is affected by and everything it affects) and they use rust's function signatures to generate the traces, and they found that
@korulang@4ster_light But Rust also is pragmatic - the inference boundary is the function signature i.e. the contracts - I'm sure you could manage whole program analysis but it would be expensive. Given that people already want to think in contracts (guarantees) it's an acceptable ceremony.
@korulang@4ster_light We already have garbage collected languages where you don't have to think about it. Rust is a memory managed language in the sense that it doesn't make you responsible over the memory, but you are still accountable over the memory, that's where the explicitness is necessary.