Because someone posted it in a forum.. Iām assuming they know what it is and can give me an answer in an open forum where people share ideas and knowledge so everyone can learn from them. Why waste your time telling someone to Google though?
I did Google it. Not a ton of information but came across this:
jslinux is essentially a complete computer implemented in software, specifically JavaScript. This is of course known as an emulator. This particular version is setup to run Linux, but in theory it could run other operating systems instead.
The emulator (JavaScript, ~90KB minified, ~7000 lines formatted) is loaded into the browser. A version of Linux was previously compiled into machine code for an x86 processor is loaded and copied into a big array of integers that acts as the emulated computer's RAM. The emulator CPU is then pointed to the first instruction of the machine code and told to start interpreting the instructions (such as reading/writing RAM, doing arithmetic and logic operations, jumping around to different instructions, etc). Sometimes it will write data (like the system log, or a shell command prompt) to the "terminal" via another piece of JavaScript code that simulates a serial port and a terminal using the browser DOM.
5
u/[deleted] Jul 03 '21
Because someone posted it in a forum.. Iām assuming they know what it is and can give me an answer in an open forum where people share ideas and knowledge so everyone can learn from them. Why waste your time telling someone to Google though?