A while ago I got curious about how well Zig would handle a real physics project, so I decided to port Matthias Müller’s Ten Minute Physics FLIP fluid simulation. The result is ZFF (Zig Flip Fluid) — part experiment, part learning exercise, and honestly just an excuse to play with fluid dynamics and WebAssembly.
The main goal wasn’t to build a perfect engine. I mostly wanted to answer two questions:
- Can Zig comfortably handle performance-heavy physics code?
- How painful (or painless) is it to ship the same simulation to the web?
If you want to poke around the code, it’s all here: https://github.com/burakssen/zff
Read more...
For testing yourself: https://burakssen.com/zff
As usual when I’m bored and in search of a new project to create, instead of studying for my exams, I have stumbled upon the topics of boids (flocking simulation) and inverse kinematics from @TheCodingTrain, and thought why not combine them into one project and create a a simple fish tank simulation. I mean how hard could it be, right?
Read more...Today I’m writing my first blog post on this new page. I am really excited to share my thoughts and experiences on different topics.
Read more...