HNHacker News
TopNewBestAskShowJobs

derriz

2,645 karma · joined December 21, 2014

submissionscomments
derriz··on Belgium stops decommissioning nuclear power plants
“Better than coal” is a weak argument. Coal hasn’t been in the “game” for decades. The problem for nuclear isn’t anything irrational - it’s economics and operational and deployment flexibility - newer tech like solar PV, gas turbines, batteries and wind have created a new Pareto frontier for electricity generation and nuclear just isn’t anywhere near this frontier for any objective.
derriz··on U.S. companies back Sam Altman's World ID even as much of the world pushes back
I’d guess that the pattern of ball wrinkles are quite unique. It could have applications for secure login - you’d could hold your balls above your phone camera or lay them onto a USB attached mini-scanner for authentication.
derriz··on Fusion Power Plant Simulator
When people get excited about fusion as a source of energy, I’m always reminded of Henry Ford’s famous quote: “If I had asked people what they wanted, they would have said faster horses.” although apparently he probably never said that.

Fusion is that faster horse - promising a cheaper to operate firebox which when attached to a stream engine attached to an alternator can produce electricity.

This approach to generating electricity has been superseded by new technologies - first by gas turbines which removed the steam engine and then by wind turbines which removed heat from the process and now by solar PV which has removed all the mechanics.

I just can’t see any circumstances under which steam engines are “coming back” and becoming competitive for electricity no matter how cheap the firebox fuel is.

derriz··on Not all elementary functions can be expressed with exp-minus-log
> Why would it be surprising?

Because I don’t know as much mathematics as you.

derriz··on Not all elementary functions can be expressed with exp-minus-log
When I first read the exp-minus-log paper, I found it extremely surprising - even shocking that such a function could exist.

But the fact that a single function can represent a large number of other functions isn't that surprising at all.

It's probably obvious to anyone (it wasn't initially to me), but given enough arguments I can represent any arbitrary set of n+1 functions (they don't even have to be functions on the reals - just as long as the domain has a multiplicative zero available) as a sort of "selector":

g(x_0, c_0, x_1, c_1, ... , x_n, c_n) = c_0 * f_0(x_0) + ... + c_n * f_n(x_n)

The trick is to minimize the number of arguments and complexity of the RHS - but that there's a trivial upper-bound (in terms of number of arguments).

derriz··on Seven countries now generate nearly all their electricity from renewables (2024)
> In a world where all the cars and trucks are electric you’re going to have to roughly supply your average highway with infrastructure comparable to the energy consumption of the cars on that highway (or the cities around it)

This is not true. Worldwide, typically about 80% of the energy used to charge EVs globally comes from a private connection. And the vast majority of that energy is drawn from the grid off-peak when transmission systems etc. are underutilized. You article reflects a mindset that envisages EVs working like ICE based transport.

derriz··on Seven countries now generate nearly all their electricity from renewables (2024)
Happens regularly. Last year’s heatwave caused a bunch of reactor shutdown across Switzerland and France - https://www.euronews.com/2025/07/02/france-and-switzerland-s...
derriz··on Simplest Hash Functions
Could you explain what you mean here?

Hashes are _functions_ so provide the same output given the same input.

If you don't reseed the RNG after every hash computation, then you break this vital property of hashes.

And if you do reseed, then your claim boils down to "every hash function is just an XOR against a contstant" which certainly is not true either.

derriz··on Newly created Polymarket accounts win big on well-timed Iran ceasefire bets
I would suggest at least having KYC (know your customer) rules which all banks, financial exchanges and traditional online bookmakers are required to implement would be reasonable for these markets?

At least it would somewhat hinder the type of activity we’ve seen (where journalists are threatened by criminals to withdraw or change their stories) without just banning such betting exchanges outright.

derriz··on F-15E jet shot down over Iran
Trump leads a personality cult not a traditional political base. There are some who have stopped supporting him because they thought he aligned with their political views but 35% or so of the US population still support him despite his 180 degree turn on two of his foundational election promises: to keep the US out of foreign wars and to bust open an international pedophile ring run for elites.
derriz··on C++26 is done: ISO C++ standards meeting Trip Report
C++ is the last language I'd add to any list of languages used for correct-by-design - it's underspecified in terms of semantics with huge areas of UB and IB. Given its vast complexity - at every level from the pre-processor to template meta-programming and concepts, I simply can't imagine any formal denotational definition of the language ever being developed. And without a formal semantics for the language, you cannot even start to think about proof of correctness.
derriz··on Bored of eating your own dogfood? Try smelling your own farts
The phrase is striking but doesn't make a whole lot of sense to me.

Companies make dogfood and sell it and expect others (dogs, who aren't known for verbalizing dissatisfaction with their food) to consume it. The producers of dogfood don't really care what it tastes like or how nutritious it is.

But I can't imaging a business which involves collecting farts and selling them to others and where sniffing a small quantity of each bottled fart would help improve production processes to ensure a better experience for the customer. And most people are appalled at the smell of others' farts but can tolerate their own, so the "smell your own" test wouldn't really tell you anything.

derriz··on Pandas Exercises for Data Analysis (Interactive)
If I were investing effort into acquiring knowledge in this domain, I'd skip straight to Polars. Before I made the switch, I had been using Pandas on and off for more than a decade. I'm not sure how representative this is, but most of the people I know who were Pandas users have also made this switch. I initially did it for the performance improvements but the API (according to my subjective opinion) is much more logical and has far fewer surprises compared to Pandas and it would be my default choice for this reason alone at this stage despite my years of Pandas experience.
derriz··on Recursive Problems Benefit from Recursive Solutions
It’s called TCO - tail call optimization - and gcc and llvm are supposed to implement it although tail recursive style code is probably uncommon in C or C++. Outside of that it’s common in functional languages where recursive functions are obviously idiomatic and so it has more potential to provide performance benefit.

It’s not a purely local optimization - affecting the call structure so debugging is a pain point. Which is probably why most imperative language compilers don’t bother given the lack of utility for the vast majority of code bases.

It feels like something that would need to be specified at the language spec or semantics level to make it useful rather than just making it optional for the compiler - otherwise the developer is probably just going to do the transform manually - to be safe - if stack explosion was a possibility if the compiler decided on a whim to not perform TCO.

derriz··on Britain is ejecting hereditary nobles from Parliament after 700 years
I'm getting a lot of downvotes for the comment you're responding to so will likely withdraw from this discussion. But to be clear, I deliberately talked of prosecutors threatening charges, not actual indictments.

Conviction through plea-bargaining is almost exclusively a phenomenon in the US. It just doesn't feature in the normal process of public prosecution in countries like Ireland, the UK or Australia. Also as an aside, the grand jury system is exclusively an American feature.

And every common law country (including the US) has a bar in terms of seriousness of the crime, below which you are tried without a jury. Yes the bar is lower in the US (potential sentence of more than 6 months?) but this bar exists nonetheless without sensationalist claims that jury trials have been eliminated - which is what was stated in the comment I originally responded to.

derriz··on Britain is ejecting hereditary nobles from Parliament after 700 years
It's simply a fact that common law jury trials are time-consuming and expensive and cause long delays and bottlenecks in the justice system.

Different common-law countries have addressed this issue in various ways. Restricting jury trials for more serious offenses (in this case for more serious charges - ones that could potentially result in a sentence of more than 3 years) is one way than many common law jurisdictions have taken.

It's not ideal but it's infinitely better in my mind than the practice used in the US to reduce jury trials. To avoid the cost/expense of a jury trial, public prosecutors threatens to press for a large number of charges or some very serious charges - carrying the potential of very long sentences - a sort of Gish-gallop approach.

Even if the chances of successful prosecution is relatively small for any one of the charges, the defendant is forced to take a plea-deal to avoid the risk of spending years or decades behind bars. Thus the defendant ends up with a guilty record and often a custodial sentence without any access to a trial or the chance to present their case at all.

derriz··on Lego's 0.002mm specification and its implications for manufacturing (2025)
Historically Lego was a construction toy. This is what it was in my youth. These days Lego sell model construction kits - most are constructed once and then the owner plays with the model. This represents a radical and fundamental change. I’m not sure when it happened or how suddenly it happened as there is a large (decades) gap in time since I played with Lego as a kid and my current exposure to Lego via my own kids. Our home is full of Lego models but I don’t recall seeing my kid using his vast amount (compared to the shoe box I used to store my Lego as a kid) of Lego to actually construct something. The “studless” change - with its inside-out building technique makes it virtually impossible to alter a model once built - unlike the old bottom-up approach where it’s trivial to alter. It makes me sad because I remember with nostalgia the hours I spent building all sorts of fanciful constructions with my box of generic Lego pieces but I also acknowledge that model building — which I do with my kids - is also fun. But it’s just not the same play/toy as it was years ago.
derriz··on Ireland shuts last coal plant, becomes 15th coal-free country in Europe (2025)
> As with any religion, environmentalism

Calling something a religion is a lazy and disingenuous way to dismiss it. The effects of airborne and waterborne pollution on human health has been the focus of scientific investigation for centuries at least. Ecosystem destruction is not "a religious belief" - it's something which has been measured, carefully recorded and studied using scientific methods.

> at 1/1000th the cost of re-wiring our entire energy system around renewables

This is alarmist hyperbole. Renewables now account for about 35% of the global electricity generation mix. There are countless examples of countries that run grids where renewables account for more than 80% of the electricity mix. Even if you just consider wind and solar, many countries are approaching 50% penetration in the space of 20 or 25 years without "re-wiring their entire their entire energy systems".

Yes NG generation is the only fossil tech still standing in terms of being able to compete at any level with modern generation tech but it is being squeezed. Batteries surpassed NG in terms of economics for peaking sometime around 2020/2021 - which is reflected by the share of new capacity investment since then.

> industrializing 3B+ people using windmills

A windmill is a device used to mill materials that happens to be powered by wind, like a watermill, or a pepper mill or a paper/wood/etc mill. I'm not sure what that has to do with electricity generation.

derriz··on Ireland shuts last coal plant, becomes 15th coal-free country in Europe (2025)
By what measure? Coal hasn't been competitive for decades and the only way it had remained competitive in terms of cost per MWh even back then was if you burned it in huge (> 1GW) plants. 1GW plants are the very opposite of what you want to electrify rural areas - construction is slow and expensive, operating large plants requires considerable and qualified head-count, logistics is an issue and they require high capacity and expensive transmission systems.

And if your minimum unit size is 1GW then you lose the flexibility to roll out the tech incrementally - the average modern coal plant requires 3 to 5 weeks per year for scheduled downtime for maintenance - so your first 1GW coal plant requires a bunch of other generation sources to cover demand during these periods.

Solar and batteries are the obvious solution for rural electrification: scaleable, cheaper/simpler to deploy - no large scale civil engineering involved, trivial to "operate", effective without the support of big transmission systems and it's possible to buy everything off-the-shelf.

derriz··on Ireland shuts last coal plant, becomes 15th coal-free country in Europe (2025)
This is a strange claim. During its peak years - in the mid 1990s - Moneypoint (the only coal plant in the country) provided 25% or more of the electricity mix while wind generation consisted of a few tiny pilot plants - contributing a miniscule.

In 2026, coal now provides 0% of the mix while wind provides 30% or more. Peat burning has also been fully phased out while oil (Tarbert) is in the process of being shut down while Moneypoint has been converted to oil but only participates in the capacity market - i.e. as an emergency/backup source - and so barely registers in the mix.

And even if coal was supplanted one-for-one with NG, it would still be a net win - by halving the CO2 intensity of generation as well as being far more flexible, scalable and much cheaper to deploy.

derriz··on Beagle, a source code management system that stores AST trees
This is the fundamental idea behind git - to fully compute/derive diffs from snapshots (commits) and to only store snapshots. While brilliant in some ways - particularly the simplifications it allows in terms of implementation, I’ve always felt that dropping all information about how a new commit was derived from its parent(s) was wasteful. There have been a number of occasions where I wished that git recorded a rename/mv somehow - it’s particularly annoying when you squash some commits and suddenly it no longer recognizes that a file was renamed where previously it was able to determine this. Now your history is broken - “git blame” fails to provide useful information, etc. There are other ways of storing history and revisions which don’t have this issue - git isn’t the end of the line in terms of version control evolution.
derriz··on A man who broke into jail
> The idea is I believe from French: maïs, Noël, etc.

Apropos of nothing, except that it will allow me to vent a bit, it also changes the rule for the pronunciation of the last consonant of French words.

Normally the lack of a trailing "e" would mean the last consonant is not-sounded but the diaeresis changes it: maïs/"my-isz", Noël/"noh-ell", etc.

And yes Moët (the champagne) is pronounced "moh-ett" in France and by French speakers.

It's incredibly annoying having someone subtly but in a slightly superior manner "correct" your pronunciation by repeating the mispronunciation right after you've pronounced it correctly - "sure, I'll order some some MOHAY". Outside I'm smiling and nodding pretending not to notice, inside I'm screaming "IT'S MOH-fcking-ETT MTHERF*KER - MOH-ETT."

derriz··on Moldova broke our data pipeline
Unrelated to the fundamental issue (a part of your pipeline generates invalid CSV), I would never store the name of the country like this. The country's name is "The Republic of Moldova" and I would store it like this.

Sure, the most common collation scheme for country names is to sort ignoring certain prefixes like "The Republic of", "The", "People's Democratic...", etc. but this is purely a presentation layer issue (how to order a list of countries to a user) that should be independent of your underlying data.

Sure "hacking" the name of the country like this to make the traditional alphabetical ordering match a particular ordering desired to aid human navigation has a lot of history (encyclopedia indexes, library indexes, record stores, etc.) but that was in the age of paper and physical filing systems.

Store the country name correctly and then provide a custom sort or multiple custom sorts where such functionality belongs - in the presentation layer.

derriz··on Bars close and hundreds lose jobs as US firm buys Brewdog in £33M deal
No equity holders got anything out of the liquidation - whether big or small [1]. Preference shares are just as worthless as common stock if there isn’t enough money to cover debt, tax bills, employee statuary entitlements/outstanding pay, bank loans, etc.

[1] https://littlelaw.co.uk/p/the-1-billion-brewdog-deal-that-le...

derriz··on Hardwood: A New Parser for Apache Parquet
This sounds great. parquet-java is extremely unpleasant to use with its massive fan-out of dependencies, an awkward API which exposes these dependencies causing the dependencies to bleed into a user's code base - the Hadoop stuff is particularly annoying given the relatively poor quality (IMO) of the Hadoop code base and the amount of class name sharing with built in Java types (like File, FileSystem, etc.). And the performance of parquet-java is very poor compared to the libraries available to other languages.
derriz··on Bus stop balancing is fast, cheap, and effective
My experience of public transport modes in various cities is at odds with this.

Trams and trains generally offer far more reliable schedules, frequencies and journey times than busses because they either have completely dedicated alignments or have priority where there is any interface with normal traffic.

Most buses inevitably bunch (see https://setosa.io/bus/ for a nice simulation) and/or get stuck in traffic as a matter of routine. The inconvenience may be less per delay but busses are delayed far more frequently than trams and trains on most of the public transport systems I've used. So for regular users, the cumulative inconvenience is much worse on busses than on trains/trams. Which is why people flock to trains and trams when available as an alternative to busses.

Specifically with regard to the parent, the frequency at which unplanned outages happens with tram services in Zurich is extremely low in my experience - certainly planned changes to schedules or routes (for maintenance, upgrades, etc.) are far more frequent. And when "something happens" (i.e. a traffic accident), the path for trams is cleared as quickly as possible - often in 30 minutes or less - so you'd really have to be unlucky to be inconvenienced by such an occurrence.

derriz··on What Every Experimenter Must Know About Randomization
At a certain point a bias in the prng just has to become significant? This will be a function of the experiment. So I don’t think it’s possible to talk about a general lack of “practical impact” without specifying a particular experiment. Thinking abstractly - where an “experiment” is a deterministic function that takes the output of a prng and returns a result - an experiment that can be represented by a constant function will be immune to bias, while one which returns the nth bit of the random number will be susceptible to bias.
derriz··on How to choose between Hindley-Milner and bidirectional typing
HM handles sub-typing just fine? Numerous approaches have been known since the 1980s - Michael Wand’s row polymorphism is one such approach.

https://en.wikipedia.org/wiki/Row_polymorphism

derriz··on Poor Deming never stood a chance
Not sure about your opening thesis. The vast majority of employees work for privately held businesses and from personal experience of working in such companies, “management” by OKRs and the like is common in companies who are not listed on stock markets also.
derriz··on I'm building a clarity-first language (compiles to C++)
Should be a priority. Without it, your language relies on recursion for Turing completeness.
← PreviousPage 3 of 28Next →