HNHacker News
TopNewBestAskShowJobs

grg0

732 karma · joined February 11, 2025

submissionscomments
grg0··on Leak Exposes 41,000 Homeland Security Workers–Including Undercover ICE Agents
"The lies are lies" being a true proposition is too meta for the average human brain.
grg0··on GitLab Security Incident: Attempted Exploitation of CVE-2026-97229
And how does Rust help? As far as I know, an integer overflow in Rust panics in debug but just wraps in release (a bad choice in my opinion). Would it help specifically in the code execution part of the exploit?
grg0··on StackOverflow now gets fewer than 1000 questions a month
It is not obsolete insofar as it is a good source of Q/A material, which is useful to both humans (directly or indirectly) and bots. The only part of it that is obsolete is the search/query part. If the AI companies had an ounce of decency, they would see no problem injecting money into the platform to continue seeding that Q/A material which they have directly profited from. But investing in a commons is not on the playbook for vulture capitalism.
grg0··on Four Months of Zig
Thanks for pointing that out, it does explain many things. It's tiring to read about languages and projects like they are some hot shit that makes everything before it obsolete when in reality it's just a different set of trade-offs. We should approach discussions more objectively like your comment does and less like a marketing slide.
grg0··on Four Months of Zig
Not to take away from your point, but client_max_body_size "Sets the maximum allowed size of the client request body." That is different from how much the server/service is allowed to allocate internally to service the request.
grg0··on Four Months of Zig
Interesting, thanks for elaborating.
grg0··on Four Months of Zig
The problem is not finding limits, although that does take decent engineering for anything non-trivial. The problem is that a hard limit assumes your requests have a relatively uniform distribution of memory requirements. Otherwise, you are wasting memory. Or you have N limits instead, which just complicates the problem.

Resize: realloc invalidates pointers. If you're saying allocate more chunks and link them, that is technically no longer an arena?

Requesting virtual memory and committing lazily seems a good trade-off except on Windows, which does not allow to over-commit. Somehow I don't find that very satisfying because it relies on the OS and on the hardware to provide virtual memory support. But maybe it's just what it is.

grg0··on Four Months of Zig
As opposed to allocating a bunch of memory you won't need?

Allocating virtual memory up front and committing lazily might be a good trade-off, until it isn't. So I'm not actually sure and hence why I asked the question.

grg0··on Four Months of Zig
> Now all of your allocations during that connection are guaranteed to be freed instead of having to keep track of them individually

And how do you size the arena?

> keep track of them individually

I think this is an exaggeration of the problem. This is what RAII semantics in C++ are for.

> avoiding that kind of invisible code

The invisible code is traded for defer statements right after initialization that are obvious and therefore mostly just noise, and also a problem if you forget to call them. This isn't an issue with RAII. I get the point of not wanting invisible code, but defers don't seem much of an improvement either. A trade-off at best.

grg0··on Four Months of Zig
The truth is really a middle ground and the fact that you won't get the design right the first time around until you have built that hardware programming experience and learned from past mistakes. But this statement doesn't make for a good marketing stunt.
grg0··on Four Months of Zig
> This continues with enough request bursts on our testing until the process runs out of memory

Curious, how much memory and how many requests does that take to exhaust?

grg0··on Source code of the Estonian online voting system
The US voting system is probably not a good starting point for modeling such systems :)
grg0··on Extra Big Ass Intelligence
I actually like the web design, so colourful. Beats any mainstream site riddled with ads.

Unfortunately, there are no hot singles in my fusion reactor.

grg0··on SIMD in the 90s: Programming Intel's Pentium MMX
Which is not to say that they are necessarily auto-vectorizing. You know wassup when you see vaddsd instead of vaddpd. And ideally you'd use AVX-512 to saturate a modern cache line if you can afford to drop support for the older devices.
grg0··on AI fuels more than half of cybercrime in Africa as scams surge – Interpol
The scams do leave voicemails now, and they use voice genAI per the parent comment.

If someone really wants to get a hold of you, they can knock on your door.

grg0··on AI fuels more than half of cybercrime in Africa as scams surge – Interpol
With all the Nigerian princes out there, you'd think one of the bastards would have already made an official claim to the throne.
grg0··on AI fuels more than half of cybercrime in Africa as scams surge – Interpol
"cringelord"

I cracked. Had never seen that used before, yet so obvious now in retrospect. Pure poetry.

grg0··on Why we write our own C and C++ inference engines
Not sure what's worse, if the AI slop content, or the AI code slop that makes the site consume 100% of a single CPU core (and if you enable GPU rendering on the browser, CPU usage is still significantly above zero.)
grg0··on Show HN: Shitty – fast terminal. Memory-unsafe and faster than yours
Sorry, but you simply prompted an LLM and didn't even bother reviewing the output per our other discussion about pthreads. I'm not sure you can claim to be an expert, let alone put your opinion on the same level as mine.
grg0··on Show HN: Shitty – fast terminal. Memory-unsafe and faster than yours
It wasn't me flagging, by the way.

The burden of proof also falls on the person making the claim.

grg0··on Show HN: Shitty – fast terminal. Memory-unsafe and faster than yours
> I'm provably doing the minimum amount of work possible.

That is a very bold claim to make for the amount of render code generated by the LLM. It's not obvious what the critical path even is, which is what would bound the latency. And I mean actual code, not just some informal description of what happens.

grg0··on Show HN: Shitty – fast terminal. Memory-unsafe and faster than yours
I see, I wasn't aware of that one. Typically I'd assign an ID, but yeah, names make things easier.
grg0··on Show HN: Shitty – fast terminal. Memory-unsafe and faster than yours
What do you mean you didn't notice? I saw another comment about Claude below, are you not even reviewing the output?

I just browsed the project for two minutes and it's one of the first things I noticed. std::thread is more portable (Windows, if anyone cares) and allows you to pass in a lambda, which keeps the code local and also has the compiler generate the closure for you instead of having to pass function pointers and void* captures around. I don't see any advantage to using pthread directly.

grg0··on Show HN: Shitty – fast terminal. Memory-unsafe and faster than yours
Why are you using pthread instead of std::thread?
grg0··on German carmakers flood jobs market with managers after wielding axe
Going for the extra crit chance.
grg0··on Bacteria and the Inverse Association Between Farm Exposure and Childhood Asthma
I thought it was general knowledge that growing up with animals, not necessarily in a farm, boosts your immune system for life with all the (good) shit you get exposed to.
grg0··on Metropolis 1998
Interesting use of DoF, hadn't seen that in an isometric game. Art looks really good too.
grg0··on Microsoft raises Xbox prices by up to 43%
The best part is that the era isn't gone; you can buy those and the games, and it's not even an expensive hobby. And people also know how to / can repair them.
grg0··on German carmakers flood jobs market with managers after wielding axe
But do they dual-wield?
grg0··on AI financial advice is surprisingly good, especially if you ask right questions
No offense, but: you need to get out of the house more. It'll answer your question very quickly.
Page 1 of 11Next →