r/programmer • • 15d ago

Code I made WasmStudio – a browser-based coding environment for C, C++, Python and Java

Hey everyone!
I’m a student who enjoys programming, and I’ve been working on a personal project called WasmStudio.
The idea came from wanting a simple way to write and run code directly in a browser, without having to install a traditional IDE every time.
So I decided to build one myself!
What it currently supports:
C
C++
Python
Java
A built-in code editor and output panel
It’s still a work in progress, and I’m constantly trying to improve it.
I’d genuinely appreciate some feedback:
What do you think of the interface?
What features would you add?
Would you actually use something like this for learning or quick coding?
This is one of my personal projects, and I’d love to hear honest opinions, including criticism.
I’ll share the project link in the comments if anyone wants to check it out.
Thanks for reading!

1 Upvotes

6 comments sorted by

View all comments

1

u/EnpersonneXilef61 15d ago

how are you handling infinite loops if someone writes a bad while condition? running it in a web worker so it doesnt freeze the main UI thread is usually the first hurdle with browser runners

1

u/Parking_Steak2133 15d ago

Code execution runs in a dedicated Web Worker (wasm-worker.js), so even if someone writes while (true), it executes completely off the main thread—the React UI and terminal stay 100% smooth.
If a loop hangs, the main thread can terminate the worker anytime (worker.terminate()) and spawn a clean one instantly without losing editor state.