News for hackers. Stuff that matters.
Re:Ray Tracing in Nim by moonchild on Friday July 03, 2020 @12:39AM (#23721054)
I suspect d's metaprogramming is not as good as nim's (haven't used the latter), though it's better than metaprogramming of every language I've used without macros.

That said, it can do all of the metaprogramming-related tasks you mention.

Re:Ray Tracing in Nim by mratsim on Friday July 03, 2020 @04:59AM (#23722310)
Are you aware of D libraries in that vein? I'm especially interested in the first 2, since those are something I'm actively working on at the moment.
Re:Ray Tracing in Nim by moonchild on Friday July 03, 2020 @02:15PM (#23726187)
I don't know of any DSLs, but the stdlib arbitrary precision integer library works just fine at compile time:

  enum x = BigInt("0xffffffffffffffffffffffffffffffff") % 2;
  writeln(x);
('enum' means 'make this value a compile-time constant; error if you can't')