e3133b25ad | ||
---|---|---|
cpux86-ta.js | ||
cpux86-ta.original.js | ||
index.html | ||
js-change-symbol.el | ||
jslinux.js | ||
linuxstart-20110820.tar.gz | ||
linuxstart.bin | ||
readme.md | ||
reify.js | ||
root.bin | ||
term.js | ||
vmlinux-2.6.20.bin |
readme.md
De-obfuscated JSLinux
I wanted to understand how the amazing JsLinux worked. However, Mr Bellard seems to have applied a decidedly french proclivity towards obfuscatory algorithmic prose, replete with two-letter variable names and the like... ;)
So in order to better understand the code, I started transforming all the symbols and commenting it up, which isn't all that hard a thing to do given that it's been built to imitate a very well-specified piece of hardware.
Stats
It's still absolutely ungainly, but not nearly so ungainly as the original. About a third to a half of the variables/function names have been redescribed.
I highly recommend, by the way, the excellent JSShaper library for transforming large javascript code bases. The hacks I made from it are in this repo.
Caveat Coder
This is an artistic reinterpretation of Fabrice Bellard's original code. There's no alteration in the acutal algorithmic content. I do check that that it still runs. I can't guarantee anything else.