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:

296
active users

#emscripten

1 post1 participant0 posts today
Thomas Steiner :chrome:<p>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 <a href="https://toot.cafe/tags/WebAssembly" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>WebAssembly</span></a> with <a href="https://toot.cafe/tags/emscripten" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>emscripten</span></a>. (At Google I/O Connect in Bengaluru, India.)</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>