Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

This is the real answer (amongst other goodness) - this one is well executed and differentiated

Every language at scale needs a preprocessor (look at the “use server” and “use gpu” silliness happening in TS) - why is it not the the same as the language you use?





Languages such as D and Nim (both greatly underappreciated) offer full-language compile-time interpretation.

Yeah, that's a pity that D didn't gain the popularity. It brought some features which were borrowed to mainstream languages. However, the features didn't help D to become popular. I have a hunch that templates from D were the inspiration for the comptime in Zig. Also, Reading D is almost easy as reading Zig. I remember I couldn't get my head around async/await from Python 3.5. I knew it was based on generators. However, the stack switch was absolutely mysterious to me. I understood it only from the implementation of fibers from the D's standard library.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: