User ading2210 on GitHub has opened the linuxpdf project to port Linux entirely to run in a PDF file, made possible by the PDF file containing JavaScript features within itself. This allows for compiling C language code to run as JavaScript.
Although JavaScript is a feature of the PDF file, each implementation varies greatly. Acrobat Reader has numerous features, allowing access to 3D APIs or pulling data from the internet. However, other engines used in browsers often implement only basic features.
This port relies on compiling Linux to asm.js by compiling the TinyEMU project, simulating the operation of RISC-V chips first, and then compiling Linux to run. Anyone can experiment immediately by simply opening the PDF file in a browser.
ading2210 has worked on several interesting projects in the past, such as DoomPDF running the game Doom within a PDF, or the WISP protocol for proxying TCP/UDP through WebSocket.
Source – LinuxPDF
TLDR: ading2210 on GitHub is porting Linux to run entirely within a PDF file by compiling C code to JavaScript, allowing for unique and intriguing projects such as DoomPDF and the WISP protocol.
Leave a Comment