HNHacker News
TopNewBestAskShowJobs

jakewins

3,662 karma · joined March 9, 2009

I build hardware for the energy transition at https://www.fluxrite.com

I previously built virtual power plants at Tibber, databases at Neo4j and fleet management Equipmentshare.

jake@davis-hansson.com https://tech.davis-hansson.com http://github.com/jakewins

submissionscomments
jakewins··on Migrating from AWS to Hetzner
> Also at one point there were no VMs available anymore in our region, which caused a lot of issues.

I'm not sure if this is a difference between other clouds, at least a few years ago this was a weekly or even daily problem in GCP; my experience is if you request hundreds of VMs rapidly during peak hours, all the clouds struggle.

jakewins··on The illegible nature of software development talent
We live in a small echo chamber :) It seems extremely likely the author of this post wrote it after reading the other post from the other day.
jakewins··on Datastar: Lightweight hypermedia framework for building interactive web apps
The whole point of this framework is that a ton of the logic remains on the backend, with live connections to the frontend. At least for me the performance and hosting cost implications of that was the first question that came to my mind when I looked at this, I don’t understand how answering this question isn’t relevant here.
jakewins··on AMD signs AI chip-supply deal with OpenAI, gives it option to take a 10% stake
Sorry I still don’t understand.

Are you saying you disagree that a new architectural leap is needed and just more compute for training is enough? Or are you saying a new architectural leap is needed and that or those new architectures will only be possible to train with insane amounts of compute?

If the latter I dont understand how you could know that about an innovation that’s not yet been made

jakewins··on AMD signs AI chip-supply deal with OpenAI, gives it option to take a 10% stake
That “only big tech can solve AGI” bit doesn’t make sense to me - the scale argument was made back when people thought just more scale and more training was gonna keep yielding results.

Now it seems clear that what’s missing is another architectural leap like transformers, likely many different ones. That could come from almost anywhere? Or what makes this something where big tech is the only potential source of innovation?

jakewins··on What .NET 10 GC changes mean for developers
Aye, was involved in some really messed up outages from New Relics agent libraries generating bogus byte code at runtime, absolute nightmare for the teams trying to debug it because none of the code causing the crashing existed anywhere you could easily inspect it. Replaced opaque magic from new relic with simpler OTEL, no more outages
jakewins··on Fernflower Java Decompiler
Someone apparently had the exact same question in 2020: https://stackoverflow.com/questions/62298929/what-is-an-anal...

Answer is pretty vague though, but sounds like it’s about not trying to “reverse” what the compiler did, but rather try and “analytically” work put what source code would likely have yielded the byte code it’s looking at?

jakewins··on Many hard LeetCode problems are easy constraint problems
You are right to be sceptical of “dependency bloat” - many many systems could be made simpler to debug and maintain if that advice was followed.

But: I urge you to give constraint solvers a try. This is something very different from some hipster ORM library. The good ones will be a single dependency containing extremely carefully optimised matrix math code that let you solve optimisation problems faster and with much more maintainable code.

Try some toy problem with the HiGHS solver for instance, it has good python bindings and even ships as a wasm package you can run in browsers. “Find the optimal times to run this heat pump given electricity prices”, “find the ideal train departure times that optimise for when people need to travel and minimises transfers”

jakewins··on Stripe Launches L1 Blockchain: Tempo
Ethereum is able to process something like 150 transactions per second, using about 1,000,000 validator machines.

Postgres running on a single Raspberry Pi is something like 200 TPC-B read/write transactions per second.

Saying Ethereum “is not using very much CPU” is baffling to me. It is the state-of-the-art in this regard, and it uses something like six orders of magnitude more CPU than a normal database running a ledger workload?

jakewins··on Stripe Launches L1 Blockchain: Tempo
The person you are responding to is not arguing there is not a use case for crypto in cases like this.

They are arguing that stablecoins, specifically, require an off-chain entity that ultimately control them. And if you have an entity actually in control, why go through the trouble of blockchain? Then you can just have the controlling entity run a normal non-blockchain ledger.

I like the argument elsewhere in this thread that the actual reason is that it allows running a bank while pretending it’s not, bypassing regulation meant to protect depositors.

jakewins··on Telo MT1
The shortest bed f150 you can buy is 5.5ft, with a 2ft tailgate, trivially hauling 8ft with just a few inches overhang with the tailgate down, and easily doing 10ft lumber.

Again, I think pickup trucks are idiotically oversized and dangerous to pedestrians, but arguing against them by repeating things that anyone that uses a pickup knows is nonsense is not helping win over any detractors.

jakewins··on Telo MT1
Respectfully, if you don’t know how long a 2x4 is, I think it would be very reasonable to look this up, as it will make you much better equipped to make this argument.

I generally agree with what you are saying, and frequently haul 2x4s without my truck - but the solution to that is a long flatbed trailer, not a Thule hitch attachment.

jakewins··on Tour de France confronts a new threat: Are cyclists using tiny motors?
Are you saying the physics of a bicycle are somehow different than a car going up and down hills? Or are you saying actually hybrid cars use more gasoline driving in hilly terrain as well, and their benefits only accrue in stop-go city traffic?
jakewins··on Tour de France confronts a new threat: Are cyclists using tiny motors?
A hybrid car trivially improves total energy input needed, since it replaces braking by generating heat by braking by storing energy later to be reused.

The same should he true here, right? The added energy needed to carry the weight of the motor would be easily overcome by the gains from regenerative braking?

jakewins··on Most people who buy games on Steam never play them
I think they are saying: Imagine 100 games were sold on steam, and 50 of them were unplayed.

If each game was bought by a different person, then both most games bought and most people never play the games.

However, it’s very likely a small minority of people take advantage of the insane sales Steam has sometimes - like if 50 people bought a game each and played it, and one person bought 50 separate $1 arcade games and never touched them.

You get the same statistics in both cases of number of games played, but it’s two very different scenarios in terms of how humans use steam.

For me I imagine it’s a third case, that people like me often take advantage of the $1 deals and never end up playing most of those old or arcade titles?

jakewins··on 2025 Iberia Blackout Report [pdf]
I don't know about the Spanish market, but at least in the markets I'm involved in aFRR is an "always on" product, the TSO controls your plant with a setpoint that updates in near-real-time throughout the period you've sold to them.. it's not clear to me that the product that wasn't delivered was actually aFRR though, maybe it was something else less frequently called upon.
jakewins··on 2025 Iberia Blackout Report [pdf]
I don't claim to know the details of reactive power management, but the primary mechanisms for grid stability in the EU is the "cascade" of services the TSOs procures:

- Fast Frequency Response (FFR), sub-second power adjustment following frequency table

- Frequency Containment Reserve (FCR), ~second power adjustment following frequency table

- Automatic Frequency Restoration Reserve (aFRR), ~second energy production following TSO setpoint signal

- Manual Frequency Restoration Reserve, ~minute energy production following TSO activation signals

My understanding is the primary failure in Spain was that 9 separate synchronous plants that had sold aFRR(?) to the TSO then failed to deliver, so when the TSO algorithms tried to adjust the oscillations, nothing happened. Everything else was kinda "as designed".

jakewins··on 2025 Iberia Blackout Report [pdf]
> caused by the reaction of renewable generation to those conditions

No, that is not what the report says. It says, just like you say, that renewables reacted to market prices, causing a generation drop. It then says explicitly that synchronous generation caused oscillation, while PV plants showed a flat non-oscillating pattern.

From your comments I worry there are emotional factors clouding how you're reading the report - this was a systemic failure involving many separate technologies:

- Market signals - negative prices - caused a drop in PV generation (as frequently occurs)

- Synchronous plants caused oscillations as a side effect

- Plants procured to dampen exactly those oscillations did not deliver as requested

- TSO then took measures using interconnections to stabilize via other balance area

- This caused - presumed - overvoltages in distribution grids

- PV inverters then shut off, as mandatory by regulatory requirement in response to over voltage

You're absolutely right that PV played a large role here, but that point is diminished by making it out that PV is both the source of the initial generation drop and the source of the oscillations; it is neither.

The market design caused the generation drop, synchronous generators caused the oscillations, TSO action caused distribution overvoltages and regulatory requirements on PV firmware design in response to overvoltage caused the final blackout.

jakewins··on What would a Kubernetes 2.0 look like
After you’ve run kubectl run, and it’s created the pod resource for you, what are you imagining will happen without the reconciliation system?

You can invent a new resource type that spawns raw processes if you like, and then use k8s without pods or nodes, but if you take away the reconciliation system then k8s is just an idle etcd instance

jakewins··on What would a Kubernetes 2.0 look like
The core idea isn’t pods. The core idea is reconciliation loops: you have some desired state - a picture of how you’d like a resource to look or be - and little controller loops that indefinitely compare that to the world, and update the world.

Much of the complexity then comes from the enormous amount of resource types - including all the custom ones. But the basic idea is really pretty small.

I find terraform much more confusing - there’s a spec, and the real world.. and then an opaque blob of something I don’t understand that terraform sticks in S3 or your file system and then.. presumably something similar to a one-shot reconciler that wires that all together each time you plan and apply?

jakewins··on The Grug Brained Developer (2022)
True - but most languages make it much easier than Python to disallow this kind of accidental public API creation. Python inverts the public API thing - in most (all?) other mainstream languages I can think of you need to explicitly export the parts of your module you want to be public API.

You can do this in Python as well, but it does involve a bit of care; I like the pattern of a module named “internal” that has the bulk of the modules code in it, and a small public api.py or similar that explicitly exposes the public bits, like an informal version of the compiler-enforced pattern for this in Go

jakewins··on Which company would you prefer to join?
Primary reason for my choices was I didn’t want the other company.

Do I want to work for Instacart? Not really. Do I prefer working for Instacart over Tesla? Well, I’d rather go back to hand digging trenches in the rain than work for Tesla, so yeah I prefer Instacart.

jakewins··on The Grug Brained Developer (2022)
Any language that offers a mechanism for libraries has formal or informal support for defining modules with public APIs?

Or maybe I’m missing what you mean - can you explain with an example an API boundary you can’t define by interfaces in Go, Java, C# etc? Or by Protocols in Python?

jakewins··on Last fifty years of integer linear programming: Recent practical advances (2024)
We use solvers throughout the stack at work: solvers to schedule home batteries and EVs in peoples homes optimally, solvers to schedule hundreds of thousands of those homes optimally as portfolios, solvers to trade that portfolio optimally.

The EU electricity spot price is set each day in a single giant solver run, look up Euphemia for some write ups of how that works.

Most any field where there is a clear goal to optimise and real money on the line will be riddled with solvers

jakewins··on Seven replies to the viral Apple reasoning paper and why they fall short
I thought this article seemed like well articulated criticism of the hype cycle - can you be more specific what you mean? Are the results in the Apple paper incorrect?
jakewins··on Maximizing Battery Storage Profits via High-Frequency Intraday Trading
People do - but the actual answer to your question is as you’re implying: it’s not as simple as “you get paid to consume”.

There are negative spot prices in Europe all the time - but they are not usually negative enough to make up for the grid fees and taxes. Or they are in countries like Germany that hasn’t rolled out smart meters, so consumers have no way to access spot prices

jakewins··on Maximizing Battery Storage Profits via High-Frequency Intraday Trading
Similarly in Europe; spot market with a big single pay-as-cleared spot auction for every quarter-hour, and then a continuous auction for the same periods closer to delivery, similar to the normal stock market. Millions of residential devices are traded there right now
jakewins··on Ty: A fast Python type checker and language server
My experience is this is nearly impossible, the solution is new packages written after typing was introduced.

I don’t know about SQLAlchemy, but for libraries like pandas I just don’t see how it can be done, and so people are actively replacing them with modern typed alternatives

jakewins··on Demystifying decorators: They don't need to be cryptic
I feel like you can substitute almost any cutesy convenience feature in this sentiment. I wholeheartedly agree.

For software that is going to be maintained, optimising for debuggability, comprehension and minimised ball-hiding is almost always the side to error on.

jakewins··on Librarians are dangerous
My primary issue here was actually more about TikTok - I don’t think it’s right that software engineers get rich writing code that pushes “bullying challenges” on children to increase engagement and ad sales.

But: all other things equal, of I get to pick between “10-year-olds primary daily public forum is completely, cryptographically, devoid of any moderating adult presence whatsoever” and - what I had - 10-year olds have privacy but there are adults around that have a chance at picking up that things are going off the rails”

← PreviousPage 3 of 19Next →