4 ms·
wow that is pretty nuts! do you think it would be possible to add a quasi quoter that could inline cython?
by hogu 11y ago
wow that is pretty nuts! do you think it would be possible to add a quasi quoter that could inline cython?
- joejev 11y agoCython would definitly be possible. It would probably work the same way the C quasiquoter does where it creates a function that accepts the scope and then executes the code. It would even be easier because it wouldn't need to do a first pass compile to get the missing names. I will try to work on this soon.
- hogu 11y agothanks! looks really cool btw - I suspect a different title might help get more traction on hn - inlining C isn't that interesting (scipy.weave has done this for years) but this approach to inlining is super cool, and can be extended to other langs. none of this is obvious from the title