littlekernel / lk

LK embedded kernel
MIT License
3.11k stars 613 forks source link

[request] WASM as build target? #350

Open adamierymenko opened 1 year ago

adamierymenko commented 1 year ago

WASM as a build target for this would be really interesting and probably easier than for more complex OSes than Linux.

Primary use cases would be (1) running apps in-browser, (2) edge compute, (3) decentralized endpoint applications. The latter two are more interesting. There's already been some work on porting Linux for (2) and (3) but the stack there is complex and brittle due to Linux's complexity vs something like this.

I suppose JS via EMScripten would be interesting too and probably achievable if WASM is achievable.

adamierymenko commented 1 year ago

Wanted to add: there's been some work in the WASM world on cooperative multitasking. Might look into this if actual SMP is problematic on the web due to restrictions designed to thwart meltdown/spectre type attacks.