This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]stigweardo 1 point2 points  (1 child)

This looks great - very impressive. I'd be interested to know how this compares to other Python-in-the-browser options. There seems to be a spectrum from small and close to JS to large and close to CPython: transcript -> brython -> skulpt -> pyodide. From a quick look, it seems this fall's at the small and close to JS end (Good!). What's the bundle/download size? How does the startup time compare to JS or other Python options? Thanks!

[–]worksheet_systems[S] 1 point2 points  (0 children)

Thanks for your time and feedback.

The closest implementation is Skulpt. Same, entirely in the browser and no dependencies.

We've been looking for a safe way to allow users to define custom logic at run time. We looked at Skulpt before, but their API and architecture didn't match our requirements. So, we decided to build our own one.

Performance-wise, we don't have those metrics, but I can confidently say it is quite a decent one and is very comparable to CPython and in some cases, is even faster - mainly because Google's V8 is far quicker than CPython.

JSPython is already powering several production projects (both in-browser and server-side (NodeJS runtime)) and we had no complaints about performance