top | item 39861480 (no title) CornCobs | 1 year ago What syntax of nim's is the network: ... Used to declaratively construct the neural networks? Is it a macro? Looks really neat! discuss order hn newest warangal|1 year ago It is a small DSL written using macros at https://github.com/mratsim/Arraymancer/blob/master/src/array....Nim has pretty great meta-programming capabilities and arraymancer employs some cool features like emitting cuda-kernels on the fly using standard templates depending on backend ! supakeen|1 year ago Yes, Nim macros can fiddle with the AST: https://nim-lang.org/docs/macros.htmlYou can also see another (I think) neat example in `npeg`: https://github.com/zevv/npeg?tab=readme-ov-file#quickstart
warangal|1 year ago It is a small DSL written using macros at https://github.com/mratsim/Arraymancer/blob/master/src/array....Nim has pretty great meta-programming capabilities and arraymancer employs some cool features like emitting cuda-kernels on the fly using standard templates depending on backend !
supakeen|1 year ago Yes, Nim macros can fiddle with the AST: https://nim-lang.org/docs/macros.htmlYou can also see another (I think) neat example in `npeg`: https://github.com/zevv/npeg?tab=readme-ov-file#quickstart
warangal|1 year ago
Nim has pretty great meta-programming capabilities and arraymancer employs some cool features like emitting cuda-kernels on the fly using standard templates depending on backend !
supakeen|1 year ago
You can also see another (I think) neat example in `npeg`: https://github.com/zevv/npeg?tab=readme-ov-file#quickstart