4 ms·
AST transformation is nice but you can also have magic macros using `coding` hack. It could add arbitrary syntax to python https://github.com/syrusakbary/inter
by est 11y ago
AST transformation is nice but you can also have magic macros using `coding` hack. It could add arbitrary syntax to python
https://github.com/syrusakbary/interpy https://github.com/syrusakbary/interpy
previously https://news.ycombinator.com/item?id=9340784 https://news.ycombinator.com/item?id=9340784
- eatonphil 11y agoI'm a little confused where you are going with this. Could you elaborate a little? Its one thing for this to be possible using `coding`, but this is a macro builder available right now. Interpy just highlights the possibility of this, right? If there were a macro framework that used `coding` it would seem more relevant. Otherwise it looks like you're comparing apples and a knife. Am I missing something?
- est 11y ago> If there were a macro framework that used `coding` Does JSX-like template for Python count? https://github.com/dropbox/pyxl https://github.com/dropbox/pyxl # coding: pyxl print <html><body>Hello {my_var}!</body></html> Combined with this, we can make Meteorjs-like applications in Python directly. Even AST transformation of backend DOM operations in Python directly rendered to Javascript to browser.
- eatonphil 11y agoAh! Sorry about that. As I said, I was confused. That is very interesting.