#emscripten — Public Fediverse posts
Live and recent posts from across the Fediverse tagged #emscripten, aggregated by home.social.
-
LilyPond running entirely in the browser, ~13MB compressed, on par with hacklily's server performance 🤯
https://beta.hacklily.org/wasm?edit=jocelyn-stericker%2Fsheet-music%2Fgnosienne3.ly #emscripten #wasm #lilypond #guile
-
LilyPond running entirely in the browser, ~13MB compressed, on par with hacklily's server performance 🤯
https://beta.hacklily.org/wasm?edit=jocelyn-stericker%2Fsheet-music%2Fgnosienne3.ly #emscripten #wasm #lilypond #guile
-
#AskFedi #c99 #gcc #raylib #emscripten
i'm making a raylib game that needs to detect whether it's the desktop build (gcc) or the web build (emscripten) in c99 code. can i use some some compiler flags or config in order to define some macro or to hardcode main function args or something of the sort?
this way i can connect the web build to the kongregate api and not do so (maybe not even include libcurl if it's a macro definition) on the desktop build. is this possible?
thanks ilyyy <3 -
#AskFedi #c99 #gcc #raylib #emscripten
i'm making a raylib game that needs to detect whether it's the desktop build (gcc) or the web build (emscripten) in c99 code. can i use some some compiler flags or config in order to define some macro or to hardcode main function args or something of the sort?
this way i can connect the web build to the kongregate api and not do so (maybe not even include libcurl if it's a macro definition) on the desktop build. is this possible?
thanks ilyyy <3 -
Another one of my jam games ported to web - a roguelike this time!
-
Another one of my jam games ported to web - a roguelike this time!
-
Look, ma, I'm in the #Emscripten release notes: https://github.com/emscripten-core/emscripten/releases/tag/6.0.1. New experimental `-sCROSS_ORIGIN_STORAGE` linker flag integrating the proposed Cross-Origin Storage browser API
(https://github.com/WICG/cross-origin-storage) as a progressive enhancement for #Wasm loading on the Web target: https://emscripten.org/docs/compiling/CrossOriginStorage.html. -
Look, ma, I'm in the #Emscripten release notes: https://github.com/emscripten-core/emscripten/releases/tag/6.0.1. New experimental `-sCROSS_ORIGIN_STORAGE` linker flag integrating the proposed Cross-Origin Storage browser API
(https://github.com/WICG/cross-origin-storage) as a progressive enhancement for #Wasm loading on the Web target: https://emscripten.org/docs/compiling/CrossOriginStorage.html. -
Как я портировал ретрошутер Redneck Rampage в браузер
Всем привет! Я решил наконец то сам сделать пост на хабре. Обычно о всех моих веб проектах и команды DosZone Team пишет здесь многоуважаемый @denis-19 , за что ему огромное спасибо! Ведь нам просто лень или не хватает на это времени. И так! После шутера Blood мне было интересно попробовать также портировать Redneck Rampage как раз на основе того, что я уже сделал. Было ошибочно так думать, потому что RR в отличие от NBlood оказался совершенно на другом движке - RedNukem, и пришлось начинать всё с нуля. Да и сложность повысилась и всё это заняло в два раза больше времени, чуть больше недели.
-
Oh, look! Another attempt to solve the monumental crisis of handling tarballs—this time with #WebAssembly and a sprinkle of #Emscripten magic. 🙄 Instead of just extracting a file like a normal person, let's generate an "index" to mount things because who doesn't love an overengineered solution to save a few bytes? 😂
https://jeroen.github.io/notes/webassembly-tar/ #tarballs #overengineering #techhumor #HackerNews #ngated -
Oh, look! Another attempt to solve the monumental crisis of handling tarballs—this time with #WebAssembly and a sprinkle of #Emscripten magic. 🙄 Instead of just extracting a file like a normal person, let's generate an "index" to mount things because who doesn't love an overengineered solution to save a few bytes? 😂
https://jeroen.github.io/notes/webassembly-tar/ #tarballs #overengineering #techhumor #HackerNews #ngated -
Windows でしか動かない描画処理をブラウザで動かす OSS を公開した
https://qiita.com/LostMyCode/items/c38c831b8e1cb6dafa70?utm_campaign=popular_items&utm_medium=feed&utm_source=popular_items -
Just posted a new devlog for our C-based web engine, Archimedes!
It's been a long road from Pygame to a custom C/Emscripten stack. I'm breaking down the architectural hurdles of moving away from our Daedalus library and how my collaborator @smattymatty has been stress-testing the engine with a vampire survivors clone and recent game jams.
To celebrate the progress, I've rewritten my old ( and very broken ) Game of Life simulator from the ground up. It's a great feeling to see a legacy project running smoother than ever on new, custom-built foundations.
Check out the devlog: https://jake-ster.itch.io/game-of-life/devlog/1462381/remaking-my-old-game-of-life-clone-with-archimedes
#GameDev #WebAssembly #C #IndieDev #Emscripten #Archimedes #GameOfLife
-
Just posted a new devlog for our C-based web engine, Archimedes!
It's been a long road from Pygame to a custom C/Emscripten stack. I'm breaking down the architectural hurdles of moving away from our Daedalus library and how my collaborator @smattymatty has been stress-testing the engine with a vampire survivors clone and recent game jams.
To celebrate the progress, I've rewritten my old ( and very broken ) Game of Life simulator from the ground up. It's a great feeling to see a legacy project running smoother than ever on new, custom-built foundations.
Check out the devlog: https://jake-ster.itch.io/game-of-life/devlog/1462381/remaking-my-old-game-of-life-clone-with-archimedes
#GameDev #WebAssembly #C #IndieDev #Emscripten #Archimedes #GameOfLife
-
-
Long shot, but is there anyone here who has used SDL3 and Emscripten or is familiar with building Emscripten from source?
I had to get SDL3_TTF from a PR, and managed to build it with embuilder but so far when I try to build with -sUSE_SDL_TTF=3 it doesn't seem to acknowledge the option and if just complaining that it can't find SDL3/SDL_ttf.h
What am I missing?
(also if you don't know, sharing is caring)
-
Long shot, but is there anyone here who has used SDL3 and Emscripten or is familiar with building Emscripten from source?
I had to get SDL3_TTF from a PR, and managed to build it with embuilder but so far when I try to build with -sUSE_SDL_TTF=3 it doesn't seem to acknowledge the option and if just complaining that it can't find SDL3/SDL_ttf.h
What am I missing?
(also if you don't know, sharing is caring)
-
emsdk-env makes public.
This is a Vite plugin that automatically downloads and manages the Emscripten SDK, and makes it possible to automatically build WASM C/C++ code in your project.
With this plugin, you can easily set up a WASM C/C++ development environment in your Vite project.
-
emsdk-env makes public.
This is a Vite plugin that automatically downloads and manages the Emscripten SDK, and makes it possible to automatically build WASM C/C++ code in your project.
With this plugin, you can easily set up a WASM C/C++ development environment in your Vite project.
-
Git в браузере. Расширяем возможности с помощью LFS
Привет, Хабр! Я Паша, разработчик
https://habr.com/ru/companies/gram_ax/articles/994384/
#git #libgit2 #lfs #webassembly #rust #ffi #emscripten #docsascode #opensource #localfirst
-
Using Emscripten to Run C Code in Mendix
https://medium.com/@ockert8080/using-emscripten-to-run-c-code-in-mendix-b74c4df10b3e
-
I recently gave a makeover to the project page for the first video game I ever made: https://fietkau.media/revelation_mentis
The game itself is a small adventure/exploration game for DOS. It's not much to look at. But I touched up the game itself and the web-based player to make it a lot more approachable:
- Full English translation
- Nicer menu navigation
- Touch controls on mobile! 🤯
- A cute little optional CRT filter
- Updated #DOSBox and #emscripten, it no longer hangs the page on load for a second -
I recently gave a makeover to the project page for the first video game I ever made: https://fietkau.media/revelation_mentis
The game itself is a small adventure/exploration game for DOS. It's not much to look at. But I touched up the game itself and the web-based player to make it a lot more approachable:
- Full English translation
- Nicer menu navigation
- Touch controls on mobile! 🤯
- A cute little optional CRT filter
- Updated #DOSBox and #emscripten, it no longer hangs the page on load for a second -
I tried pulling the procedure to change the main engine loop out of WASM's control (https://codeberg.org/indigoparadox/maug/commit/ce442fe911da82bc8856aeb30857ddad92c75012) but #numoon is still, like... skipping every other tick? Or something? Every other in-game script instruction seems to be ignored? And mobile animation isn't happening? Almost like it's just not showing those frames?
But only in #WASM with #emscripten! The #SDL code on native Linux works perfectly!
*Extremely* frustrating...
-
I tried pulling the procedure to change the main engine loop out of WASM's control (https://codeberg.org/indigoparadox/maug/commit/ce442fe911da82bc8856aeb30857ddad92c75012) but #numoon is still, like... skipping every other tick? Or something? Every other in-game script instruction seems to be ignored? And mobile animation isn't happening? Almost like it's just not showing those frames?
But only in #WASM with #emscripten! The #SDL code on native Linux works perfectly!
*Extremely* frustrating...
-
When your event agency gets the briefing wrong and you need to invent a new technology to save the message… You knew css-in-js, but now 📢 introducing CSS in C++, aka. css-in-cpp, compiled to #WebAssembly with #emscripten. (At Google I/O Connect in Bengaluru, India.)
-
When your event agency gets the briefing wrong and you need to invent a new technology to save the message… You knew css-in-js, but now 📢 introducing CSS in C++, aka. css-in-cpp, compiled to #WebAssembly with #emscripten. (At Google I/O Connect in Bengaluru, India.)
-
Как мы засунули Git в браузер (и чего нам это стоило)
Привет, Хабр! Меня зовут Паша, я разработчик
https://habr.com/ru/companies/gram_ax/articles/928144/
#emscripten #rust #webassembly #libgit2 #wasm #git #wysiwyg #open_source #localfirst
-
Oh, and I can confirm that `-Os` (i.e. optimize for size) does make a difference. #wasm #emscripten
-
Playing with libav.js [1] (#ffmpeg in #javascript through #emscripten)
TIL about "async functions" [2]. Seems like moving from "normal" to "async" is a one-way street - normal functions can be easily called in an async context, but it looks like there's no way to get the value of an async function in sync context.
Yes, I can ".then(...)" on the return value, but then I'm back in callback hell and no longer "sync", am I...
[1] https://github.com/Yahweasel/libav.js
[2] https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/async_function -
Playing with libav.js [1] (#ffmpeg in #javascript through #emscripten)
TIL about "async functions" [2]. Seems like moving from "normal" to "async" is a one-way street - normal functions can be easily called in an async context, but it looks like there's no way to get the value of an async function in sync context.
Yes, I can ".then(...)" on the return value, but then I'm back in callback hell and no longer "sync", am I...
[1] https://github.com/Yahweasel/libav.js
[2] https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/async_function -
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
-
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
-
Boxedwine - Emulator that can run 32-bit Windows programs/games on multiple platforms via Wine.
https://github.com/danoon2/Boxedwine -
Boxedwine - Emulator that can run 32-bit Windows programs/games on multiple platforms via Wine.
https://github.com/danoon2/Boxedwine -
Nice PDF, But Can It Run Linux? Yikes! https://hackaday.com/2025/02/10/nice-pdf-but-can-it-run-linux-yikes/ #SecurityHacks #SoftwareHacks #LinuxHacks #emscripten #javascript #security #tinyemu #asmjs #linux #RISCV #News #doom #word #pdf
-
Nice PDF, But Can It Run Linux? Yikes! - The days that PDFs were the granny-proof Swiss Army knives of document sharing are... - https://hackaday.com/2025/02/10/nice-pdf-but-can-it-run-linux-yikes/ #securityhacks #softwarehacks #linuxhacks #emscripten #javascript #security #tinyemu #asm.js #risc-v #linux #news #doom #word #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
``` -
A port of Doom (1993) that runs inside a PDF file
https://github.com/ading2210/doompdf. Made possible through asm.js and #Emscripten. 🤯