Modern compilers are incredibly complex and sophisticated pieces of software. Most modern high level programming languages have serveral intermediate representations between their syntax and generated machine code. Most rely on LLVM to optimise code into something performant. While this has been effective, there are several large issues hinder development.
Build Speed
Modern compilers are very very slow, C++, Swift and Rust’s LLVM implementations are incredibly slow for large projects. In order to support all of the features this languages require, compile speed was heavily traded.
There are languages such as Zig/Odin, which are a bit more modern that have better engineered compilers that are much more performant. However these languages were designed mostly as, a better C, rather than something unique and more powerful.
Vectorisation & Paralellism
Most modern langauges do not have good support for non-scalar vector operations or paralleism. Part of the problem is that SIMD is often treated as an intrinsic. It is something that is bolted onto the language and matches very closely to how the assembly would be written.
Explicit Vectorisation I remember a really off-handed comment from Chris Latner (creator of LLVM/Swift/Mojo), where he said something like: Programmers want explict control and the ability to express optimised code themselves not for the compiler to automatically optimise through brittle heuristics.
I would take this approach even further, usually when people talk about this they usually just want better SIMD support. I would argue that we need to push even further past this and offer native vector operations and structs build into the language.
Consider the following example:
@simd
struct Vec3:
x: f32
y: f32
z: f32Typically code like this would be represented as a f32x3 type, however we already have an explicit definition of 3 floating point values which can explictly vectorised through the @simd attribute. If a struct cannot fit or has the incorrect types, it is an explict compile error, there is no guessing here.
We can further extend this with explicit SIMD loops.