todaymare's Avatar
todaymare
Member since

Recent Activity

I wasn't going to post this but I decided I wanted to share it

I've been working on a web demo for my programming language margarine. Currently it compiles via LLVM on my mac mini and ships back a runnable wasm file

I don't know how to feel about it, honestly. I'd been working on this on and off for the past 4 years or so. It has had value types, reference types, a garbage collector, a custom VM, compiled directly to wasm, LLVM, back to custom VM, back to LLVM

But yeah. Stuff. We're back to pure value types with Rc as an escape hatch for mutation. Not sure what else to say

OH! WASM and loops!

So when building this demo I ran into an issue where if you did loop {} the browser would start lagging a lot & eventually the tab would crash. The solution I came up with was to insert a function call to yield the runtime at the end of every LLVM basic block. This is applied after LLVM optimisations. It calls the function and the function checks if 8ms has passed, if so it yields to the browser.

So far it seems to work fine but I'm open to suggestions

View original message on Discord

heya! i don't post a lot here since most other people have wayyy cooler stuff to show off than i do but god damn that factorio background is SO COOL

View original message on Discord

I spent my entire summer building a voxel engine, during which I realised that there's no entry point for voxel engines

So if you've been thinking about it, here's your entry point
https://daymare.net/blogs/voxel-engine-in-a-weekend/

View original message on Discord

While I work on a how to make a voxel engine post I gotta keep up my weekly schedule, hopefully, I’m not the only one who feels this way
https://daymare.net/blogs/everbody-so-creative/

View original message on Discord

Wrote my second blog post ever. Making a voxel engine in godot was actually painful ngl, it was so much nicer when I switched to just making it raw 🔥
dunno if I should post it here or what but lmk if not
any feedback is of course much appreciated. i gotta get better at this writing thing somehow
https://daymare.net/blogs/godot-ruined-me/

View original message on Discord