You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Use WebAssembly to run code on the browser. When a user submits the answer, the server can execute the code to verify it. This will reduce the load on the server to execute the user's code when they try to solve a challenge; that will happen multiple times.
This requires a lot of work. I presently don't know how to do it.
We only support Python programming language at the moment and wasm is a target for Python 3.11. We can try using it.
Important links:
Doc on how to compile Python to wasm. [I could not get it to compile without any errors on my machine (Using Debian WSL Window 11)] https://pythondev.readthedocs.io/wasm.html
RustPython is a Python interpreter written using Rust. Porting Rust to wasm should be easiest. Also, you can find a working demo here of using RustPython to run arbitrary user defined code on the browser. https://github.com/RustPython/RustPython
Preferably our implementation should allow us to attach a debugger of some kind and also provide Graphical debugging capability.
The text was updated successfully, but these errors were encountered:
Use WebAssembly to run code on the browser. When a user submits the answer, the server can execute the code to verify it. This will reduce the load on the server to execute the user's code when they try to solve a challenge; that will happen multiple times.
This requires a lot of work. I presently don't know how to do it.
We only support Python programming language at the moment and wasm is a target for Python 3.11. We can try using it.
Important links:
Preferably our implementation should allow us to attach a debugger of some kind and also provide Graphical debugging capability.
The text was updated successfully, but these errors were encountered: