Readit News logoReadit News
pubby commented on Why SSA?   mcyoung.xyz/2025/10/21/ss... · Posted by u/transpute
titzer · 2 months ago
While iterating optimizations is nice, I think you missed the main point of SSA.

SSA makes dataflow between operations explicit; it completely eliminates the original (incidental) names from programs. Because of that, all dataflow problems (particularly forward dataflow problems) get vastly simpler.

With SSA you can throw basically all forward dataflow problems (particularly with monotonic transformations) into a single pass and they all benefit each other. Without SSA, you have every single transformation tripping over itself to deal with names from the source program and introducing transformations that might confuse other analyses.

I know we teach different compiler optimizations at different stages, but it's really important to realize that all of them need to work together and that having each as a separate pass is a good way to fail at the phase ordering problem.

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

pubby · 2 months ago
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.

pubby commented on Why SSA?   mcyoung.xyz/2025/10/21/ss... · Posted by u/transpute
pubby · 2 months ago
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.

pubby commented on NESFab – A new programming language for creating NES games   pubby.games/nesfab.html... · Posted by u/redbell
pubby · a year ago
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

pubby commented on DOGE staffer is trying to reroute FEMA funds   dropsitenews.com/p/doge-f... · Posted by u/jkestner
JumpCrisscross · a year ago
> Is there anything we can do?

Keep durable notes and share them with your electeds. Particularly at the state level. These kids won’t be prosecuted immediately, possibly never federally. But their actions will need to be systematically undone at the federal level and individually prosecuted at the state and/or local levels. This is going to be a massive bureaucratic and legal undertaking, and we’ll need record preservation to do it.

pubby · a year ago
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.
pubby commented on A Coup Is in Progress in America   techdirt.com/2025/02/03/a... · Posted by u/maximilianburke
pubby · a year ago
Well, they won two branches democratically. The supreme court is a different matter.
pubby commented on The History of Toontown’s SpeedChat (2007)   habitatchronicles.com/200... · Posted by u/thunderbong
bradchris · a year ago
This was so fun to read, and reminded me of Virtual Magic Kingdom (VMK), Disney’s other popular mmo at the time which was basically a Disney-fied Habbo Hotel [1].

It ran for about 3 years, but what I found interesting is the chat took the initial approach that the creators here dismissed: a whitelisted vocab list of safe words that you could type, and anything not on it would preclude the message from being sent.

There were definitely ways around it, but I also presume active monitoring of the slang, because eventually words like “dam” or phrases “what the shell” were banned too. Another thing that I recall is that case-sensitive spelling mattered, and there was no word bank, so in a way it enforced better spelling.

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

pubby · a year ago
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.
pubby commented on Trump wins presidency for second time   thehill.com/homenews/camp... · Posted by u/koolba
cynicalpeace · a year ago
You were respectably drifting away from your elitism in the first two paragraphs.

Then the last paragraph shows you have a long way to go.

> 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.

I live in a rural working class region. I have beers with these guys all the time. They're my best friends and I'm the odd coder guy that works from home.

They do not care about the surface level qualities, besides the fact that he's hilarious. They might not read articles but they listen to podcasts a lot on their commutes at 4AM in the morning.

They don't want war with Russia, they're pissed about the COVID stuff, and they aren't happy with the price of gas.

They don't care that he's tall.

pubby · a year ago
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.

pubby commented on Trump wins presidency for second time   thehill.com/homenews/camp... · Posted by u/koolba
pubby · a year ago
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.

Deleted Comment

u/pubby

KarmaCake day2651February 19, 2012
About
website: pubby.games
View Original