5 ms·
> Circle did the interpreted, compile-time pass idea before any of the other new systems languages. constexpr is in C++11, Jai is from 2014, and Zig 0.1.1 is f
by anonymoushn 4y ago
> Circle did the interpreted, compile-time pass idea before any of the other new systems languages.
constexpr is in C++11, Jai is from 2014, and Zig 0.1.1 is from 2017.
This project looks quite cool though.
- pjmlp 4y agoWith the small difference that Circle can use the complete language at compile time, constexpr is still far from it, and also gave birth to constinit and consteval.
- tialaramex 4y agoJai gets to use the entire language. constexpr in C++ 11 is indeed very limited, arguably even more than Rust's const functions today.
- pjmlp 4y agoExcept that almost no one has access to Jai.
- tialaramex 4y agoSure, I'm not commending Jai in general, but it's a clear existence proof on this particular matter.
- pjmlp 4y agoWell, Lisp and Dylan also did it first.
- vadiml 4y agoI think the first take on the subject was IBM with their PL/I Checkout and Optimizing compilers. They've integrated almost full PL/I language interpreter in the macro pre-processor stage. I was using it in the beginning of 80ies.
- WalterBright 4y agoD has had compile time function execution since 2007 or so.