Search
Items tagged with: zig
So, to get back onto having fun with programming after some bad experiences with #rust people I decided to do a bit of #nim (skull) to get back into the groove again.
One thing that I really like about nim is just how natural and extremely readable it feels. just being allowed to overload stuff, being able to pretty easily just extend stuff small things like indexing a 2D array with a point or that making a contains functino automatically lets me use the "if point in grid" style syntax is really nice.
The one thing from #zig that I kind of miss is that each struct kind of works like a namespace where you can add your functions that works on that type, it kind of makes the code more ordered, because as I end up doing it in my code, it does become a bit more cluttered since everything is on the top level.
Another really nice thing that I like with nim is that it allows me to use the (oca)ml type function calls, so that I can do "seq.add blah" rather than having to do "seq.add(blah)" it's a small thing, but it's really nice.
https://gist.github.com/sotolf2/fc66ac3ae9e217f9dcc932b8900c23dd
GitHub - ArborealAudio/arbor: Easy-to-use audio plugin framework
Easy-to-use audio plugin framework. Contribute to ArborealAudio/arbor development by creating an account on GitHub.GitHub