← Back to context

Comment by NBJack

2 days ago

We can learn a lot about memory safety from Rust. But if we can achieve the same dream of Fil-C for other more common languages that need it, Rust's popularity will likely wane.

I doubt it. I am a big fan of Rust's memory safety, but it's not just memory safety that draws me to Rust. Having a strong, featureful type system is also a big plus for me, and even if Fil-C could someday magically compile any program or library without modification, and its performance trade offs could be mitigated, I'd still write Rust, because C is miserable to write. (And I say this as a 25+ year C programmer.)

Fil-C has a large performance impact though, and it'll always be reasonably significant. Rusts popularity has always been the combo of safety and performance, otherwise you might as well just use C#

  • > Rusts popularity has always been the combo of safety and performance, otherwise you might as well just use C#

    Combined with the ability to compile to a single native binary, having a solid package management solution, a fairly advanced type system, and a solid selection of nice language features. Usually you need to give up at least one of those.

    • > Combined with the ability to compile to a single native binary, having a solid package management solution, a fairly advanced type system, and a solid selection of nice language features

      Good to see a praise for C#.

      1 reply →

    • Had some headaches with nuget, and C# type system isn't as advanced as Rust or TypeScript, even less so in comparison to Haskel (still solid notheless), but it really is a solid choice. Specially in comparison to Java.