4 ms·
While it's not a C-like language, Nim [0] is an interesting take on how to do a "systems" language, with a very interesting GC story (and a way to turn it off a
by girvo 11y ago
While it's not a C-like language, Nim [0] is an interesting take on how to do a "systems" language, with a very interesting GC story (and a way to turn it off altogether or manually manage memory when required) and amazing C FFI -- I'm not much of a C programmer, but even I've managed to integrate C libraries into Nim. Still not quite what you're after though; I think more something like Go, with manual memory management would be nicer. A "modern C", that takes learnings from C++'s successes and failures, but keeps C's strengths.
Rust [1], basically!
[0] http://nim-lang.org/ http://nim-lang.org/
[1] http://www.rust-lang.org/ http://www.rust-lang.org/
- nickpsecurity 11y agoI saw it a while back and thought "another toy language that won't deliver." Reading the FAQ, the author quoted as inspiration every alternative language I mentioned in this thread lol. He's done his homework. And the features and compatibility have gotten quite impressive since first release... likely due to him using it to build itself (productivity advantage). And under a MIT license. I appreciate you bringing it back to my attention. It's worth someone evaluating thoroughly against C and C++ for systems programming (incl OS) in terms of performance and maintenance. Not sure if I can squeeze time in but I'll suggest that to others at least.