top | item 29524430

(no title)

arch-ninja | 4 years 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.

discuss

order

justsaying9|4 years ago

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.