News for hackers. Stuff that matters.

pubby

HN is mostly dead to me. The site was billed as a place for curious minds, but there is little curiosity in letting a machine do your thinking.
Re:State of Kdenlive on Saturday April 18, 2026 @05:22PM (#47819634)
I've had several instances of Kdenlive corrupting my save file, making them unable to be recovered. So no, that's not always a solution.
Lego's original moat was their patent. This expired in the 80s, and so their new moat became their manufacturing tolerances. None of their competitors could match the quality of their product. This lasted until about the 2010s when clone brands in China finally caught up, and coincidentally, Lego's own quality started slipping. Thus, they needed a new moat, and the choice was obvious: licensing.
Re:I’m joining OpenAI on Sunday February 15, 2026 @06:24PM (#47028853)
Single-handed made me smirk. It was vibe coded.
Re:It is 85 seconds to midnight on Wednesday January 28, 2026 @01:48PM (#46799852)
Don't get hung up on the numbers or scale. The value of the doomsday clock is in the direction it's moving.
Re:Why SSA Compilers? on Thursday October 23, 2025 @12:21PM (#45683706)
You're very correct but I suppose I was really answering why compilers centralize around SSA. It's a bold choice to choose one data structure for everything, and that requires more motivation than, "it makes certain optimizations really easy". Because again, it makes other stuff harder.

>And going further with the sea-of-nodes representation just makes them all more powerful; I really do recommend reading Cliff Click's thesis.

We might have to agree to disagree on this one. I actually found sea of nodes to be a boneheaded idea. It makes one or two optimizations a little more elegant but everything else a huge pain in the ass. At least, that was my experience.

Re:Why SSA Compilers? on Wednesday October 22, 2025 @06:34PM (#45676026)
I like this article a lot but it doesn't answer the question of "Why SSA?".

Sure, a graph representation is nice, but that isn't a unique property of SSA. You can have graph IRs that aren't SSA at all.

And sure, SSA makes some optimizations easy, but it also makes other operations more difficult. When you consider that, plus the fact that going into and out of SSA is quite involved, it doesn't seem like SSA is worth the fuss.

So why SSA?

Well, it turns out compilers have sequencing issues. If you view compilation as a series of small code transformations, your representation goes from A -> B, then B -> C, then C -> D and so on. At least, that's how it works for non-optimizing compilers.

For optimizing compilers however, passes want to loop. Whenever an optimization is found, previous passes should be run again with new inputs... if possible. The easiest way to ensure this is to make all optimizations input and output the same representation. So A -> B is no good. We want A -> A: a singular representation.

So if we want a singular representation, let's pick a good one right? One that works reasonably well for most things. That's why SSA is useful: it's a decently good singular representation we can use for every pass.

Re:NESFab – A new programming language for creating NES games on Thursday February 13, 2025 @12:50PM (#43038932)
Hey, this is my project. Cool to see it here again.

You might like this article I wrote on the backend: https://pubby.games/codegen.html

Re:DOGE Staffer Is Trying to Reroute FEMA Funds on Thursday February 13, 2025 @09:48AM (#43036363)
Keep in mind that the ruling party has massively powerful surveillance systems at their fingertips. It's hard to say how things will unfold, but being a dissident may not be in one's best interest.
Re: on Monday February 03, 2025 @08:58PM (#42926539)
Well, they won two branches democratically. The supreme court is a different matter.
Re:The Untold History of Toontown's SpeedChat on Wednesday January 29, 2025 @01:53AM (#42862279)
I remember playing that game once. The vast majority of the chat messages were some variant of, "I need a boy" or "I need a girl", meaning they were looking for dates. I guess boyfriend and girlfriend were banned, but boy and girl weren't. It was hilariously bad.
Re:Former President Trump is projected to win the presidency on Wednesday November 06, 2024 @03:18PM (#42068688)
I didn't intend for my post to be about rural vs urban, or smart vs dumb. The point I was trying to make was that some people just aren't interested, no matter their background. You can find these people everywhere, which might explain why Trump gained in almost every county this election, even urban ones.

It's a spectrum of course. The friends you describe sound like they fall somewhere in the middle of caring about politics vs not. My point of discussion is on the people at the low end, as these are likely to swing. People past a certain threshold of attachment have had their votes locked in for years.

Re:Former President Trump is projected to win the presidency on Wednesday November 06, 2024 @06:18AM (#42060183)
Something I've been wondering lately is how big of a blind spot I have from being habitually online. Like, I'll read the news, and I'll read political discussions on HN and r/politics and r/conservative and Twitter, and I'll try to get a sense of what everyone is thinking, but unfortunately I don't think that's possible. The posters on these sites all have one thing in common: they're into politics and current events.

Having a chance to talk to more people in meatspace this year, it was a surprise to find out how many people have only a passing interest in politics, but still vote. Like, the average user here probably reads 5+ news articles a day, but there are plenty of people IRL that will read one a month, or maybe just skim a headline. They don't really keep up-to-date with the race. They mostly vote by feel and pragmaticism.

People always talk about "shy" Trump voters, but what makes me more curious are voters that match the description above. If you put someone in a voting booth who isn't interested by news, who do they vote for? I mean, Trump has a lot of surface-level qualities - he's a tall, confident white man who's a successful boss of business and an anti-establishment outsider - and maybe that's enough to capture this demographic.

Ask HN: I feel both valuable and worthless

Sorry if this is trite, but I'm looking for life advice. Right now, I'm not making much money, and that needs to change relatively soon.For the past few years I've been applying to programming jobs, but I just can't get any interviews. I'm guessing this is because I don't have formal education nor do I have relevant work experience. If there was a cookie cutter for Joe Developer, I just don't...

( Read More... | 9 comments | 4 points | on HN )
Re:Ask HN: C++ devs who went C only on Sunday April 14, 2024 @07:14PM (#40035358)
Take strings for example. In C you have to manually manage memory and there are a million pitfalls. Lots of programmers are lazy and use fixed-sized arrays and "unsafe" functions like strcpy which results in security vulnerabilities and large-input bugs. But even if you do it correctly you have all this mental overhead and lots of lines of code.

In C++ you just drop in std::string and go.

Re:Ask HN: C++ devs who went C only on Sunday April 14, 2024 @07:11PM (#40035339)
I mean it depends on the project and scope, but if you just write C-style code but use unique_ptr, vector, string, and <algorithm>, you're already at an advantage.
Re:Ask HN: C++ devs who went C only on Sunday April 14, 2024 @06:23PM (#40035007)
I've seen a few people/companies do this and it always baffles me. You don't have to use every C++ feature in existence, but a little bit here and there is far more productive and safe than writing C.
So here's the problem: you can buy an older cast-iron table saw with good precision and a large bed for $50-$150 on craigslist, or you can buy a cheap piece of made-in-china plastic at home depot for $500. The cheap piece of plastic checks off more safety features from a regulatory standpoint, but tiny size and poor tolerances results in more kick-back and accidents.
Re:Deficiencies in GCC's code generator and optimiser on Wednesday March 27, 2024 @01:16AM (#39835885)
Trying to write a perfect optimizer is like trying to slay a hydra. Every time you address one weakness, two more are spotted. The overall approach has to run in polynomial time (or close to it), so there will always be missed optimization chances.

And then half the time it's just your compiler being stupid.

Re:Why did we wait so long for the bicycle? (2019) on Thursday March 21, 2024 @03:22AM (#39775649)
I'd recommend just googling how a bike works instead of pursuing this argument. There's lots of good articles, like this one: http://www.cyclelicio.us/2011/bicycle-dynamics/ It looks like my theory on wheel angle may not be entirely true either. You can also find videos on youtube.
Re:Why did we wait so long for the bicycle? (2019) on Thursday March 21, 2024 @03:06AM (#39775568)
Nah, that's not it. Try riding a bike in reverse (or pushing it). It's not at all stable, because the feedback is applied in the opposite direction. You'll fall right away, even though the gyroscopic effect is identical.
Re:Why did we wait so long for the bicycle? (2019) on Thursday March 21, 2024 @01:57AM (#39775244)
I've heard that the gyroscopic effect in bicycles is rather small. The balance instead comes from the positive angle of the front wheel, creating feedback. If the bike leans one direction, the wheel rotates to counteract it.
Re:Ask HN: How did you get yourself out of a rut? on Wednesday March 20, 2024 @05:06AM (#39764197)
Thanks. I might sell some one day, maybe as a physical cartridge release as those have better margins. Mostly though I want people to enjoy my stuff, so a lot of what I release is free.
Re:Ask HN: How did you get yourself out of a rut? on Wednesday March 20, 2024 @03:27AM (#39763653)
Thanks! That means a lot.
Re:Ask HN: How did you get yourself out of a rut? on Wednesday March 20, 2024 @01:35AM (#39763138)
It's always a eucatastrophe[1] for me. Some random event occurs and it gives me something to focus on. Maybe a person shows up in my life, or an event, or an idea. Contrary to common belief, trying to pull myself out through sheer will and habits never worked.

[1] https://en.wikipedia.org/wiki/Eucatastrophe

Re:Lego price per part over the years – Brick Insights on Tuesday March 19, 2024 @07:34PM (#39761434)
As a kid I did the math on all the lego sets, and came to the conclusion that the 500 piece bucket was the best bargain, beating out the 1000 piece bucket by a decent amount. Most other sets were an awful value in comparison.

As an adult, I realized buying new was idiotic when I could just buy used. I ended up buying a former lego employee's collection for $60, selling the monorail it contained for $1000, and keeping the massive washing-machine sized rest for myself. Too bad deals like that come once in a lifetime!

Re:Why are most sofas so bad? on Saturday March 16, 2024 @01:36AM (#39723639)
OSB is much more nuanced than particle board, often in a bad way. Many manufactures orient the chips along a single axis, meaning it shares the anisotropic properties of solid wood where the X axis has a different strength and expansion rate than the Y axis. And looking at the 3rd dimension, the Z axis is actually quite weak. If you glue something to the face of an OSB board, you can break the joint fairly easily because the individual chips pull out.
I don't but my girlfriend makes it using butter or oil.
Something I realized recently was that you can just buy popcorn kernels in bulk and pop them in the microwave using a covered bowl. I don't think I'll ever buy instant popcorn baggies again.

Older »