Comment on Why are so many new programming languages being developed?
Pieisawesome@lemmy.dbzer0.com 1 week ago
Golang is 16 years old and rust is 14 years old.
Why do people use them? Why do developers prefer C or Python? Because they like them.
Go has a good niche of native + performance for systems programming. It’s still more abstract than C, but much less than Python. It’s a good middle ground. It’s not JIT like C# or Java.
Rust is just as fast as C, allows lower level programming that you could do with C. Rusts big advantage is that its memory safe (unless you use unsafe). That eliminates a very common C bug.
nous@programming.dev 1 week ago
Most languages are memory safe. It’s only really C, C++ and zig that are not (at least for more mainstream languages). Rust is special as it is memory safe without a garbage collector. Which is big for domains where the overhead of a GC is unacceptable.
forestbeasts@pawb.social 1 week ago
Swift is also memory safe without a GC, by the way! It uses reference counting instead.
– Frost
WhyJiffie@sh.itjust.works 1 week ago
Most languages are not as fast as C.