Hacker Newsnew | past | comments | ask | show | jobs | submit | mixologic's commentslogin

> Our implementation uses Highway's portable SIMD functions, so we do not have to re-implement about 3,000 lines of C++ for each platform.

Would they do the same thing today or have an LLM re-implement those 3000 lines of c++ ?


Id say that it is a lot more likely for the in-house, at least half a decade old library to be correct and performant than 3000 lines of an LLMs mediocre regurgitation of that code.

Guys, remember when language features allowed re-usability?

Barely, and rarely for C++ specifically.

I think software engineering in general is in a bit of a discoverability crisis. So many problems actually have solutions implemented... Somewhere. If you know about them. And are speaking the same vocabulary as the original implementer to realize the solution might be applicable to your problem. It's one of the reasons that jokes exist about microservice frameworks (https://www.youtube.com/watch?v=y8OnoxKotPQ) and how "We use Hadoop to store the output from our Kafka pipe, that's populated from our Traefik layer, all monitored with Grafana in front of Loki and Prometheus, of course" is a real sentence that has actual meaning and not a fever-dream.

LLMs are actually pretty impressive at being able to pull together disparate information from various domains into one place.


I'm not sure I follow. C++ just added a SIMD library for this exact problem. And even then, SIMD-intrinsic-free C++ with the right data structures and some basic hardware understanding gets you mostly there in a hardware agnostic portable way.

They've added a new library to a language and stdlib so crammed full of features that its specification exceeds the size of the King James Bible by wordcount.

That's what I mean about "discoverability crisis." This post is how I learned about the existence of the SIMD library.


(Co-)author here :)

I'd absolutely still use Highway, and do. My experience is that even two separate implementations diverge over time and I'd have low confidence in bringing the same updates and improvements to all, even with LLM assistance.

Our programming model is 1) an agent+human to generate the algorithmic approach, 2) a C++ library (Highway) to translate to intrinsics, while filling in gaps + allowing customization, 3) a compiler to generate the actual code with some optimizations.

Asking the compiler to do #1 is a pipe dream: compiler friends tell me they are not going to devise new shuffles/data layouts (like what VQSort does). Conflating #2 and #3 means a custom compiler/IR which has high engineering costs (ABI boundaries, hard to debug/profile/sanitize). And doing #3 at runtime (JIT), or moving fusions into #3 (MLIR), vastly complicates the compiler. We can still get runtime adaptability thanks to Highway's multi-target support. Fusion has been much easier to implement manually for LLMs than to construct a general fusion infrastructure. Templates hide most data type differences and we see 2-5x speedup vs llama.cpp for 128k prefill+batch decode on Zen5.

Instead of requiring a compiler to do heroic transforms at runtime, and get it right every time, we can do all kinds of agentic exploration, then verify the result/approach, check in the source code, then we 'just' have a C++ compiler afterwards. And if/when something breaks, it's easy to update centrally, in code we can modify directly, rather than indirectly via updating a compiler.


Nothing absurd about that. What do you think an "Executive producer" is? A "Director" ? Does Peter Jackson get credit for creating the Lord of the Rings Trilogy films? Christopher Nolan for his films? But did he make them ? No, it was the collective effort of thousands of individuals all working under their direction.

Just like if somebody creates software today, and the end result is generated by the collective effort of thousands of agents, the "Director" still gets credit.


The director receives accreditation for directing the film, not creating it.


Doesn't the director generally receive more credit than the producer?

How many films do you remember the producer above the director?


What does it matter who receives more credit? The producer produces the film and the director directs it. If I pick my phone and record a video, I'm now the producer and director of the film and the sole creator of it.

If there were multiple people involved in the creation of a film I helped to create, I cannot factually say I created it. Just like if someone builds something using code generated by AI, they can't factually say they created it.


There's a bit more nuance to it though, I think, because traditionally there has been more of a firm line between humans and tools.

For example, most people would agree with this line you wrote: "If I pick my phone and record a video, I'm now the producer and director of the film and the sole creator of it." A pedant could say "woah hang on, that's ignoring the fact that actually the iPhone is the one recording the images that make up the film, how can the human get all the credit", yet nobody would actually make that argument when discussing who created the film.

Generative AI is pretty much the first time (maybe there are some niche contradictions to this claim?) we consider a tool to be contributing enough creativity to the process that we don't all agree "only one person was operating this tool, so that person is the sole creator" - but some people DO still hold that line, and do consider the human who wrote the prompt to be the creator.

And I don't think there's any objective technical metric we can use to say who's right, it comes down to our collective judgement deciding where the line is.


That’s an interesting way to look at it, and still generous to the llm.

By which I mean it puts the llm in the role of actor and such… people practicing an art. It seems harder to make a case that the llm is actually making creative decisions rather than aping a synthesis of past human decisions and expressions of taste, strictly, at every turn.

Though I guess it’s all “shades of grey”. I never felt like I was contributing a ton when I was essentially wrapping a large, capable library that some smarter person or people made, either.

Tangentially… remember back when we used to see headlines like “12 year old made a web browser!” and we all thought, “No. No they didn’t.”

It all feels a little like that, again.


US States aren't allowed to have permanent DST, but they can have permanent standard time.


Its a nightmare because it erodes trust. Doctors are not "always right" which is why "always get a second opinion" is codified in culture.

But AI's problem is that its completely full of shit, sometimes, and the people most qualified to evaluate whether its full of shit are the doctors, not the patients, but just like OP's original article, patients are left feeling like their second opinion from AI might be more trustworthy than their doctors opinion.


> But AI's problem is that its completely full of shit, sometimes

It's now quite unusual that it's "Completely full of shit". If it contradicts something your doctor said I don't see why you should feel ashamed to bring it up. Sure it complicates the doctor's work, having ignorant obedient patients must be more comfortable for the doctor, but the end result could be more accurate diagnosis.


The notion that only doctors can verify is false! Doctors are better at verification but normal people can also verify. This is just empirically true.

Examples of things normal people can verify

- procedural errors that Claude can capture like some blatantly high dosage (grams instead of milligrams)

- outdated treatment plan, maybe there’s a credible new treatment plan that’s been used for years but the doctors were not updated

- literally being injected homeopathic drugs (takes no smart person to flag this)

Let’s stop talking as if doctors have a divine right here. And let’s accept some agency.


But those are obvious errors. What if the AI tells you to up your intake of X and it seems plausible? So you up your intake of X by taking some supplement, but upping the intake of X makes your body deplete more of Y and now you have a new or compounding problem.

A doctor might have never recommended upping X, because they would know what it does to your body. Or they might have suggested additional supplementation to avoid this.

The fact that LLMs are trained on all public knowledge is a huge red flag, because there are more wrong infos out there than right ones. Especially about health, diet, etc.


I was about to respond but your last statement implies fundamental misunderstanding of how LLMs work. I don’t think you even know about RLHF and you think good and bad ideas are spread in proportion to how much they are seen on the internet.


Read up on the "chicken tax" for how long the auto industry has navigated weird assemvly games: https://en.wikipedia.org/wiki/Chicken_tax


I think my favorite part would be where they were unbolting entire seats and feeding them directly into industrial shredders.

"Ford imported all of its first-generation Ford Transit Connect models as "passenger vehicles" by including rear windows, rear seats, and rear seat belts.[1] The vehicles were exported from Turkey on ships owned by Wallenius Wilhelmsen Logistics (WWL), arrived in Baltimore, and were converted back into light trucks at WWL's Vehicle Services Americas, Inc. facility by replacing rear windows with metal panels and removing the rear seats and seat belts.[1] The removed parts were not shipped back to Turkey for reuse, but shredded and recycled in Ohio.[1] The process exploited the loophole in the customs definition of a light truck; as cargo does not need seats with seat belts or rear windows, presence of those items automatically qualified the vehicle as a "passenger vehicle" and exempted the vehicle from "light truck" status. The process cost Ford hundreds of dollars per van, but saved thousands in taxes.[1]"


Ford ended up paying $365 million (roughly $2200 per van) to settle a lawsuit from the government over that.


I wonder if manufacturers are using LLMs to find all the dumb loopholes in the laws that they can.


If the law was that simple, we wouldn't need the rest of the judicial system.


"killed" is a bit of a stretch. High prices on all gear is here to stay. This is the new normal. Unless that simply means that nobody buys consoles/pc's.

But you cant compare the price point with what it used to cost and imagine that its overpriced now and that people will seek alternatives. There aren't any cheaper alternatives.


It doesn't have to be everybody or nobody, it can be as simple as "a lot of people buy lower end gaming equipment instead".


There is no guarantee that these prices are here to stay...


It almost certainly is. Once people get used to the higher prices, and the companies see that the units sell anyway, there is no meaningful incentive to lower costs again.

This has played out time and time again during every other supply-side shock. Once prices go up, they don't come back down.


That's not true. We've seen prices from supply shock go back down (the increase in hard drive prices when there were floods in Asia 10-15 years ago comes to mind as an example). It does take a while, but it will happen eventually.


Even then, prices stayed elevated for years. They never went back to pre-supply shock prices. Right around that time too the industry consolidated. WD bought Hitachi, Seagate bought Samsung's HDD business. It left a duopoly, so now there was no competitive pressure for a price war. Prices got locked in higher than pre-flood levels, intentionally.

For the current DRAM situation, I can almost promise we'll never see $60-$90 RAM again. Maybe, 32GB won't cost you $500 eventually, but it'll cost you $250-$350 instead of $500. If the market can bear it, why would anyone get into a price war that's just a race to the bottom where no one wins?


> They never went back to pre-supply shock prices.

What do you mean?

2011: 2 TB HDD for $79.99 ($0.0000400 / MB).

2012: 2 TB HDD for $157.27 ($0.0000786 / MB).

2014: 4 TB HDD for $109 ($0.0000367 / MB)

2024: 8 TB HDD for $111.98 ($0.0000140 / MB)

https://web.archive.org/web/20250318110739/http://jcmit.net/...

https://www.thecpuguide.com/pc/disk-price-history-hdd-ssd-pr...


China


How much are a dozen eggs at your local store? Curious to stress test your theory. I assume they're at least $10/dozen?


For the eggs I buy, they are currently $7.99/dozen. Cheapest in my store is $5.99/dozen.

That doesn't disprove my point though. Prices are still higher as a baseline than before the supply side shock. Prices raise to a "new normal" and consumers adapt, removing pressure to lower back down to pre-shock levels.

wholesale egg prices have actually plummeted, yet retail prices have only drifted slowly downward incrementally, and have not reached the previous baseline. Its asymmetric price transmission, and its a documented economic phenomenon. "Prices go up like rockets, and fall like feathers"


Some data suggests that eggs averaged $2.19 per dozen, at retail, in May of 2026: https://fred.stlouisfed.org/series/APU0000708111

Looking at the chart, it seems to be the case that every sharp increase in price has been followed by a sharp decrease in price.

Just for fun, here's the same chart adjusted for inflation: https://fred.stlouisfed.org/graph/?g=1WXWZ


Eggs in USA literally hit a ten year low a few months ago. I don't know where you live, probably SF or something, but a dozen eggs here is under 3 dollars.


PC components market has historically been highly competitive so I’m pretty sure it wouldn’t quite work out for vendors who tried doing that (aside from GPUs/Nvidia)


Televisions literally feel in price every year for 40 years.


That's like the one outlier in a sea of slow price increases over time.


It's also because television producers found alternative revenue streams that allow them to sell the TVs for less while still making more. If you look for a TV without all of the adware/bloatware/spyware you can see the true cost of a TV in 2026.


This was a thing before those axes you're grinding even existed.


They are one of the few tech segments that is still doing so, and that’s mainly down to “smart” TVs being able to get revenue in other ways.


Just another step into the direction of global Brazilification.


You have evidence that they are going to go down? Not unless government policy steps in to pressure chip makers, or establish new markets. Corporations will use inflation, ai, et al to validate their record profits at the cost of the consumer. Monopolies or better put the mergers of companies over the last 40 years hasn’t lead to cheaper prices, it never was going to either.

Prices will continue to go up.


If it goes on long enough new manufacturers will eventually spin up and sell RAM cheaper.


Can you point to an example of this happening in the past? Where a supply shortage leads to price increases and "record profits", and the price never goes back down?


GPUs?

Though that’s kind of cheating considering it’s basically a monopoly at this point


>Monopolies or better put the mergers of companies over the last 40 years hasn’t lead to cheaper prices,

Can you explain this chart?

https://ourworldindata.org/grapher/historical-cost-of-comput...


Good point. But only a few companies create these things. They can jack up the price and there is nothing we can do. Is there a mom and pop shop making memory yet? Nope, centralized power of commerce is a threat.


I think the point is that "only a few companies create these things" has always been true.

You need to provide a compelling argument why it is different this time.

The counter-argument is pretty basic:

RAM companies are currently selling as much as they can at high prices. This leads to investment in building new factories.

At some point the supply of new RAM will match the demand for it. When that occurs companies can increase profit by cutting prices to gain market share.

What's more, all the RAM companies have slightly different estimates of what the demand is. This leads to different levels of investment in new factories. Some will over-invest in new factories and the only way they can make their investment back is by increasing market share.

The final factor is new entries in the market. Chinese RAM manufactures can already produce DDR4 RAM (but only small amounts of DDR5). They can both increase supply of DDR4 RAM and are aggressively chasing DDR5 capabilities.

TL;DR: The profit motive is too strong for companies to artificially keep prices high once demand drops.


But why would they invest in more factories if they also think it's a temporary hickup?

Then it's just the same capacity, but without huge buyers. Still the prices won't come down...

If they built new factories now, they would just lose money to an investment that would not pay off.

(Of course under the premise that AI collapses or is saturated at some point. If that doesn't hold true then ex falso quodlibet!)


> But why would they invest in more factories if they also think it's a temporary hickup?

Because they have orderbooks 2 years (at least) into the future so know what demand is there - and they are demanding deposits for future orders.

It's easy to see if this is true. Look for news on new factories opening:

Micron: https://finance.yahoo.com/technology/ai/articles/micron-mu-p...

Samsung: https://www.kedglobal.com/korean-chipmakers/newsView/ked2026... (note this is doubling Samsung's memory production)

SK Hynix: https://finance.yahoo.com/sectors/technology/articles/sk-hyn...


Yes, 2 years.

How long does building a factory take?

If the demand grows with their production they can sell more units at the same price.

If demand goes down by a certain percentage, they sell more for less + they lost the investment into new factories.

It all is based on IFs and about personality, about "optimism" vs "pessimism"

I for one think that the AI bubble will "burst" at some point and I think that then there will be a lot of hardware to go by.

Time will be the judge of my abilities to replace the Oracle of Delphi.


There's a lot of money behind AI to try to make fetch happen but every attempt to capture the real cost of running these models has driven home to people that we're still deep in the "burn money to acquire customers" phase before the "start charging people gobs of money to make a profit" turn. All the stories of companies burning through their whole year of AI budget in the recent move from subscription to usage based billing is a big example.

If that bubble pops like it seems to be threatening to do memory prices could drop back to their old levels give or take some sticky inflation.


You really think the manufacturers or retailers will lower the prices now that people are used to the new normal? How often do you see that happen?


Yes, I really do think that.

Suppose you have a warehouse full of widgets. You bought them them for $450 each, and sell them for $500. You're really happy with this profit, and you can just keep selling them at $500...forever, right?

But then, I get my own warehouse and fill it with widgets that I bought at $400 each because I entered under better market conditions. And I really want to sell these widgets -- they aren't making me any money when they just sit there taking up space and burning rent.

So I price these widgets at $475, to attract customers. It works; the widgets are flying off the shelves. And they're being purchased by people who used to be your customers, and I'm making even more money per-unit than you are.

What's your next move? Do you want to keep losing customers to me, or do you want to adjust your price to be more competitive?


Price wars are a race to the bottom that everyone loses. In reality, such oligopolies follow a kinked demand curve.

A new entrant isn't guaranteed to now price at $475. They'll see the incumbent being successful at $500. Now they price at $499 rather than trigger a destructive price war. Companies collude on this quite frequently. When everyone keeps their prices high, all get to enjoy the big margins.

Outside of that, ok so you have a warehouse full of widgets you need to move fast. So you undercut, and sell out. If demand is still bigger than your supply, you're now out of capacity, customers are going back to buying for $500 from your competitor. That means you've mispriced your limited inventory, so now you raise your prices up to closer to $500 because it helps you control your capacity, and also you know the market can clearly bear it.

Anyway, those are obviously overly simplified scenarios prices rarely fall down dramatically because of tacit collusion. Its asymmetric price transmission ("Prices go up like rockets, but fall like feathers")


Some lose more, i.e. PRC manufacturers well incentivized to involute to drive competitors out of business. $500 for 10% marketshare is less than 100$ for 60%. Of course PRC being spoiler, at least under current geopolitics where they have less reason to align with existing memory cartel.


SSD prices in 2018. GPU prices after the first crypto crash in 2018 and again after the Ethereum merge in 2022. The AMD Zen disruption of 2017.

Retailers are mostly free to offer things at whatever prices they want. But the market has more power than you may think to correct it.


It happens all the time. For a recent example, see Windows midrange laptop pricing since the MacBook Neo was introduced, despite the RAM crisis.


Yes. Absolutely. They will move more units and make more profit overall, and if they don't do it a competitor will.


Look at TV prices over the last 20 years.


TV is heavily subsidized from data collection and ads, not sure it's a perfect comparison


Prices have fallen far more than profit from data sale provides, so it's easy to view as a good enough comparison.


Do we have data on that either way? I’m genuinely asking, not snarking: I tried to look it up a while ago but couldn’t find as much as I hoped


I don’t have data for how much tvs are currently subsidized. But you can just look at the inflation adjusted price of TVs from say 1980 to 2010 and see the drop without worrying about adjusting for advertising and spyware subsidies.

You can also look at computer monitors (which don’t have advertising and spyware) and see an enormous price drop.

Edit: I found this which estimates you can make about $100 in ads and data collection over the lifetime of a TV https://omdia.tech.informa.com/om030986/in-the-smart-tv-indu...


People keep claiming this but it isn't true. The subsidy from advertising is very low:

> They make about $20 per user annually and, assuming an active TV service life of five years, yield about $100 over the lifecycle of a main viewing room TV.

https://omdia.tech.informa.com/om030986/in-the-smart-tv-indu...

Look at monitor price drops (comparing the same tech). Same price drop curve.


but monitors are not showing the same trend...


Yes they have. Inflation adjusted a 15” monitor cost $700 30 years ago. Today you can get one for under $100.


Never, ever put a form into a popup. Ever.


Privacy and Bot defense are opposite ends of the same fulcrum. If you permit privacy, the site/service has to trust users to behave and follow the rules. If you track users, then the users have to trust the site/service owners not to abuse that trust. There isn't really an in between.

So if you want privacy, you have to accept poor and sometimes insecure services.


Right now the only codebase I care about them fixing vulnerabilities in are the 3800 repositories that got stolen from GitHub.

"Vulnerabilities in the software that makes the internet" is honestly lower priority than "The platform that the software that makes the internet uses to make releases" If buyers of those internal repos find ways to break into GitHub such that they can cut software releases, or poison github actions from a distance, then we're all in a very ugly mess.

Don't forget that in those 3800 repos is likely also npmjs.org itself.


Heh, you mean the railway that was part of the whole "my production db got deleted in 9 seconds" story?

That company sounds a lot like one that doesn't focus on the right things.


Yeah... the railway that has just had a multi-hour outage because they looked like a spam account to Google Cloud!


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: