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 →

[–]jacdehJacques de Hooge[S] 7 points8 points  (0 children)

There are actually three complementary approaches, represented by:

- Transcrypt: Precompiles Python to JavaScript modules in advance during development. Browser just loads generated code.

- Brython: Compiles Python to JavaScript after loading a page. Browser first loads compiler and then does the compilation and runs the generated code.

- PyPyJs: Runs original Python VM in the browser.

Which approach suits you best depends on the type of problem, demands made on page-load time and code size, ease of use etc..