Quote:
Originally Posted by JimmXinu
I was going to give the past answer of 'not interested in porting to javascript', but I see there are other options now. I can't promise it will happen, but I will look into it.
|
FYI, I have looked into this some more.
While it's possible to run Python code in browser a variety of ways, I don't think that it's feasible right now to get FFF running there with the existing code.
I tried
pyodide, which basically runs a full Python interpreter in JS. It looked promising in desktop browser, but it was too heavy for mobile devices; IE, it wouldn't work at all on my phone and tablet.
Then I went to the opposite end of the spectrum,
Transcrypt, a Python->Javascript "transpiler", but found that it's limitations prevented even the most basic dependency modules from compiling, let alone FFF.
Most of the other py->js projects I looked were dormant, 'alpha', targeted an outdated version of Python, etc.
Most also seem to be aimed at letting developers write web apps in Python using JS libraries, not trying to port existing Python code to run in browser. Python's tendency to encourage 3rd party dependency libraries only makes it worse.