Re:Circle – A C++ compiler with compile-time imperative meta...
by symstym on Tuesday May 05, 2020 @09:02PM
(#23086902)
This seems similar to Zig (https://ziglang.org/#Compile-time-reflection-and-compile-tim...)
[ Parent
| on HN ]
Re:Circle – A C++ compiler with compile-time imperative meta...
by pickdenis on Tuesday May 05, 2020 @09:10PM
(#23086949)
Zig seems to have arbitrary compile-time code evaluation, but not the kind of AST generation you see here[1]. Nim macros seem to be a closer analogue[2].
[1]: https://github.com/seanbaxter/circle/blob/master/gems/rpn.md...
Re:Circle – A C++ compiler with compile-time imperative meta...
by logicchains on Wednesday May 06, 2020 @12:49AM
(#23087996)
There's ongoing work to add support for generating arbitary types at compile time: https://github.com/ziglang/zig/issues/383.