HNHacker News
TopNewBestAskShowJobs

afiori

3,756 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 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
afiori··on One year of keeping a tada list
I think git keeps a per-branch history but in practice I have never seen it used
afiori··on Gpg.fail
I think it should be mostly ad-hoc methods:

if you have a website put your keys in a dedicated page and direct people there

If you are in an org there can be whatever kind of centralised repo

Add the hashes to your email signature and/or profile bios

There might be a nice uniform solution using DNS and derived keys like certificate chains? I am not sure but I think it might not be necessary

afiori··on C/C++ Embedded Files (2013)
which makes me consider an interesting distinction, undefined behavior refers to the behavior of the compiler output, does the C standard "allow" compilers to do compile-time code executions with undefined behavior? is the runtime behavior of the compiler even in scope for the standard in general?
afiori··on FFmpeg has issued a DMCA takedown on GitHub
IIRC at a point it was 6 line of code
afiori··on We replaced H.264 streaming with JPEG screenshots (and it worked better)
I wrote in LaTeX for quite some time so, me.
afiori··on When compilers surprise you
I was not expressing an opinion on giant files, I was just postulating on why people dislike them.
afiori··on We invited a man into our home at Christmas and he stayed with us for 45 years
The post office would identify you on access and hold mail for an appropriate amount of time.

Like for some deliveries you need to sign a receipt that will be legally binding, the post office would take the role of handling those.

afiori··on We invited a man into our home at Christmas and he stayed with us for 45 years
A reasonable solution is to get a free "address" from the post office with optionally phone notifications for mail
afiori··on Permission Systems for Enterprise That Scale
I only did a quick read of permit.io offering but iirc they don't focus on hierarchical data. If having access to a resource cannot grant access to unbounded number of other independent resources (eg sharing a folder) then almost all issues of the article disappear
afiori··on When compilers surprise you
Part of the issue is that it suggests that the code had a spaghettified growth; it is neither sufficient nor necessary but lacking external constraints (like an entire library developed as a single c header) it suggests that code organisation is not great.
afiori··on HTTP Caching, a Refresher
That sounds like it is one expiration bug away from debugging hell
afiori··on We replaced H.264 streaming with JPEG screenshots (and it worked better)
You could do better than video compression because you could use older keyframes or a combination of keyframes.

I am pretty sure it might be np compete to find the best combination

afiori··on We replaced H.264 streaming with JPEG screenshots (and it worked better)
Just saying but LLM-ese as the common dominator of how people wrote, it is likely the writing style of a lot of people
afiori··on We replaced H.264 streaming with JPEG screenshots (and it worked better)
I am almost sure that the most perfect solution would involve using a video codec protocol but the issue is implementation complexity and having to implement a production encoder yourself if your usecase is unusual.

This is exactly the point of the article they tried keyframes only but their library had a bug that broke it

afiori··on Garage – An S3 object store so reliable you can run it outside datacenters
I agree that it is a bad idea to describe rust this way but they likely meant memory safety as used in https://www.ralfj.de/blog/2025/07/24/memory-safety.html . Meaning that shared mutable is thread unsafe, I am unsure about Java and JavaScript but I think that almost every language on the popular memory safe list fails this test.

Again the statement is probably still untrue and bad marketing, but I suspect this kind of reasoning was behind it

Of course Rust technically fails too since `unsafe` is a language feature

afiori··on Is Mozilla trying hard to kill itself?
For almost all purposes and users this is the same as saying "just close your eyes"/"just stay offline".
afiori··on Europeans' health data sold to US firm run by ex-Israeli spies
It depends if Google ranks all users' watch time the same or less profitable users are weighted less in the "algorithm"

If all users' are ranked the same then loyal adblocking users can still help a lot

afiori··on Progress on TypeScript 7 – December 2025
> product types A & B, sum types A | B

those are intersection types and union types and are much more unique and rare in type systems eg all typed functional languages have product/sum types but typescript is the only mainstream language I know to have unions and intersection.

afiori··on Thoughts on Go vs. Rust vs. Zig
If rust skipped async features I think it would not have damaged it much
afiori··on Thoughts on Go vs. Rust vs. Zig
I agree, I think they should have delayed it.

In a different universe rust still does not have async and in 5 years it might get an ocaml-style effect system.

afiori··on Netflix’s AV1 Journey: From Android to TVs and Beyond
AI embeddings can be seen as a very advanced form of lossy compression
← PreviousPage 6 of 34Next →