You know, I wish compilers had a super strict warning compiler flag, I know there's -Wall, but it doesn't actually turn on all warnings oddly enough.

C could probably be almost as safe as memory-safe languages if the programmer didn't have to pass 30 different warning flags, link with ASAN and UBsan, pass mysterious -f compiler flags, pass odd macro flags like _D_FORTIFY_SOURCE, etc.

You know, doing Object-like programming in does feel a bit wrong. But I can't deny it makes the code cleaner to look at!

Life hack I discovered:

Getting to write functions in api so I can port my shit more easily. lol

Sure, I have to fix the functions sometimes, but hey, they work and give me a starting point without researching the extremely confusing win32 api

For anyone who does a lot of and stuff and wants to make sure your stuff works across , , and . This is a really useful site: https://pubs.opengroup.org/onlinepubs/9699919799/

Everything here is almost guaranteed to be on every system

I just did in ... This is kind of cursed lol

Macro functions in makes manipulating strings just a bit more tolerable lol

Making a program in after taking a break from it to use . I had almost forgotten how ass strings were =P

You know, it's always really cool looking at the generated code from . Makes me realize how much time I saved lol

So, i'm making a library of functions that I constantly re-create for my programs. I'm calling it (creative, I know), and it has no dependencies and is written in gnu99 standard.

No repo for it yet, but I'm wanting to make it easy to add as a submodule for projects.

Welp, after a few days. I'd say my project is complete! Come check it out!

https://pagure.io/DaLazySlackers/sh2exe

Welp, I've tested on most platforms, and my Pong game works perfectly. So I'm probably gonna release v1.0 today, and finally move on from this spaghetti code of a project lmao

It has been tested and works for:

It probably works on and too.

It'll be published here: https://www.opencode.net/charadon/Pong-C

Welp, my pong game works perfectly on !

I've been busy today for the most part, but I managed to squeeze in a little bit of practice.

  • I did some fiddling around with println
  • Used cargo for a bit, and like it. But seriously, vendor your dependencies people...
  • Messed around with threading and atomics, works a lot like how SDL abstracts it on

in reply to this object

@mo8it@fosstodon.org Maybe. I do like how simple is though, I make mostly non-security critical applications (Games, basic non-internet connected applications, etc), so I never really have to worry about security, therefore I can do some funky shit in C lmao

I love , but strings make me want to die sometimes...