←back to thread

579 points todsacerdoti | 5 comments | | HN request time: 0.846s | source
1. xvilka ◴[] No.44287691[source]
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.
replies(2): >>44287777 #>>44287870 #
2. nunobrito ◴[] No.44287777[source]
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.

3. ajsnigrutin ◴[] No.44287870[source]
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.
replies(1): >>44287899 #
4. xvilka ◴[] No.44287899[source]
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.
replies(1): >>44287955 #
5. ajsnigrutin ◴[] No.44287955{3}[source]
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.