r/ProgrammingLanguages • u/baehyunsol Sodigy • Jul 27 '26
Why is everyone creating systems programming languages?
I see a lot of new programming languages here. I love reading the documents of the languages and sometimes actually run their compilers. Many of the projects are AI-driven, but that's fine. It's still fun to see what problems they're trying to solve and how they actually solved the problems.
Reading the documents, I realized that most new languages, especially AI-written ones, are "systems programming languages". They're trying to solve the problems that C/C++/Zig/Rust have solved (or are trying to solve), and their syntax is mixture of C/Zig/Rust.
Why? Why is everyone trying to compete with C/C++?
There are so many kinds of languages. Haskell demonstrates how pure a language can be, Python is perfect when you only have 5 minutes to write code and don't care about the output, Java runs on 3 billion machines, ...
View all comments
Show parent comment
2
u/zyxzevn UnSeen Jul 28 '26
With the RAM, I was thinking about 16kb computers (8 bit). Then came 256kb PCs (16 bit). And now even the phones have multiple Gbs and run with 64 bit CPUs.
But before that we even had 1kb computers.
That is why we had the year 2000 problem. It was expensive to add 2 decimals to the year number. Dates are still a problem in most programming languages, but due to other reasons.
The access to RAM is fast via the internal Caches. With separate instruction cache that uses internal (micro-code) tricks for fast loop-jumps and register renaming.
The Intel level-1 cache was 1 clock cycle slower than a register (I don't know the current state). This was also necessary, because it had just a few registers.
The time of accessing addresses with an offset has become just as fast as normal memory access. Which was different before.
I think that the hardware will move more towards small CPU/Cache units connected to a central system for shared data.
The Transputer had all kinds of small units connected in a matrix. But no good way to share the data centrally. I think that is what was missing from the design.
To make Transputers work, they invented Occam. I even had some experience with Occam.
It had channels like Go-lang, but without the easy features.
Will we need a different language?
The well crafted programs are still great. Like quicksort:
See video "Three beautiful quciksorts"
But that was in 1991. Today caches are far more important.
A lot of today's commercial programmers do not much more than javascript. And then come C# or Java applications.
And even if we forget about AI, most of them just know how to copy code without really understanding it.
Indeed.
But I think it is more a fault of the managers than the programmers.
Mos problems are not just about reuse of memory and range-checking and such.
Even banks and factories had their websites unprotected.
Microsoft was a source of viruses. In the first place due to having no user restrictions.
Due to their bad programming, even jpgs could have a virus.
Facebook and such had no encryption of their passwords.
Which is pretty bad for a system that can be used for doxing and such.
The bar to hacking was extremely low, and for some companies it still is.
All obvious problems. They should know better.
But somehow the market prefers crap solutions over well-engineered ones.
Even when it costs a lot more on the long term.
I was thinking about code exploits a bit more.
I worked a lot with Object Pascal (Delphi), and always wondered why many other languages had no protecting compiler features.
Most hacks are overflows and such. But I had all automatically protected at runtime. And I added additional safety checks.
In practice, it does not slow down a program much. For certain intensive work one can invest in some verification and remove the unnecessary checks.
With Haskell you can have some protection at compiler time, with the cost of needing to program in a certain style.
But against hacks most run-time protections should work fine.
Modern compilers need to be aware of the CPU branch-prediction features, to avoid leaks of information. Like Spectre.
That is in essence a CPU related leak. And it would be hard to avoid.