3 ms·
> The programming languages listed above are all over 20 years old and their initial design decisions, like Python’s global interpreter lock or Java’s everythin
by elcapitan 5y ago
> The programming languages listed above are all over 20 years old and their initial design decisions, like Python’s global interpreter lock or Java’s everything is an object mindset, no longer make any sense today
I wonder what general purpose languages (as the mentioned Jai is meant for games primarily) will be the best fit for modern architectures, besides obvious things like doing it in C and just doing everything manually to fit the machine nicely.
- NohatCoder 5y agoI don't see any particular reason why Jai shouldn't be usable for other stuff than games, there are no baked-in assumption about any gamey nature of programs.
- beagle3 5y agoIt's the APL/J/K/Fortran model. It fits modern CPU and memory architectures, it fits GPUs, and slow external storage. And rather surprisingly, it always has, even when memory latency was 1 cycle and there was no prefetch (for which you have to go back to the late 70s). The first APL implementation is from 1962 or so, first Fortran is 1955 or so. R and Numpy use it to deliver their speed while still providing high level semantics.
- bloaf 5y agoI too suspect "data oriented programming" is just array programming rebranding itself.
- dnautics 5y ago> I wonder what general purpose languages I'm looking forward to zig. The author is taking a lot of care and effort to make sure the content works on legacy systems as well as modern systems, so I think the level of flexibility that entails will also mean the flexibility to adapt to the future. Also, IIRC zig has an AOS to SOA transformation in its stdlib? In any case, they have been refactoring the language parser to use SOA to great effect: https://github.com/ziglang/zig/pull/7920 https://github.com/ziglang/zig/pull/7920