open-cogsci / osweb

Javascript library for running experiments developped with Open Sesame in a browser environment.
GNU General Public License v3.0
3 stars 1 forks source link

Run Python in browser #65

Open mirh opened 3 years ago

mirh commented 3 years ago

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

smathot commented 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.

mirh commented 3 years ago

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.

mirh commented 11 months ago

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.

smathot commented 11 months ago

Thanks! I'm aware that work is being done on this, and it's still on the radar for OSWeb.