I released an Emscripten port of Dawn, which is an open-source and cross-platform implementation of the WebGPU standard.
I released an Emscripten port of Dawn, which is an open-source and cross-platform implementation of the WebGPU standard.
Proof-of-concept project, showing that it's possible to run an entire Large Language Model in nothing but a #PDF file.
It uses #Emscripten to compile #llama.cpp into asm.js, which can then be run in the PDF using an old PDF JS injection.
Combined with embedding the entire #LLM file into the PDF with base64, we are able to run LLM inference in nothing but a PDF
Запуск Linux внутри PDF
По мнению некоторых пользователей, PDF — простой формат для обмена документами. На самом деле это очень сложный стандарт, который поддерживает выполнение практически любого кода. Неудивительно, что в прошлые годы энтузиастам удалось успешно запустить Doom внутри PDF и провести ряд других интересных экспериментов. Оказалось, что на этом возможности движка по рендерингу PDF не ограничиваются. Он способен запустить даже эмулятор полноценного процессора, а в нём — целую операционную систему .
https://habr.com/ru/companies/globalsign/articles/898056/
#PDF #Linux #RISCV #LinuxPDF #Doom #DoomPDF #TinyEMU #Emscripten #asmjs #JSLinux #pdfsyntax
I've ported Empty Clip, a 2D role-playing shooter #game from 2006, for the web with #Emscripten. Needs WebGL2!
Boxedwine - Emulator that can run 32-bit Windows programs/games on multiple platforms via Wine.
https://github.com/danoon2/Boxedwine
My latest contribution to the Emscripten project is now live with 4.0.4: a contrib port to easily embed Lua in any project
https://emscripten.org/docs/compiling/Contrib-Ports.html#contrib-lua
Released emscripten-glfw 3.4.0.20250209:
* Added support for touch (mobile)
* Added support for wasm64 (-sMEMORY64 Emscripten option)
GitHub - ading2210/linuxpdf: Linux running inside a PDF file via a RISC-V emulator
Link📌 Summary: 本文介紹了一個名為 LinuxPDF 的專案,該專案使得 Linux 系統可以在 PDF 檔案內透過 RISC-V 模擬器運行。此技術運用到 PDF 檔案格式中所支持的 Javascript,並透過 Emscripten 將 C 程式碼編譯成 asm.js,進一步載入修改過的 TinyEMU 模擬器。雖然在 PDF 中運行 Linux 存在性能問題,但這一創新仍能展示 PDF 檔案的多元性及其潛力。
📢 Scaling multithreaded #WebAssembly applications with mimalloc and WasmFS, by @kripken:
https://web.dev/articles/scaling-multithreaded-webassembly-applications?hl=en. If you have a multithreaded #Wasm application that does lots of allocations or uses files, then you may benefit greatly by using WasmFS and/or mimalloc. Usage in #Emscripten:
```bash
emcc -sWASMFS -sMALLOC=mimalloc
```
I've ported Atomiks, remake of a classic puzzle game from 1990, for the web with #Emscripten. Even mobile friendly!
A port of Doom (1993) that runs inside a PDF file
https://github.com/ading2210/doompdf. Made possible through asm.js and #Emscripten. 🤯
I have a new #programming playground: #WASM with #Emscripten
https://emscripten.org/
I explored this platform some time ago, but had no practical use for it.
But #HTML5 #canvas elements can act as a "screen" for stuff generated or managed in c or #cpp.
Posting user events to a "native" WASM worker and posting back images to the browser's thread makes the browser a virtual machine for classic C programs.
It's not very performant, but sufficient.
And it's pure fun to see that it just works 😁
I've ported Simple Sokoban for the web with #Emscripten. Mobile friendly!
I've ported Starfighter, a side-scrolling shoot 'em up space game for the web with #Emscripten. Even (somewhat) playable on mobile!
I maintain the #Emscripten port of Brogue, a minimal roguelike game, now.
I've ported Powermanga, an oldschool shoot 'em up, for the web via #Emscripten. Works also on mobile!
I've ported Help Hannah's Horse, a Pacman clone with ghosts, music and powerups for the web with #Emscripten. Even mobile friendly!
I've been experimenting with emscripten lately, so I created a skeleton cmake project that prepares emsdk and use it to compile C code instead of using a C compiler #cmake #emscripten #webassembly https://github.com/pvmm/skeleton-emsdk-cmake
I've ported Gilbert and the doors, a 2D platformer, for the web via #Emscripten. Even mobile friendly!
I've ported a Pacman clone for the web via #Emscripten. Even mobile friendly!