๐Ÿ‡จ๐Ÿ‡ฆ Kyle Halladay is a user on mastodon.gamedev.place. You can follow them or interact with them if you have an account anywhere in the fediverse. If you don't, you can sign up here.
๐Ÿ‡จ๐Ÿ‡ฆ Kyle Halladay @khalladay

Last year I made a rule for myself that I wouldn't write any new classes in personal projects (using classes from external libs and stdlib was still fine), and it was a great learning experience.

This year I'm considering making all my personal projects C only. Anyone out there working in primarily C? I'd love some recommendations for a decent math lib, since right now I'm using GLM (which is super template heavy...)

ยท 1 ยท 1

@khalladay github.com/nothings/stb github.com/nothings/single_file_libs

Those are the starting points i use.

But I don't use any library I can't just "' without a build system, so you probably aren't as extreme and so have more options. :)

@khalladay
I don't know if it's any good and know nothing about it but i saw this one when i was looking for similar recently github.com/ferreiradaselva/mat

@khalladay Checkout handmade math (handmade-math.handmade.network) as well as the other stuff on handmade.network

@khalladay same boat here :) Did you try datenwolf/linalg?

@rlyeh haven't tried anything yet - wrapping up my current small c++ project before transitioning to C for the year - have you tried it?

@dougbinks I like the simplicity - my personal projects definitely don't need an industrial strength solution. I'll add it to the list of things to try out. Thanks!

@khalladay I started writing more C a few months ago and enjoy it very much, for C++ I'm also using C++ but for my C code I'm using HandmadeMath.h (see my C samples here: github.com/floooh/sokol-sample), HandmadeMath itself is here: github.com/HandmadeMath/Handma

@khalladay oops, that should be "for C++ I'm also using *glm*"

@floooh Thanks! I'll give it a shot - I'm a bit skeptical of the handmade community's stuff (mostly because my perception is that it's mostly made up of newer devs, which may be incorrect), but if you're using it and liking it, that's enough of a recommendation for me :)