2 ms·
The goal is being able to pickle something like a Django template and then run it client side. It's based on past work that has shown its possible to build byte
by techdragon 11y ago
The goal is being able to pickle something like a Django template and then run it client side. It's based on past work that has shown its possible to build bytecode interpreters without much code. It's not as much about targets and cross compilation or anything like coffeescript. It's about trying to run existing Python bytecode with as little code as possible.
- smt88 11y agoI'm not sure I was clear or understand what you're saying. It sounds like you mean this: Python source -> Python bytecode -> Python bytecode interpreter -> JavaScript engine -> browser And what I meant was this: Python source -> WebAssembly bytecode -> browser Does that make sense? It's not like there's a bunch of Python bytecode sitting around that we can't possibly re-compile. It makes a ton of sense to create a Python-to-WebAssembly compiler, but very little sense to spend time adding functionality to a browser that's specific to Python bytecode.