Gibt es bei euch auch ab und an Momente, wo ihr einfach nur staunen könnt? Der französische Hacker Fabrice Bellard (Wikipedia) hat bei mir mit seinem in JavaScript geschriebenen JS/Linux Emulator für den Browser mal wieder für so einen gesorgt. Der Emulator sorgt dafür, dass ein 2.6.20er Linux-Kernel inkl. BusyBox und QEmacs im Browser lädt. Wozu das gut sein mag? Eigentlich ist das eher eine Demo, einen richtigen Anwendungsfall gibt es vorerst einmal nicht. Fabrice nennt aber selber ein paar mögliche Anwendungsgebiete…
- Benchmarking of Javascript engines (how much time takes your Javascript engine to boot Linux ?). For this particular application, efficient handling of 32 bit signed and unsigned integers and of typed arrays is important.
- Client side processing using an x86 library, for example for cryptographic purposes. For such application, the x86 emulator can be modified to provide an API to load x86 dynamic libraries and to provide a js-ctypes like API to call the C/C++ functions from javascript.
- A more advanced version would allow to use old DOS PC software such as games.
Wer schon immer mal ein rm -rf / ausprobieren wollte, der kann das nun sicher und ohne Gefahr im Browser probieren 😉 Das Ganze braucht übrigens einen aktuellen Browser. Es braucht mindestens Firefox 4 oder Chrome/Chromium in einer aktuellen Ausgabe, wobei der Firefox eine deutlich bessere Performance liefern soll.





Schreibe einen Kommentar