HNHacker News
TopNewBestAskShowJobs

xenadu02

10,977 karma · joined May 14, 2014

all comments are my own personal opinions
submissionscomments
xenadu02··on I ported Mac OS X to the Nintendo Wii
IOKit was almost done in Java; C++ was the engineering plan to stop that from happening.

Remember: there was a short window of time where everyone thought Java was the future and Java support was featured heavily in some of the early OS X announcements.

Also DriverKit's Objective-C model was not the same as userspace. As I recall the compiler resolved all message sends at compile time. It was much less dynamic.

xenadu02··on DRAM pricing is killing the hobbyist SBC market
> Someone will fulfil the need as there is a high incentive to.

Unless the capital cost to compete is too high and the risk of the existing manufacturers undercutting you is very real. Plus it can take 5-10 years or more to build a new fab, debug/iterate your process, then start shipping product.

Markets are prone to natural distortions. This is one form of that. It can be perfectly natural for all potential competitors to choose not to compete no matter how much demand exists.

Frankly I'd expect nationalization of some of the DRAM makers before we see the rise of useful competitors. The more likely scenario is government pressure, up to and including arresting executives, to rattle the cages of the existing players who are way better placed to expand production quickly for relatively low capex. Not that I think any action is likely in the short term. My guess is the existing players are betting on an AI bubble pop so they don't see the use in really expanding capacity only to be left with idle fabs later. None of us really knows.

xenadu02··on SpaceX files to go public
I think you have to temper the skepticism a bit though.

SpaceX has dramatically lowered the cost of launching things into space. They are still the leader here. They can put a kg into orbit cheaper than anyone, even heavily subsidized state operations (EU and China).

Their order book continues to be full. Every single launch vehicle they roll off the line was pre-sold years ago, including its re-use flights.

I agree that Elon is their biggest potential problem and a big risk but their launch business is sound and wildly successful. If you believe access to space will be a growing segment of the economy in the future it isn't exactly a bad investment.

I remember all the people putting Tesla down when they IPO'd. I bought $4k of stock (all I could afford at that time). Sold $100k of it a few years ago, still have the other half worth near $220k. Their numbers at IPO time were garbage and it wasn't clear they would even survive. Then they started shipping hundreds of thousands then a million cars.

YMMV, consider all sides and make your own judgement. Just be careful about trusting the anti-SpaceX case. Even if everyone is technically correct about them it can still be a huge miss not to invest! The future is not static and if they can put the raised capital to productive use the IPO could end up being a fantastic deal. And FWIW I also agree the largest immediate risk is they are over-valued. Only time will tell on that front.

xenadu02··on Windows 95 defenses against installers that overwrite a file with an older one
It is important to remember that Microsoft created some of this chaos to begin with. Other aspects can be attributed to "the industry didn't understand the value of $x or the right way to do $y at the time". And some of this is "nonsense you deal with when the internet and automatic updates is not yet a thing".

Why did programs overwrite system components? Because Microsoft regularly pushed updates with VC++ or Visual Studio and if you built your program with Microsoft's tools you often had to distribute the updated components for your program to work - especially the Visual C runtime and the Common Controls. This even started in the Win3.11 days when you had to update common controls to get the fancy new "3d" look. And sometimes a newer update broke older programs so installers would try to force the "correct" version to be installed... but there's no better option here. Don't do that and the program the user just installed is busted. Do it and you break something else. There was no auto-update or internet access so you had to make a guess at what the best option was and hope. Mix in general lack of knowledge, no forums or Stack Overflow to ask for help, and general incompetence and you end up with a lot of badly made installers doing absolute nonsense.

Why force everyone to share everything? Early on primarily for disk space and memory reasons. Early PCs could barely run a GUI so few hundred kilobytes to let programs have their own copy of common controls was a non-starter. There was no such thing as "just wait for everyone to upgrade" or "wait for WindowsUpdate to roll this feature out to everyone". By the early 2000s the biggest reason was because we hadn't realized that sharing is great in theory but often terrible in practice and a system to manage who gets what version of each library is critical. And we also later had the disk space and RAM to allow it.

But the biggest issue was probably Microsoft's refusal to provide a system installer. Later I assume antitrust concerns prevented them from doing more in this area. Installers did whatever because there were a bunch of little companies making installers and every developer just picked one and built all their packages with it. Often not updating their installer for years (possibly because it cost a lot of money).

Note: When I say "we" here that's doing a lot of heavy lifting. I think the Unix world understood the need for package managers and control of library versions earlier but even then the list of problems and the solutions to them in these areas varied a lot. Dependency management was far from a solved problem.

xenadu02··on My MacBook keyboard is broken and it's insanely expensive to fix
I recommend ANSI rated cut protection gloves: https://www.mcmaster.com/9915N987/

I use them when working with sheet metal. They are high-dexterity. Thin and flexible. Steel threads are woven into the fabric. McMaster has a variety of high dexterity gloves - fingerless, insulating, cut-resistant.

xenadu02··on Death to Scroll Fade
> You might want to take some time off the internet, I can smell your liver from here.

I'm not sure what that means? Liver? Is that a drinking thing? I don't really drink so I dunno.

> Time to take a chill pill and learn to live with it.

I don't agree. Changes in trends can start many ways and one of them is by tech people complaining to other tech people.

It wasn't originally possible to hijack the browser's scrolling function (or history). Just like the early days of GUIs and windowing systems: some people take those tools and make an absolute mess. If no one ever yells at them for it they and those around them won't learn to be ashamed of making messes.

xenadu02··on Why so many control rooms were seafoam green (2025)
Because it's the least offensive. No one can yell at you or claim the color is "dated" if you stick to white/gray/black and a touch of stainless steel.

Sad to see how many houses are painted gray or beige in SF now. We are going to paint ours purple in protest.

xenadu02··on LaGuardia pilots raised safety alarms months before deadly runway crash
The REILs are part of ARFF training. Pilot training on it is also clear. The system is automated. It plots the direction and speed of anything approaching the runway and predicts a conflict. If the REILs are red it is HIGHLY likely there is a conflict that is missed by human error and you should not proceed without confirming. Don't just confirm cleared to cross, explicitly tell the controller "XYZ tower we have red runway entrance lights. Please confirm runway XX is clear".

The system is smart enough that if you get red bars to cross for an airplane departing once it passes your position the red clears because it knows the airplane is already past you. It is not dumb - it was deliberately designed to minimize false positives so everyone would trust it otherwise they might ignore it when it really counts. (AFAIK it very accurate in fact so the firetrucks weren't crossing because they distrusted the red lights).

This is just like all aviation incidents and indeed most incidents of any kind: the holes in the swiss cheese lined up.

The emergency aircraft couldn't find a free gate, creating a massive distraction for ATC, airport, et al. This is probably the primary domino that started the sequence. Had a gate been free this incident would not have happened. One big hole lined up.

Normally the aircraft would visually see the truck or the truck would visually see the airplane. But it was dark and rainy. Another hole lined up.

Everyone involved was rushing because noise abatement requires the airport to close at a certain hour. Thus everyone wanted to take-off or land before that shutdown. Another hole.

Normally the controller wouldn't issue the clearance to cross or their supervisor monitoring behind them would notice the error and override. But the controller and/or supervisor were distracted by the emergency. Another hole lined up.

The controller realized the error and issued a stop command but the fire truck proceeded anyway; they may or may not have heard the transmission. Another hole lined up.

Then someone else decided to jump on frequency during this busy time (we don't know who just yet) which may have prevented the controller's stop and/or go-around commands from being heard (another hole lined up).

The ARFF crew did not obey the REILs, accepting the clearance. Perhaps they thought the red lights were due to aircraft on short final and they still had time to cross? Perhaps it was some other misunderstanding of how that system works. Another hole lines up.

And the Air Canada jet was not paying attention to the chaos on frequency. There's a reason runway crossings are typically done on tower frequency: so aircraft can hear what is going on. But it was late at night and their brains probably didn't process what was happening. Or they were too close to touching down to have the bandwidth. Another hole lined up.

xenadu02··on Epic Games to cut more than 1k jobs as Fortnite usage falls
Is that not an admission that his poor management and lack of vision cannot foresee any way to make profitable use of those people's labor?

A company raking in 5-6 billion per year can't find any profitable bets to make? Possibilities to invest in? All they can do is cut?

LOL. If you're that bad at capitalism then please resign and let someone else give it a try.

Reminds me of PG&E. So bad at being a for-profit electric company they need constant state handouts to guarantee profits. They made bad contracts so they need a PCIA fee for not selling me electricity. Hedging? Severing contracts? Arbitrage? Forecasting? Never heard of those, now make with the free coin! My son... if you are that bad at capitalism shut it down!

I agree with Warren Buffet's take here. A company that cuts or can only pump dividends is basically saying "we can't figure out how to make productive use of people and/or cash". What an unbelievable joke.

xenadu02··on Bombarding gamblers with offers greatly increases betting and gambling harm
Super shocking (sarcasm).

Gamblers are the whales of that industry. The industry is well aware of that and well aware of how much harm they can cause. But their paychecks depend on not knowing so they choose not to.

Same as pay-to-win freemium games. Find the whales and milk them for all you can. For every high-spender who can afford it they know full well the other 99 cannot. They know they are ruining some people's lives. They know they use dirty psychological manipulation tactics. Their paychecks depend on not knowing so they choose not to.

xenadu02··on Python 3.15's JIT is now back on track
If you dig into JS engine implementations they deal with a lot of the same sorts of things. Simple objects with straightforward properties are tagged such that they skip the dynamic machinery with fallback paths to deal with dynamism when it is necessary.

A common approach is hidden classes that work much like classes in other languages. Reading a simple int property just reads bytes at an offset from the object pointer directly. Upon entry to the method bits of the object are tested and if the object is not known to be simple it escapes into the full dynamic machinery.

I don't know if those exact techniques would work for Python but this is not an either-or situation.

See also: modern Objective-C msg_Send which is so fast on modern hardware for the fast-path it is rarely a performance bottleneck. Despite being able to add dynamic subclasses or message forward at runtime.

xenadu02··on Python 3.15's JIT is now back on track
This is just an analogy but in Swift String is such a commonly used hot path the type is designed to accommodate different backing representations in a performant way. The type has bits in its layout that indicate the backing storage. eg a constant string is just a pointer to the bytes in the binary and unless the String escapes or mutates incurs no heap allocation at all - it is just a stack allocation and a pointer.

Javascript implementations do their own magic since most objects aren't constantly mutating their prototypes or doing other fun things. They effectively fast-path property accesses and fallback if that assumption proves incorrect.

Couldn't python tag objects that don't need such dynamism (the vast majority) so it can take the fast path on them?

xenadu02··on Death to Scroll Fade
Scrolling is broken by everyone everywhere.

Scrolling to the bottom then forcing me to click "show more"? Lazy. A truly horrible experience. I don't know how anyone could think that is a good idea. The worst offenders are the ones showing me products. You might as well not have pages of products at all. Just tell me these 12 are the only ones you have because I've already lost interest. Not that most web stores are any good - most have no useful ability to search or browse so finding anything is like digging through a junk drawer. It all screams "we hate selling product, please go away".

Next worst? Everything Google makes and all the fools who copied them: scroll down, scrolling hard stops, then a few seconds later the next segment of content loads. The scrollbar position is naught but lies. WHY??? Are you proud of that? Because you shouldn't be. You should be ashamed. Demand-load the content behind the scenes so scrolling is continuous and smooth. If the user scrolls fast then skip pages and/or cancel prior requests. The scrolling is the priority, lazy-load the content as needed... but for f*k sake don't do what Google does.

The top worst: hijacking scrolling for any form of animation or to change direction. Absolutely horrid and I leave any webpage that does this out of spite. This just screams "I'M A DESIGNER, LOOK AT MEEEEE!!!!!". It is code equivalent of being "too clever", but for UX. If you don't want people to buy your product or signup for your service but instead be impressed by your ability to vomit out D-E-S-I-G-N then by all means proceed. Everyone is guilty of this, even those who should know better.

xenadu02··on Ask HN: How is AI-assisted coding going for you professionally?
Sometimes it produces useful output. A good base of tests to start with. Or some little tool I'd never take the time to make if I had to do it myself.

On the other hand I tried to get help debugging a test failure and Claude spit out paragraph after paragraph arguing with itself going back and forth. Not only did it not help none of the intermediate explanations were useful either. It ended up being a waste of time. If I didn't know that I could have easily been sent on multiple wild goose chases.

xenadu02··on US private credit defaults hit record 9.2% in 2025, Fitch says
The list of companies imploded by LBO/PE is quite high though. Why do banks keep lining up to fund such deals? They must be making money somehow. These companies aren't worth much in liquidation. Are they able to extract enough value during the dead-man-walking period to make it worthwhile? Especially for retail or similar deals where the bank isn't going to foreclose on a bunch of real estate or assets worth selling.

I was not saying this is how they make money - I was saying I honestly don't know. If you do know please share. I would love to understand why the banks are so keen to fund what looks to my eyes like super shady vulture capitalism. We start with a profitable company and end with a smoking husk. The Wall Street guys are doing it to steal as much value as they can before it all blows up. Someone is eating the eventual loss. Who? Or are you saying the majority of these deals don't end up with the company being eviscerated?

xenadu02··on Coding after coders: The end of computer programming as we know it?
It's an accelerator. A great tool if used well. But just like all the innovations before it that were going to replace programmers it simply won't.

I used Claude just the other day to write unit test coverage for a tricky system that handles resolving updates into a consistent view of the world and handles record resurrection/deletion. It wrote great test coverage because it parsed my headerdoc and code comments that went into great detail about the expected behavior. The hard part of that implementation was the prose I wrote and the thinking required to come up with it. The actual lines of code were already a small part of the problem space. So yeah Claude saved me a day or two of monotonously writing up test cases. That's great.

Of course Claude also spat out some absolute garbage code using reflection to poke at internal properties because the access level didn't allow the test to poke at the things it wanted to poke at, along with some methods that were calling themselves in infinite recursion. Oh and a bunch of lines that didn't even compile.

The thing is about those errors: most of them were a fundamental inability to reason. They were technically correct in a sense. I can see how a model that learned from other code written by humans would learn those patterns and apply them. In some contexts they would be best-practice or even required. But the model can't reason. It has no executive function.

I think that is part of what makes these models both amazingly capable and incredibly stupid at the same time.

xenadu02··on US private credit defaults hit record 9.2% in 2025, Fitch says
Funny enough Chinese State owned banks have been doing much the same for quite some time. No one ever defaults, loans are extended as long as it takes. Presumably the threat of being called into the next party meeting to explain yourself is sufficient motivation for the people running the business to pivot as many times as it takes until they find a way to make money. Worst case the state swaps someone else into leadership.

I say this to say... who knows? I guess if you shuffle deck chairs fast enough everything works out fine (?)

xenadu02··on US private credit defaults hit record 9.2% in 2025, Fitch says
> No bank would agree to such nonsense

Ohhhh a live one! Sir do I have a wonderful bridge in Brooklyn to sell you! :)

Fun fact: banks fund this sort of nonsense constantly. I've asked about this before: why they do it. They must be making money I just don't know how. The LBO guys pay themselves massive management fees and dump the debt on the company so they walk away scott free.

My wild guess was the banks offload the eventual IPO onto investors and so make their money on the IPO fees and funneling their own clients the dead-man-walking shares. But I honestly don't know.

xenadu02··on An old photo of a large BBS (2022)
"usually" and "typically" are doing a lot of heavy lifting here :)

Access to knowledge, equipment, and budget varied dramatically prior to widespread internet access. Someone setting up a BBS might not even know about multi-line modem cards or serial port expansions. Even if they knew about them they may not have been able to reasonably obtain them. Or they may have been operating on donations, surplus, or discount equipment. Or they simply may not have had the luxury of time to research all of that as user demand meant they were too busy laying tracks in front of the train.

Many BBSes ran on 1-2 lines per PC because that's what they understood how to build or the hardware they had access to. You might be surprised at just how many lines some BBSes setup this way had!

People forget there was a time that anything outside the standard PC was extremely expensive, often had flaky or nonexistent software support, locked you into a fly-by-night vendor that might go out of business tomorrow, was only available via a distributor who wanted to have you talk to a "sales consultant" before they'd sell you something, etc. Many many people chose sub-optimal implementations because it was an off-the-shelf PC they could replace at any time with trivially simple software requiring no special CONFIG.SYS drivers or TSRs to fiddle with. Especially if you'd ever been burned previously.

xenadu02··on An old photo of a large BBS (2022)
> It's a wild misunderstanding of how BBSes worked.

That's quite the assumption.

There were a lot of different BBS hosting programs. They wildly varied in what they supported and how they were implemented. Further even within a given piece of software the ways you could configure them and the consequences also varied. Even if a given software supported concurrent users on a single PC for various reasons a BBS might choose not to host that way.

xenadu02··on Museum of Plugs and Sockets
> What we could start doing is embrace our existing dual-voltage home wiring methods, and putting 240v sockets in some places where it's actually beneficial. Places like kitchens (for heating water and food), say. But broadly speaking: Nobody does this because nobody sells safety-approved residential appliances for the US domestic market, so it's a lot of money to spend to get it done for no benefit. It's a catch-22.

Yes, this is the problem I've been complaining about.

If code required at least two NEMA 6-15 outlets in kitchens and garages builders and remodelers would install them.

Once they started rolling out there are a number of existing appliance makers who sell 240v appliances in the rest of the world who could begin offering that variant for sale.

It would be a good way to kick-start the market without any major changes! It is literally just running one extra romex and installing one double-pole breaker yet it makes double the power available. The builder that remodeled my house ran multi-branch style (3-conductor + ground) to save on copper so if I can find a junction box where that wire splits off I can install one right there without even running a new wire as the breaker is already a double-pole breaker.

xenadu02··on Smartphone market forecast to decline this year due to memory shortage
True which is why I posted the caveat. It is possible that the prices we are seeing are legitimate market dynamics. I just think given past history we should be skeptical of that. It smells like market manipulation to me.

Of course given the dynamics of business these days and how financialized these companies are it wouldn't surprise me if this is also just a result of refusal to invest capex in expansion. So long as the other 2-5 players in the market do the same there's no benefit to expanding or lowering prices. We all just sit on our hands and let market forces raise prices (and profit) for us.

Whatever the case it seems capitalism has gone off the rails in multiple ways.

xenadu02··on Restoring a Sun SPARCstation IPX part 1: PSU and NVRAM (2020)
Perhaps but is the machine serial number something customers should be able to trivially change? Or be something capable of being lost?
xenadu02··on Restoring a Sun SPARCstation IPX part 1: PSU and NVRAM (2020)
Making the default MAC address and machine serial number depend entirely on the NVRAM/RTC battery is... a choice. You'd think they would have used some fusible links to burn the original values into the hardware to fall back on if the battery died.
xenadu02··on Netflix Backs Out of Warner Bros. Bidding, Paramount Set to Win
They keep financing these deals so they must be making money on them but there is so much value destruction in so many of these cases. Someone has to be left holding the bag of hot garbage in the end so who is taking the loss?

We know private equity offloads the debt onto the walking corpse and usually pays themselves huge fees and bonuses for their "assistance". So it is clear how they make money. I just don't get how the banks make out.

xenadu02··on Museum of Plugs and Sockets
> Alternatively you can just run everything at 230V

Sure and everyone can just stop using Python 2.x tomorrow right?

Backwards compatibility is a big deal. Even moreso when it involves physical infrastructure. who wants to pay billions upon billions of dollars to make the change? How long will it take to roll trucks on all those linemen and electricians to convert/retrofit everything? Does the customer pay? The government?

And at the end of it everything is just the same as it was before. There's no huge benefit to be had for doing it.

That's why I said I wished we had more use of the 240v NEMA plugs. So we could begin supporting higher power appliances over time without some huge switchover expense.

For that matter I wish 3-phase was more available. I have a small machine shop in my garage that would greatly benefit from it.

xenadu02··on Museum of Plugs and Sockets
> This is wrong; it's very common to have for instance both 127V and 220V in the same building, sometimes even side by side in the same wall faceplate; 127V is phase to neutral, 220V is phase to phase (on the common 3-phase system). Yes, it does depend on the city, some cities use 220V exclusively, and there are a few other variations, but AFAIK the 127V/220V 3-phase combo is the most common.

That's good news. I'm glad my info is out of date!

xenadu02··on Museum of Plugs and Sockets
We use a center-tap neutral except for commercial/industrial that receives three phase.

Most small-to-medium homes/businesses have two hot legs coming off each side of the transformer coil. The neutral is connected to the center of the coil and bonded to earth/ground so it becomes a 0v reference. Each hot leg to neutral is 120v. Between hot legs gives 240v. That neatly supports both voltages in a backwards-compatible way. Typically clothes dryers, hot water heaters, ovens/stoves, etc are 240v appliances. Lamps, USB chargers, and other small day-to-day stuff is 120v.

There are two failure modes that can happen but they are rare and usually only affect the customers attached to the affected transformer or a single customer.

1. Floating neutral. If the neutral becomes disconnected that causes floating voltages as the electricity backs up across the neutral and returns via the opposing hot leg. This presents as randomly fluctuating high/low voltages to 120v appliances but most 240v appliances don't use then neutral and don't care.

2. Damaged hot leg. One hot leg partially arcs to ground or is otherwise damaged. This causes half the 120v appliances to flicker/brown out. 240v appliances will see random low voltages.

Three phase is often delivered as wild leg/high leg delta so a neutral can be derived. It is usually setup so one phase (eg A/C) is center-tapped to make the neutral and two hot legs. This gives three phase power per normal and the same setup as a normal home would have: A/C forms two 120v legs wrt the center tap neutral. However you get 208v between the other phases and neutral so for high density housing you also need to balance the phases resulting in some apartments having 208v power rather than 240v. Thus most 240v appliances also support 208v here but unless you've lived in an apartment or worked on commercial/restaurant systems you'd never see that voltage.

Our breaker panels have 3-phase variants. You'd usually install both: a 240/120 panel for "normal" loads and a 3-phase panel for 3-phase and 240v split phase loads. Breaker design is the same: 3-pole takes up three slots and the bus bars alternate by 3 so every third point is on a different phase.

xenadu02··on Smartphone market forecast to decline this year due to memory shortage
> The IDC article says that DRAM prices are not expected to come down again

Sure thing. I'd take a look at IDC & similar firms' forecasting history before worrying too much about what they say.

There is an AI boom right now. There will be a consolidation cycle at some point. When that happens half the players, if not more, will disappear. The huge hardware budgets will go with them.

We also can't be certain that the DRAM makers aren't capitalizing on this opportunity because they can. Remember: all of them are convicted monopolists. As in actual prison time convicted. And fined. And lost civil lawsuits. Multiple times.

I just can't see AI paying enough of a premium on HBM to justify the DRAM spikes. Frankly I can't see the volume either. Wafer starts on DRAM are dramatically bigger than you are probably imagining. DRAM is in practically everything these days. AI servers is but a drop in the bucket. 10% of the market? Yeah right, if its 4% I'd be shocked. And you are telling me a shift of 4% of wafers to HBM is driving these prices and shortages?

I humbly suggest if you look at the numbers something smells funny.

Disclaimer: none of us has access to the actual data, a lot of it is inferred by industry players. Some are well connected and usually accurate but that is not evidence. Therefore it is possible this is a genuine market action and nothing nefarious is going on.

xenadu02··on What does " 2>&1 " mean?
> At least allow us to use names instead of numbers.

You can for the destination. That's the whole reason you need the "&": to tell the shell the destination is not a named file (which itself could be a pipe or socket). And by default you don't need to specify the source fd at all. The intent is that stdout is piped along but stderr goes directly to your tty. That's one reason they are separate.

And for those saying "<" would have been better: that is used to read from the RHS and feed it as input to the LHS so it was taken.

← PreviousPage 4 of 34Next →