Hacker News new | ask | show | jobs
SDL_GPU minimal, single-header, high-performance 2D graphics painting library (github.com)
65 points by n67094 128 days ago
7 comments

This isn't SDL_gpu, that is part of SDL3. This is SDL_gp, an external lib which builds on the former.
You are right, I made a typo ... :facepalm:
How is this different from SDL_Render? https://wiki.libsdl.org/SDL3/CategoryRender
Thanks for the feedback you are right, this is necessary ! I'll do that asap :)
If only there was some link to a readme which would answer this question.
I'll make sure to add that, thanks for the feedback.
It doesn't.
The naming of the library is pretty confusing, considering SDL_gpu is an official part of SDL3.
naming of api functions too. They all prepended with "SDL_" as if this is SDL library, but it not.
Well, I understand your concern, it's for naming consistency in codebases that may use this lib, like this one https://github.com/sabdul-khabir/SDL3_gfx, which is listed here https://wiki.libsdl.org/SDL3/Libraries (it's also an unofficial lib, like SDL_gp).
https://github.com/dascandy/pixel

I personally think this is better.

completely different under the hood, the one you sent use OpenGL only, SDL_gp use Vulkan, metal or DirectX depending on your system. There is also a lot of other diff but it will be long to explain ^^. But thanks I didn't know about the one you sent :)
Why?
Cool work!
thanks :)
Nice Ai prompting, bro..

Might want to share your harness /s

I "don't" use AI, I mean like most devs nowadays, I have a Copilot suggesting "smart" autocomplete, that's all. I wouldn't let an AI pilot my codebase. If you have a bit of probability knowledge, you may be aware of what happens when you're trying to get specific outputs from generic inputs.

And if you don't have a bit of probability knowledge: generic input just means high variance in the output, so "it looks right" isn't the same as "it is right." In other words, you'll just get a noisy sample out of many possible ones... and not what you really want.

This seems to point in the direction of a best-of-n approach?
I know you're being sarcastic but I think some people may find this interesting:

https://minimal-agent.com/

I made one based on this tutorial (about 50 lines), which is about 8x faster and cheaper for small tasks in my experience. I highly recommend the learning experience.

[flagged]
Please don't post like this on HN. The guidelines make it clear we're trying for something better here. https://news.ycombinator.com/newsguidelines.html
They who must must not be named actually get a decent income e-begging, they just got used to living in San Francisco.
[flagged]
Please don't reply to a bad comment with another bad comment. Personal attacks are never ok here. You could easily respond by engaging with the substance of their comment rather than ad hominem. https://news.ycombinator.com/newsguidelines.html