Re:Show HN: Inline C in Python
by hogu on Monday November 23, 2015 @02:45PM
(#10616788)
wow that is pretty nuts! do you think it would be possible to add a quasi quoter that could inline cython?
[ Parent
| on HN ]
Cython 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.
thanks! 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