Comment by xvilka

Comment by xvilka a day ago

4 replies

Another thing is to update mesh stack to more modern language, to improve security and resiliency - projects like B.A.T.M.A.N, Babel, OSLR, FRRouting, etc would largely benefit from being rewritten from pure C to language like Rust.

nunobrito a day ago

Being "modern" is a poor excuse. Code in C can be ported to anywhere, code in your "modern" language can only be understood by a few and is not portable anymore to other languages.

Please don't confuse security with resilience, they might be connected in some dots but have fundamentally different purposes.

ajsnigrutin a day ago

Why? I mean... we had many "modern languages" that are not "modern" anymore, but the code in C still works, and when rust loses the "language of the week" status, the code in C will continue to be developed, and rust will be like go, ruby and others.

  • xvilka a day ago

    Because of the memory safety, better type system, and better infrastructure of testing. There's even no well-maintained property-based testing framework for C. Rust provides all of this out of the box or with popular crates.

    • ajsnigrutin a day ago

      Sure, multiple languages do that and many more will.... will you rewrite all the software ever written to any new language that has something new? The current code works.