HNHacker News
TopNewBestAskShowJobs

afiori

3,748 karma · joined January 23, 2019

This about had been empty long enough; I will use it for a book recommendation: Unsong, by Scott Alexander

http://unsongbook.com/

My guess is it will be the weirdest book you will have ever read.

If it is not, please, I am curious about what is your weirdest book :)

submissionscomments
afiori··on Why Object of Arrays beat interleaved arrays: a JavaScript performance issue
48/56 bits numbers would be useful in many circumstances
afiori··on Stop using MySQL in 2026, it is not true open source
What happens if there are cycles of FK constraints between rows?
afiori··on How the Lobsters front page works
To my understanding there are also few consequences to having a comment get [flagged]
afiori··on The Cathedral, the Megachurch, and the Bazaar
The metaphor does not refer to the finished building but to the building process
afiori··on jQuery 4
I find it is a good idea, it allows developers to cleanly define how to structure elements without random divs sneaking in.

It requires a strong design system and it probably makes it harder to use some web APIs but those can be reasonable tradeoffs

afiori··on jQuery 4
That is the least interesting divide in the react community
afiori··on The string theory hype machine will never die
This is his argument that mental experiments are a good basis to construct a theory. If relativity had 0 experimental evidence to this day it would be held in considerably lower regard.
afiori··on The string theory hype machine will never die
This is good and all but then it is not really physics as it is generally intended
afiori··on Git Rebase for the Terrified
in my experience some of the trickiest situations are around gitignore file updates, crlf conversion, case [in]sentivity, etc. where clones and branches are less useful as a testing ground.
afiori··on Git Rebase for the Terrified
For merges current is the branch you are on, for rebases it helps to see them as a serie of cherry picks, so current would be the branch you would be on while doing the cherry pick equivalent to this step of the rebase.
afiori··on The most famous transcendental numbers
> but how do you know that is a number?

Quick answer: math[0]

Slightly longer answer decimal numbers between 0 and 1 can be written as the sum of a_0*10^0 + a_1*10^1 + a_2*10^2 + ... + a_i*10^i + ... where a_i is one of 0,1,2,3,4,5,6,7,8,9. for series in this shape you can prove that the sum of two series is the same iff and only if the sequence of digits are all the same (up to the slight complication of 0.09999999 = 0.1 and similar)

[0] https://en.wikipedia.org/wiki/Series_(mathematics)

afiori··on IPv6 just turned 30 and still hasn't taken over the world
I think that hex digits are inherently hard to remember also because they are unpronounceable.
afiori··on The most famous transcendental numbers
There are more infinite sequences than finite ones.

So not all infinite sequences can be uniquely specified by a finite description.

Like √2 is a finite description, so is the definition of π, but since there is no way to map the abstract set of "finite description" surjectively to the set of infinite sequences you find that any one approach will leave holes.

afiori··on The most famous transcendental numbers
Using this representation can one "efficiently" sum or multiply numbers? I was under the impression that this was its main drawback
afiori··on WebAssembly as a Python Extension Platform
An advantage of WASI is that it mostly works on non-WASI runtimes too, as it can be compiled to one or more normal modules (with the multi memory feature).

So a possible reason is that maybe they are not interested in offering general interfaces but just a single python specific one.

In this case they could have likely used wasi for that too but I can see how it could have been seen as an overhead

afiori··on Why users cannot create Issues directly
Browser + 2 vscode + 4 docker container + MS Teams + postman + MongoDB Compass

Sure it is bloated, but it is the stack we have for local development

afiori··on GOG is getting acquired by its original co-founder
The reason why publishers like DRM is because it allows them to turn anything into a subscription-lite service plus tracking and advertising.
afiori··on GOG is getting acquired by its original co-founder
Consider the two cases

A: I pirated a game 25 years ago and played it after school

B: I didn't

which cases do you think will make me more likely to buy more versions of that game later?

afiori··on A production bug that made me care about undefined behavior
This is gold
afiori··on GOG is getting acquired by its original co-founder
Yeah but if a pirate would have not paid the full price why care? It is by definition not a lost sale, the most likely outcome is just an increase by one the player count
afiori··on GOG is getting acquired by its original co-founder
What has been proven many times is that people overwhelmingly choose the least effort/risk option.

A free Steam full of certified pirates games with official games updates would obviously drop sales but this is moot as it will never exist.

afiori··on GOG is getting acquired by its original co-founder
If someone pirates 100 60$ games it does not mean that had piracy been impossible they would have spent 6000$ on those games
afiori··on GOG is getting acquired by its original co-founder
The main reason that Russia had a fame for pirating a lot of software was that a lot of publishers either skipped it as a market or did shitty localisations and pirates offered a far better service.
afiori··on EU to build no-fee payments service like Visa/Mastercard and Apple/Google Pay
Neither is water, they obviously meant food production and distribution infrastructure
afiori··on EU to build no-fee payments service like Visa/Mastercard and Apple/Google Pay
Food should be public infrastructure, and the subsidies every country gives to farmers are a good indication of that.

Not all food but produce, bread, milk, infant foods, flour, rice and other cereals being sorta price controlled the way water/electricity is on most places would benefit mostly everyone

afiori··on Formally Verifying Peephole Optimisations in Lean
Is dereferencing an arbitrary integer cast to pointer UB on any platform? I would expect that it is system dependent but mostly not C-style UB
afiori··on What an unprocessed photo looks like
Because that reasoning applies to binary signals, where the sensibility is about detection, in the case of our eyes sensibility means that we can detect many more distinct values let's say we can see N distinct luminosity levels of monochrome green light but only N*k or N^k distinct levels of blue light.

So to describe/reproduce what our eyes see you need more detection range in the green spectrum

afiori··on C++ says “We have try... finally at home”
So inside a destructor throw has a radically different behaviour that makes it useless for communicating non-fatal errors
afiori··on C++ says “We have try... finally at home”
Ok, but sometimes you just need a single line in a finally and writing a class is more annoying
afiori··on C++ says “We have try... finally at home”
The requirement to avoid any cultural reference is a bit strict
← PreviousPage 5 of 34Next →