veganism.social is one of the many independent Mastodon servers you can use to participate in the fediverse.
Veganism Social is a welcoming space on the internet for vegans to connect and engage with the broader decentralized social media community.

Administered by:

Server stats:

233
active users

#emscripten

0 posts0 participants0 posts today
st1nger :unverified: 🏴‍☠️ :linux: :freebsd:<p>Proof-of-concept project, showing that it's possible to run an entire Large Language Model in nothing but a <a href="https://infosec.exchange/tags/PDF" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>PDF</span></a> file.</p><p>It uses <a href="https://infosec.exchange/tags/Emscripten" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Emscripten</span></a> to compile <a href="https://infosec.exchange/tags/llama" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>llama</span></a>.cpp into asm.js, which can then be run in the PDF using an old PDF JS injection.</p><p>Combined with embedding the entire <a href="https://infosec.exchange/tags/LLM" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>LLM</span></a> file into the PDF with base64, we are able to run LLM inference in nothing but a PDF</p><p><a href="https://github.com/EvanZhouDev/llm.pdf" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="">github.com/EvanZhouDev/llm.pdf</span><span class="invisible"></span></a></p>
midzer<p>I've ported Powermanga, an oldschool shoot 'em up, for the web via <a href="https://chaos.social/tags/Emscripten" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Emscripten</span></a>. Works also on mobile!</p><p><a href="https://midzer.de/wasm/powermanga/" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="">midzer.de/wasm/powermanga/</span><span class="invisible"></span></a></p>
midzer<p>I've ported Help Hannah's Horse, a Pacman clone with ghosts, music and powerups for the web with <a href="https://chaos.social/tags/Emscripten" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Emscripten</span></a>. Even mobile friendly!</p><p><a href="https://midzer.de/wasm/hannah/" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="">midzer.de/wasm/hannah/</span><span class="invisible"></span></a></p>
midzer<p>I've ported Abuse, a 2D side-scroller <a href="https://chaos.social/tags/FOSS" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>FOSS</span></a> classic from 1995, for the web via <a href="https://chaos.social/tags/Emscripten" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Emscripten</span></a>. Even mobile friendly!</p><p><a href="https://midzer.de/wasm/abuse/" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="">midzer.de/wasm/abuse/</span><span class="invisible"></span></a></p>
MontyOnTheRun<p>Published a WIP demo of Tragrady of the Uncanny as a HTML5 playable game on itch.io. This is a temporary version, since it is being developed with the <a href="https://bitbang.social/tags/gba" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>gba</span></a> and <a href="https://bitbang.social/tags/msdos" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>msdos</span></a> in mind.</p><p><a href="https://bitbang.social/tags/retrodev" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>retrodev</span></a> <a href="https://bitbang.social/tags/emscripten" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>emscripten</span></a> <br><a href="https://bitbang.social/tags/screenshotsaturday" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>screenshotsaturday</span></a> <br><a href="https://bitbang.social/tags/rpg" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>rpg</span></a> <br><a href="https://bitbang.social/tags/dungeoncrawler" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>dungeoncrawler</span></a> <br><a href="https://bitbang.social/tags/indiegame" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>indiegame</span></a> <br><a href="https://bitbang.social/tags/homebrew" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>homebrew</span></a> <br><a href="https://bitbang.social/tags/PlayOnBSD" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>PlayOnBSD</span></a> <br><a href="https://bitbang.social/tags/feedbackquest" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>feedbackquest</span></a> <br><a href="https://bitbang.social/tags/gba" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>gba</span></a> </p><p>Please provide feedback!</p><p><a href="https://montyontherun.itch.io/sub-mare-imperium-equivalence" rel="nofollow noopener" target="_blank"><span class="invisible">https://</span><span class="ellipsis">montyontherun.itch.io/sub-mare</span><span class="invisible">-imperium-equivalence</span></a></p><p>as part of the <a href="https://itch.io/jam/feedback-quest-7-indiegames-x-indie-streamers" rel="nofollow noopener" target="_blank"><span class="invisible">https://</span><span class="ellipsis">itch.io/jam/feedback-quest-7-i</span><span class="invisible">ndiegames-x-indie-streamers</span></a> Jam</p>
Wild Rose :ms_rose:​ :heart_trans:<p>Made some visual progress on my little game engine. You can now move in the 3D void in a first person perspective.</p><p><a href="https://tech.lgbt/tags/gamedev" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>gamedev</span></a> <a href="https://tech.lgbt/tags/opengl" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>opengl</span></a> <a href="https://tech.lgbt/tags/emscripten" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>emscripten</span></a> <a href="https://tech.lgbt/tags/gameengine" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>gameengine</span></a></p>
Davide Bucci<p>HOLY COW! I think it works! 😍 Here is the first screenshot of <a href="https://mastodon.sdf.org/tags/SilkDust" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>SilkDust</span></a> playable in a browser. It is extremely basic, but it works! I still have plenty of problems to solve, but at least it is clearly feasible! <a href="https://mastodon.sdf.org/tags/GameDev" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>GameDev</span></a> <a href="https://mastodon.sdf.org/tags/IndieGame" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>IndieGame</span></a> <a href="https://mastodon.sdf.org/tags/javascript" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>javascript</span></a> <a href="https://mastodon.sdf.org/tags/emscripten" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>emscripten</span></a> <a href="https://mastodon.sdf.org/tags/TextAdventures" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>TextAdventures</span></a></p>
Davide Bucci<p>I think I now realized the importance of Asyncify in the combination of the C-style code with the <a href="https://mastodon.sdf.org/tags/Javascript" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Javascript</span></a>. I have the first bunch of (ugly) code that works as a bare bone terminal in a browser window. That's neat! <a href="https://mastodon.sdf.org/tags/emscripten" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>emscripten</span></a></p>
Davide Bucci<p>I think that I have understood how to call JS from C and vice versa. I have some troubles now to synchronize the execution of the code. Gosh... this thing is complicated! <a href="https://mastodon.sdf.org/tags/javascript" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>javascript</span></a> <a href="https://mastodon.sdf.org/tags/emscripten" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>emscripten</span></a></p>
Davide Bucci<p>Now I just have to understand how to return a string from <a href="https://mastodon.sdf.org/tags/Javastring" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Javastring</span></a> to <a href="https://mastodon.sdf.org/tags/C" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>C</span></a> with <a href="https://mastodon.sdf.org/tags/Emscripten" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Emscripten</span></a>...</p>
Davide Bucci<p>It seems the solution is this one: emscripten_run_script("import('./keyp.js').then( loadedModule =&gt; loadedModule.js_gets()) "); Where of course keyp.js is where the <a href="https://mastodon.sdf.org/tags/Javascript" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Javascript</span></a> code is contained. Quite simple and logical. 😜 😭😎 <a href="https://mastodon.sdf.org/tags/emscripten" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>emscripten</span></a>.</p>
Davide Bucci<p>I can do something like this in the <a href="https://mastodon.sdf.org/tags/C" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>C</span></a> code: emscripten_run_script("alert('hi');"); and it runs fine. However, if I try to call a function defined in my <a href="https://mastodon.sdf.org/tags/Javascript" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Javascript</span></a> code, it is not seen. How can I indicate to the code where to found it? It is much probably a problem of visibility of code. <a href="https://mastodon.sdf.org/tags/Emscripten" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Emscripten</span></a></p>
Davide Bucci<p>I think I can now call <a href="https://mastodon.sdf.org/tags/C" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>C</span></a> functions from <a href="https://mastodon.sdf.org/tags/Javascript" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Javascript</span></a> code. It is not so simple as things are not well documented and I'm a complete newbie in the <a href="https://mastodon.sdf.org/tags/ES6" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>ES6</span></a> world. It remains to see how to call <a href="https://mastodon.sdf.org/tags/Javascript" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Javascript</span></a> functions fro the <a href="https://mastodon.sdf.org/tags/C" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>C</span></a> code. <a href="https://mastodon.sdf.org/tags/Emscripten" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Emscripten</span></a>.</p>
Davide Bucci<p>I tried <a href="https://mastodon.sdf.org/tags/Emscripten" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Emscripten</span></a>, recently. It's an awesome tool and most of the <a href="https://mastodon.sdf.org/tags/C" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>C</span></a> code I tried to compile with it runs flawlessly. However I have a problem with <a href="https://mastodon.sdf.org/tags/console" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>console</span></a> applications that require a certain degree of interaction with the user. A simple fgets(buffer,size,stdin); does not pause the execution and returns garbage. Anyone has some hints?</p>