Hacker News new | past | comments | ask | show | jobs | submit
https://slopshare.dev

Not really sure what to call it, Linux kernel ish implemented in JS so you can run it in the browser. Each program runs in WASM. Everything bootstrapped from a C/Cpp compiler compiled from source with a new target. Also kinda turned into Docker for WASM.

Recommended for people that feel a strong urge to run a browser inside a browser.

https://slopshare.dev/v0.1.5/wine/

Also quite useful to run coding agents sandboxed inside the browser, with HTTP policies and "backend managed skills/extensions". Compiles Codex from source (has a rust compiler), runs pi agent and CC (the old node one) on a custom javascript runtime on top of quickjs compiled inside the environment.

Everything is static JS (or the robots are lying to me)

Is it something that can run compiled WASI binaries? Like the kernel part that implements scheduling/fs/networking/gpu?

There's a commercial project like that called BrowserPod, but I also saw some open source implementations.

How does it compare to that?

It's very similar in concept to BrowserPod but with my own syscalls and some quirks I thought were cool. Not attempting to be Linux just attempting to be able to compile stuff that makes sense. Also it's wasm64 browserpod is wasm32.

For example I never added different users/permissions because it's simply not needed in this sort of env.

wasm64-unknown-dolly wasm32-browserpod-linux wasm32-unknown-emscripten

This means everything has to be recompiled from the ground up (starting from compiling the shell inside the environment, then the tools (ls, grep, etc.), then things like make and git, etc. etc.. Just compiled godot editor but doesn't run very well yet. Caching/packaging compiled stuff becomes a problem so some Docker ish syntax evolved from there. Ex: https://slopshare.dev/v0.1.5/view/zero-ad/

https://github.com/daugasauron/dolly

Also its just a project for myself to learn wasm stuff and push the limits of what it can do, but I feel more and more it's a very powerful concept useful in practice