kalankaboom · @kalankaboom
1 followers · 1 posts · Server hachyderm.io

Hey everyone, I just made something cool!
I wrote a fractal viewer in C++, compiled it to using , and put it on my website (kalankaboom.net/).

I wrote an article on how I made it, and I would love for you to check it out and give me all the feedback you can!

Here's the article :
kalankaboom.net/articles/rewri

And here's the tool :
kalankaboom.net/projects/mande

#wasm #emscripten

Last updated 1 year ago

kalankaboom · @kalankaboom
1 followers · 1 posts · Server hachyderm.io

Hey everyone, I just made something cool!
I wrote a fractal viewer in C++, compiled it to using , and put it on [my website](kalankaboom.net/).

I wrote [an article](kalankaboom.net/articles/rewri) on how I made it.
I would love for you to check it out and give me all the feedback you can!

#wasm #emscripten

Last updated 1 year ago

Davide Bucci · @davbucci
157 followers · 285 posts · Server mastodon.sdf.org

It has not been trivial (and the code still sucks in some places), but here is the first beta version of running in a web page. It is still not perfect for mobile devices as it expect a keyboard. It also does not support copy/paste. But it kind of works 😍

davbucci.chez-alice.fr/varie/s

#silkdust #indiegame #gamedev #javascript #emscripten #textadventure #interactivefiction

Last updated 1 year ago

Davide Bucci · @davbucci
154 followers · 278 posts · Server mastodon.sdf.org

HOLY COW! I think it works! 😍 Here is the first screenshot of 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!

#silkdust #gamedev #indiegame #javascript #emscripten #textadventures

Last updated 1 year ago

Davide Bucci · @davbucci
154 followers · 268 posts · Server mastodon.sdf.org

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!

#javascript #emscripten

Last updated 1 year ago

Davide Bucci · @davbucci
154 followers · 268 posts · Server mastodon.sdf.org

Now I just have to understand how to return a string from to with ...

#javastring #c #emscripten

Last updated 1 year ago

Davide Bucci · @davbucci
148 followers · 261 posts · Server mastodon.sdf.org

It seems the solution is this one: emscripten_run_script("import('./keyp.js').then( loadedModule => loadedModule.js_gets()) "); Where of course keyp.js is where the code is contained. Quite simple and logical. 😜 😭😎 .

#javascript #emscripten

Last updated 1 year ago

Davide Bucci · @davbucci
148 followers · 260 posts · Server mastodon.sdf.org

I can do something like this in the code: emscripten_run_script("alert('hi');"); and it runs fine. However, if I try to call a function defined in my 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.

#c #javascript #emscripten

Last updated 1 year ago

Davide Bucci · @davbucci
148 followers · 260 posts · Server mastodon.sdf.org

I think I can now call functions from code. It is not so simple as things are not well documented and I'm a complete newbie in the world. It remains to see how to call functions fro the code. .

#c #javascript #es6 #emscripten

Last updated 1 year ago

Davide Bucci · @davbucci
143 followers · 245 posts · Server mastodon.sdf.org

I tried , recently. It's an awesome tool and most of the code I tried to compile with it runs flawlessly. However I have a problem with 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?

#emscripten #c #console

Last updated 1 year ago

Thomas Steiner :chrome: · @tomayac
1413 followers · 6729 posts · Server toot.cafe

πŸ“’ Heads up, WebAssembly fans: we have a new Wasm collection!

πŸ‘‰ web.dev/wasm πŸ‘ˆ

This is your one-stop shop for everything () and curated by WebAssembly DevRel yours truly.

On top, I’ve also worked on absolute beginner Wasm material:

πŸ”₯ What is WebAssembly and where did it come from? web.dev/what-is-webassembly/

πŸ“š A step-by-step tutorial on Compiling mkbitmap to WebAssembly web.dev/compiling-mkbitmap-to-

#webassembly #wasm #emscripten

Last updated 1 year ago

GateLinker · @gatelinker
8 followers · 51 posts · Server fosstodon.org

Playing with workers brought me to `emscripten_wasm_wait/notify` functions. They are like Linux objects or WaitOnAddress on .

I was thinking about introducing an own "Futex" class ... but such a feature is not available on all platforms, so I stayed with regular mutex and atomic spinlocks abstractions which are well known everywhere.

It is always fun to learn how similar and different some platforms are and how to build generic layers on top of them.

#emscripten #webassembly #Futex #windows

Last updated 1 year ago

screwtape · @screwtape
251 followers · 2911 posts · Server mastodon.sdf.org

@ramin_hal9001 @rml @louis
adjacently, one of the cool people shared with me the commit from 6 months ago adding compilation support to
itch.io/post/7892451#:~:text=v
Now how many hours do I actually have left to figure this <_>

#lispgamejam #emscripten #webassembly #ecl #commonlisp

Last updated 1 year ago

yujiri 🏴 · @yujiri
24 followers · 576 posts · Server social.freetalklive.com

excited for the build of ! Almost all the pieces are in the place, I've figured out how to wrangle into cooperating. I just need the folks to release async support and then I can write the necessary websocket API.

#webassembly #SpacestationDefense #emscripten #zig

Last updated 1 year ago

dotoscat · @dotoscat
26 followers · 487 posts · Server mastodon.xyz

Emscripten en funcionamiento.

#webdev #cpp #emscripten

Last updated 1 year ago

Kaan Barmore-GenΓ§ · @kaan
138 followers · 142 posts · Server fosstodon.org

Question on : Take an licensed library written in C, compile it to JavaScript with , and bundle it into a JavaScript app. The JavaScript app has to be LGPL licensed because the dynamic linking exception doesn't apply.

Same LGPL library, build a module that statically links against it, and use that in a JavaScript app. The NodeAPI code would be LGPL'ed since it's statically linked, but would the code be fine since node loads the module dynamically?

#licenses #lgpl #emscripten #nodeapi #javascript

Last updated 1 year ago

seyhajin · @seyhajin
9 followers · 11 posts · Server mastodon.gamedev.place

πŸš€My minimal example written in , compiled to

Just need to install

github.com/seyhajin/webgpu-was

#webgpu #c #webassembly #wasm #emscripten

Last updated 1 year ago

LisPi · @lispi314
144 followers · 2125 posts · Server mastodon.top

@dekkzz76 There's some post about having acquired or started a backend to the compiler for that, which is nice.

Unfortunately something like would still make for pretty fat wasm bundles that'd run significantly worse than native.

I'm somewhat happy about as a prospect because it's much lower friction than the hack of using or with .

#guile #scheme #ecl #guilewasm #chickenscheme #Gambit #emscripten #commonlisp

Last updated 2 years ago

Alex Macafee · @lxmcf
15 followers · 38 posts · Server mastodon.gamedev.place

Alright have googled to my hearts content and I cannot get it to work.. Trying to get working with and for the life of me cannot get audio to work and the console is filled with the error in the image... help!

(Tested in firefox and chrome)

#raylib #emscripten

Last updated 2 years ago

RetroDevDaemon · @retrodev
183 followers · 731 posts · Server mastodon.social

for status:

GObject classes were compiling, but no longer now that I am using the native GLib call and destroy code.
Linking is completely broken with emcc. I have to go line-by-line and fix the circular emscripten includes one by one by one.

Maybe it'll be ready for prod in a year.

#emscripten #vala

Last updated 2 years ago