Open mirh opened 3 years ago
We considered this, but int he ended decided that the other way around is more feasible; that is, we will move towards making inline JavaScript work better on the desktop rather than making Python script work better in the browser. I'll leave this issue open though, because it will probably come up again at some point.
I guess that couldn't hurt either, but my rationale was that researchers are far more likely to be already at home with python than js. I could also imagine some better integration with psychopy perhaps.
2 years later and the situation seems radically better https://github.com/pyscript/pyscript https://github.com/sagemathinc/cowasm https://github.com/bytecodealliance/wasmtime-py https://github.com/python/cpython/tree/main/Tools/wasm
Python devs are even planning to promote the web target to a tier 2 platform.
Thanks! I'm aware that work is being done on this, and it's still on the radar for OSWeb.
I'm not really an experienced dev, but it is my understanding this was a discussed/requested in the past and there's an objective marginal preference for it. Also, writing experiments only once wouldn't hurt.
With a quick search I found the following possible building blocks https://github.com/tvst/jsbuilder https://github.com/jggatc/pyjsdl https://github.com/qquick/transcrypt https://github.com/brython-dev/brython