HNHacker News
TopNewBestAskShowJobs

wging

2,299 karma · joined February 15, 2011

submissionscomments
wging··on A 40-line fix eliminated a 400x performance gap
I also like icicle graphs for this. They're flamegraphs, but aggregated in the reverse order. (I.e. if you have calls A->B->C and D->E->C, then both calls to C are aggregated together, rather than being stacked on top of B and E respectively. It can make it easier to see what's wrong when you have a bunch of distinct codepaths that all invoke a common library where you're spending too much time.)

Regular flamegraphs are good too, icicle graphs are just another tool in the toolbox.

wging··on You can make up HTML tags
A more common alternative to counting divs would be CSS classnames or (for unique elements on the page) IDs. You'd do `document.querySelector('.my-class')` to locate `<div class="my-class">` or similar, rather than using the fact that e.g. something is nested 3 divs inside <body>.

Even if this custom element trick didn't work, I don't see why one would need to count divs (at least if you control the markup, but if not then made-up tags aren't an option anyway). The article even mentions using class names as an option.

wging··on Stepping down as Mockito maintainer after ten years
I think the problem is that it's on his users to enable this flag, not something that can be done by Mockito automatically.
wging··on How uv got so fast
uv supports PyPI, which still has packages that are Python-2-only. So even if you're running python 3.8, it seems possible to try to declare a dependency on some <3.0 code from PyPI. That means it's an error they should detect.
wging··on Show HN: Ez FFmpeg – Video editing in plain English
It's based on mpv, not vlc.
wging··on The best things and stuff of 2025
2023, 2018, and 2016 were all submitted, just with very few comments.
wging··on How uv got so fast
I think the article is being careful not to say uv ignores _all_ upper bound checks, but specifically 4.0 upper bound checks. If a package says it requires python < 3.0, that's still super relevant, and I'd hope for uv to still notice and prevent you from trying to import code that won't work on python 3. Not sure what it actually does.
wging··on When compilers surprise you
The beginning of that article is slightly wrong: the compiler should compute N(N-1)/2 (and does), because the original code adds up all the numbers from 0 to N excluding N. The usual formulation in math includes the upper bound: the sum of integers from 1 to N, including N, is N(N+1)/2, so you have to replace N by (N-1) if you want a formula for the sum where the last number is N-1.
wging··on Thoughts on Go vs. Rust vs. Zig
> But in go you can just _err and never touch it.

You can do that in Rust too. This code doesn't warn:

    let _ = File::create("foo.txt");
(though if you want code that uses the File struct returned from the happy path of File::create, you can't do that without writing code that deals somehow with the possibility of the create() call failing, whether it is a panic, propagating the error upwards, or actual error handling code. Still, if you're just calling create() for side effects, ignoring the error is this easy.)
wging··on Advent of Code 2025
Yes (or so I thought too!), but apparently no: https://blog.vero.site/post/noulith

(post title: "Designing a Programming Language to Speedrun Advent of Code", but starts off "The title is clickbait. I did not design and implement a programming language for the sole or even primary purpose of leaderboarding on Advent of Code. It just turned out that the programming language I was working on fit the task remarkably well.")

wging··on Advent of Code 2025
That 'digital tree' idea is similar to how AoC has always worked. There's a theme-appropriate ASCII graphic on the problem page that gains color and effects as you complete problems. It's not always a tree, but it was in 2015 (the first year), and in several other years at least one tree is visible. https://adventofcode.com/2015
wging··on Landlock-Ing Linux
I read the article as saying that there's no official C library but unofficial ones do exist. Quote below, emphasis mine.

> A official c library doesn’t exist yet unfortunately, but there’s several out there you can try.

Also, it looks like there is more than zero support for C programs calling Landlock APIs. Even without a 3rd-party library you're not just calling syscall() with a magic number:

https://docs.kernel.org/userspace-api/landlock.html

https://github.com/torvalds/linux/blob/6bda50f4/include/uapi...

https://github.com/torvalds/linux/blob/6bda50f4/include/linu...

wging··on Anthropic’s paper smells like bullshit
> The operational tempo achieved proves the use of an autonomous model rather than interactive assistance. Peak activity included thousands of requests, representing sustained request rates of multiple operations per second.

The assumption that no human could ever (program a computer to) do multiple things per second, nor have their code do different things depending on the result of the previous request is... interesting.

(observation is not original to me, it was someone on Twitter who pointed it out)

wging··on Do you know that there is an HTML tables API?
You can use document.createElement and document.appendChild to create every last <th>, <tr>, and <td> if you want. Those functions are not specific to tables, unlike the one mentioned in the blog post. They can be used to create any elements and place them in the DOM. But if you know what you are doing you can get a perfectly fine table out of that. (Not that you should.)
wging··on /dev/null is an ACID compliant database
And fastjson is an extremely fast json parser: https://github.com/qntm/fastjson
wging··on Cleaning house in Nx monorepo, how i removed unused deps safely
It sounds like they are counting transitive dependencies. If so, that means they deleted far fewer than 120 different lines in their own config to end up with that level of reduction.
wging··on Bcachefs Goes to "Externally Maintained"
There's been much more recent friction between various parties, so I don't think this most recent news is a direct result of that decision. See for instance https://news.ycombinator.com/item?id=44464396
wging··on RFC 9839 and Bad Unicode
For more details: https://simonsapin.github.io/wtf-8/
wging··on Why are anime catgirls blocking my access to the Linux kernel?
... looks like they did: https://github.com/TecharoHQ/anubis/pull/1004, timestamped a few hours after your comment.
wging··on How we exploited CodeRabbit: From simple PR to RCE and write access on 1M repos
The article seems to imply that something of the sort had actually been attempted prior to the incident, but was either incomplete or buggy. I'm not sure the details would be entirely exculpatory, but unless you want to flatly disbelieve their statements, "not considered" isn't quite right.

> After responsibly disclosing this critical vulnerability to the CodeRabbit team, we learned from them that they had an isolation mechanism in place, but Rubocop somehow was not running inside it.

wging··on Efrit: A native elisp coding agent running in Emacs
I think it might be 'e' for 'emacs' (there's precedent: eglot, eldoc, eshell, erc, emms) combined with 'ifrit', since "efrit" is a much less common spelling.
wging··on Rules by which a great empire may be reduced to a small one (1773)
It’s not uncommon for the time. E.g. “in Order to form a more perfect Union, establish Justice, insure domestic Tranquility, provide for the common defence, promote the general Welfare, and secure the Blessings of Liberty to ourselves and our Posterity…”
wging··on The Math Is Haunted
There is a game already, though it may not be exactly what you want (and the goal is definitely not "generate all known math"). I've played around with it, and I do think it's pretty fun.

The article mentions it, in fact: https://adam.math.hhu.de/#/g/leanprover-community/nng4

wging··on M8.7 earthquake in Western Pacific, tsunami warning issued
ah, you're right. I knew that, think I must've looked at it too fast and assumed it was .gov.ca. (which isn't even the TLD that the Canadian government uses, but never mind...)
wging··on M8.7 earthquake in Western Pacific, tsunami warning issued
The USA also has a site that seems to be up at the moment. Without seeing the CA version I'm not sure how it differs, but I suspect it's possible for Canadians to get some useful local information from it: https://www.tsunami.gov/
wging··on Show HN: Ten years of running every day, visualized
Just a labeling issue. If you click on the 5k you get a detail popup on the right that says 5 miles, which is much more in line with several of the other times.

5 miles is not that uncommon a race distance in the US; 8k is very close, but you can still find both. (There are much fewer 3-mile or 6-mile races, those are mostly all 5ks and 10ks.) Though it's unclear if it was an organized race.

edit: it probably wasn't an organized race, there's a separate "races" tab.

wging··on Jank is C++
Yeah, my favorite Q3 engine game was Jedi Outcast (the engine must have been licensed, since the game was released before 2005, when it was open sourced)
wging··on Jank is C++
Quake III Arena was released in 1999. It was open-sourced in 2005.

https://github.com/id-Software/Quake-III-Arena

https://en.wikipedia.org/wiki/Id_Tech_3

(from the source release you can see benreesman remembered right: it was lcc)

wging··on The Prime Reasons to Avoid Amazon
The federal government is distinct from state or local governments. The numbers still might not be consistent (it says “[t]he federal government provides 13.6% of funding for public K-12 education”, which would be more than $53MM) but the page you linked draws that distinction too. State and local funds make up the difference.
wging··on Why AO3 Was Down
That article was from 2014, it has many more views now (about 5.6 billion).
← PreviousPage 2 of 25Next →