Hacker News new | ask | show | jobs
by arch-ninja 1648 days ago
D is an excellent mix of good design decisions, metaprogramming (your macros can run arbitrary code at compile time, a la zig), and a nice standard library. They also have some of the best API-building libraries available, and the compiler has the ability to run source code almost as if it were interpreted and it caches binaries under /tmp/ to avoid work if the source is unchanged.
1 comments

Yeah, I was poking around in the compiler source and noticed a D file with the #! prefix so it could be executed in interpreted mode. Just like tcc does, except I guess it would work for any valid D program, unlike tcc which won't compile all C code. That's a great feature to have. I do get the impression from looking at it at a distance that it's well designed.