WebAssembly vs Cloud Sandbox Execution
Why 5 languages run locally inside your phone browser while 8 compiled languages run in isolated containers.
The Hybrid Architecture Behind RunOnPhone
Not every programming language belongs on a remote server—and not every compiler fits neatly inside a mobile browser tab. That is why RunOnPhone splits its 13 languages across two execution paths: client-side browser execution for interpreted/web languages, and isolated cloud sandboxes for native system compilers.
Path 1: In-Browser Execution (Zero Server Calls)
- Python: Runs CPython compiled to WebAssembly via Pyodide v0.26.0. Once loaded, every print(), loop, and function runs locally on your phone.
- SQL (SQLite): Runs full SQLite via sql.js 1.8.0 WebAssembly with pre-populated
studentsandorderstables so you can test JOINs immediately. - JavaScript & TypeScript: JavaScript uses your browser's native engine directly, while TypeScript loads the official 5.8.3 transpiler in-tab.
- HTML / CSS: Renders live inside a sandboxed
<iframe>right on your mobile viewport.
Path 2: Isolated Cloud Sandboxes (/api/run)
Languages like C (GCC), C++ (G++), Java (OpenJDK), C# (.NET), Go, Rust, PHP, and Ruby rely on full native toolchains that would be far too large to download on mobile data. When you tap Run on those pages, a Cloudflare Pages Function at /api/run forwards your code and optional stdin to an isolated, short-lived Linux container with no network access and returns stdout or compiler diagnostics.
Which Should You Pick?
If you are on weak mobile data or want instant zero-limit runs, stick to our in-browser languages (Python, JS, TypeScript, HTML, SQL). When you need strict static typing or native compiler checks for university C/C++ or Java assignments, switch to the cloud-sandbox runners with one tap.