I think there would be still space for systems programming language with a constraint from day zero that it would 1:1 compatible with plain C”s binary layout and memory model:
Roughly just .text, .bss, .rodata and ,data.
No symbol mangling at all.
All the memory safety etc. fancy features would be then designed within exactly those constraints.
#Rust is essentially a derivative of C++ when compiled to binary, which does not really make it a strong competitor for plain #C. It can substitute C in many cases for sure, just like C++ did, but there’s always need for minimal systems programming language, which also looks elegant in binary, not just in source code.
A compiled C program can be quite easily understood with a binary with no debug symbols at all if you understand the CPU architecture well enough. That is, and will be a strong asset for C.
@tripleo I would also be remiss not to mention #Perl's included perltrap manual page, which notes both the strict and warnings pragmas and also has nice lists of things for those coming from other #programming languages and tools like #AWK, #C and #CPlusPlus, #JavaScript, #sed, and #shell.
If you're doing a lot of work in C/C++/Rust consider using sccache to cache compilations. It's easy to set up and will save you a lot of time and a huge amount of power.
I keep looking at rust and thinking "Gods it seems to be an awesome language"... Then I read and hear about a lot of hassels moving from C or C++ to rust and never really any massive success stories... are the massive success stories out there? #rustlang#development
@looopTools I am 100% pro #cplusplus and against the hype around #rust, but be fair, Rust has quite some success. Take e.g. #signalapp, which is written in Rust. #Firefox is going to be rewritten in it. In the command line world there are many useful and performant tools like ripgrep which are better than what we had before.
@looopTools#Firefox is a massive success story for Rust. After multiple attempts to write a multi threaded style engine in C++, and getting completely destroyed by data races on each attempt, #Mozilla funded Rust #development, and then used it to write a high performance multi threaded styling engine (#Stylo) with no crashes or data races on basically the first attempt.