Description
Hi, @datnamer pointed this project out to me (flexxui/flexx#54), nice project! It seems to have a lot of common with what I am trying to do with flexx.pyscript
. At least, of all the python-to-js solutions, this is by far the most similar I've seen :)
On the thread on reddit you mentioned that you've checked Flexx out but that it did not have what you needed. As far as I can tell the biggest difference is that Flexx does currently support multiple inheritance or bound functions. I'd be happy to have this changed though. I also want to stress that although the Flexx project itself is about providing a full widget toolkit, flexx.pyscript
is self-contained. E.g. we're using it in Bokeh as well.
I was wondering about how you do the ast parsing. I'm using the buildin ast module myself, and have written a sort of compatibility layer (commonast.py) to make it work across different Python versions (support for Python 2.7 to be added like this week). If anything, this would be one place where our projects could potentially share code.
Another question is how you (plan to) handle things like "a string" * 3
. Is that going to produce "a string3"
as in JS or "a stringa stringa string"
as in Python? I chose the latter, but I needed some operator overloading to make that work.