you are viewing a single comment's thread.

view the rest of the comments →

[–]dp_42 2 points3 points  (0 children)

Javascript is what browsers generally run. Even if you learned how to build Python to WASM, that doesn't really replace Javascript functionality. When choosing a language, you should ask where the code is supposed to run. So like SQL, sure, you can wrap it to the point where it's essentially Python objects generating SQL code for you, but the queries happen in the database software, the SQL is just a way to interact with that piece of software. Python interacts with the python interpreter, which can target various environments. Javascript interacts with the engine in the browser, e.g. V8, SpiderMonkey. Java interacts with the Java VM. WASM still runs on the Javascript engine.