This is using grok but all of them seem just as bad at this.
It literally invented posts that don’t exist. Shame, some of the topics sounded interesting
The bold bits are what I types and the rest the response. I edited it to make it more concise and formatted and removed some unnecessary fluff (like it suggesting the next question to ask)
Using odin language I was searching for how to remove an item from a map in odin and the AI unprompted told me this. It’s just plain wrong, right?
I know… never use an AI for anything… I didn’t want it to but search does it for you these days :(
“In Odin, when a map has dynamic arrays as values, simply removing the key with delete_key ensures the dynamic array’s memory is properly freed. Dynamic arrays in Odin manage their own memory and store an allocator; when delete_key removes the key, the map system automatically cleans up the associated dynamic array using its allocator, preventing memory leaks. This works because the map understands how to destruct complex values like dynamic arrays. If you don’t use delete_key, the key-value pair remains, and the dynamic array’s memory isn’t released, leading to a leak—especially critical in long-running applications like games where such leaks accumulate over time.”
It’s been a while since I last wrote about my graphics project so I thought time for an update.
Frankly, not much progress.
I have a full time job and I have a toddler. That means that my free time is limited to about 90 minutes each evening after she has gome to bed. I often have30 minutes to do some code!
And quite often then I’m tired and just flop in front of the TV or read some things online and 90 minutes after a few days away mostly involves catching up with where I was last time.
I posted a couple of weeks ago about making a game but i’ve been thinking more about the code and
how to structure it. First of all I’m going to be using C++23 but mostly a C-like non-oop style.
After a lot of years of messing about with graphics, today I decided to
actually start making a game. More details on that to follow but first
I’m making a renderer using OpenGL4.6 and C++23
I’m going to write it using very simple C++ in a mostly none OOP style.
I will build some modules using a mostly structs and procedures style. My first library will be ‘Graphics’ which will use OpenGL to actually draw things on the
screen.
Here is my traditional first post blog posts to test if I can get hugo to work properly.
Most of my posts will probably be about C++ and other programming languages and opengl and similar.
Maybe I’ll post a few rants (but no politics!)
Let’s see if I can link to a photo of one of my cats: