Just updated all https://thi.ng/wasm-api packages, bindgen, build scripts, readmes and examples to be compatible with the brand new Zig v0.12.0 released a couple of days ago... This includes adapting to breaking changes (esp. Zig's build system) and updating the hybrid Zig/WASM/TypeScript project template:
#introduction I am Kevin(he/they)! I am a software developer. Not into social media much. Didn't want to sign up for twitter and people seem nice here. :blobfoxheartcute:
Slowly recovering from burnout after almost 3 years at a startup. Getting back into long neglected hobbies has been great for that.
@linusgroh is the author of one of the coolest projects, I know.
It’s called Kiesel and is a JavaScript-Engine, written in #ziglang.
Reading the code of Kiesel is really cool, because it is annotated with references to the #ECMAScript standard and really good structured.
This week we’re joined by @drewdevault, talking about the Hare programming language 🐇
We discuss Hare (of course), why he’s so passionate about all things open source, the state of the language, fostering a culture that values stability, and oddly enough — what it takes to make a peanut butter and jelly sandwich 🥪
Join me online next weekend at Apache #NuttX International Workshop (Sep 29 & 30) ... We'll chat about #RISCV, #PinePhone, #LVGL, #ZigLang and lots more!
Ohai! #introduction
I am a software developer and started my journey almost two decades ago, so I formed some opinions on the way; I might contribute to some discussions.
I like talking about programming languages; expect posts about #golang, #rust, #ziglang, #perl, #compilers, #gamedev and #webdev
As a German #expat I lived in #sweden for years before moving to #valencia#spain. Expect comments about expat life, Spain and maybe some pictures.
Also, #drums, #dogs, #minimalism, and #coffee. 🦎
#HowToThing#010 — Creating a basic web app with declarative UI/DOM creation via Zig/WebAssembly and the super extensible https://thi.ng/wasm-api and its https://thi.ng/wasm-api-dom add-on module, both hybrid TypeScript/Zig libraries. See alt text of images for details.
Okay, maybe I'm missing something here, but why is there a difference between a union and a union(enum)? Why isn't every union behaving like a union(enum) from the start? #ziglang
This week, when I wasn't working on the upcoming thi.ng/fibers library (process hierarchies for cooperative multitasking), I've also been doing minor progress on my #Ziglang & #WASM-based (X)PBD (position based dynamics) physics library and the related art piece I've been working on: #DANZA
Anyone aware of any #WebAssembly discrepancies in #Safari compared to #Firefox and #Chrome? Maybe SIMD related? I've just received a bug report that the #Ziglang-based voxel renderer linked below only ever renders a blue sky gradient, but no actual voxel model as you'd get in the other browsers (and as shown below). Just verified it myself with Safari v16.4. No errors, though... 😫
Going through #ziglings
When it comes to minimal languages, I feel that Zig has much greater potential than Go. But tooling-wise, Go has the edge for now.
Honestly, the consistency and elegance of Zig is blowing my mind. #zig#go#ziglang#golang
Very much love & respect @andrewrk's stance of prioritizing quality over quantity and not giving in to pressure to rush things. Zig v0.11 might be slightly delayed, but good things come to those who wait... hopefully, August 3rd! 🤞
As I've been updating the build files for my various #ziglang projects & templates, also learned that quite a few of them have to be overhauled/refactored due to syntax changes and a more strict compiler. One example is this #WASM#voxel#renderer from 1.5 years ago which doesn't build anymore without major code updates, but the old build still works:
Reload for random views. Press x to export current frame. The renderer is incremental (never finishes) and slowly reduces pixel size from 8 down to 1. It would be much faster, but I had some ideas for creating a more stylistic output and in this current state it only renders a fixed area per frame...
The 2-bit 512^3 voxel model was generated with a custom fork of @R4_Unit's voxel automata... 🥰