3 ms·
Oh absolutely, Nim should definitely get the vast majority of the credit. It's not just because Nim compiles to C; it's also due to Nim's powerful macro system
by jboy 11y ago
Oh absolutely, Nim should definitely get the vast majority of the credit.
It's not just because Nim compiles to C; it's also due to Nim's powerful macro system, which: (1) allows me to define my own first-class pragmas such as `exportpy`; (2) supplies my pragma with a detailed & expressive AST of the Nim function onto which my pragma was annotated; (3) enables my pragma to auto-generate the C-API boilerplate code, and write it to disk as a newly-created C source file, all within the Nim compilation pass. Nim is a fantastic language, perfectly suited to this scenario.
I merely spotted an opportunity. :)