πŸ‡¨πŸ‡¦ Kyle Halladay
Follow

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...)

@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 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

@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 :)

Sign in to participate in the conversation
Gamedev Mastodon

Game development! Discussions about game development and related fields, and/or by game developers and related professions.