Elektrine lite

← Feed

@blinry@chaos.social

Post #2583148

2023-03-10 18:14 UTC

Technically, it's based on the brilliant https://github.com/copy/v86, an emulator for x86 CPUs that compiles machine instructions to WebAssembly! 🤯 I built a 25 MB Linux image using https://buildroot.org (it even includes Git!) And I also feed the state of the booted VM to the emulator (another 25 MB), allowing it to start reasonably quickly. Still would love to speed that up, though!

Replies (2)

  • @blinry@chaos.social 2023-03-10 18:18

    You can play around with the source code here: https://github.com/blinry/linux-puzzles I tried to make the README and the comments in the main JavaScript file as helpful as possible! Thanks to @EdJoPaTo@chaos.social, @zormit@chaos.social, @piko@chaos.social, @_sohalt@chaos.social and @b0rk@social.jvns.ca for beta-testing! :)

    Open ##2583149

  • @brightside@mastodon.online 2023-03-10 20:01

    @blinry@chaos.social What is the difference with https://bellard.org/jslinux/ ? (By the brilliant coder Fabrice Bellard, author of ffmpeg and Qemu).

    Open ##2583150