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 Thoughts on Go vs. Rust vs. Zig
It they had not messed up async it would be much better
afiori··on Thoughts on Go vs. Rust vs. Zig
https://www.ralfj.de/blog/2025/07/24/memory-safety.html

Go is by default not thread safe. Here the author shows that by looping

    for {
        globalVar = &Ptr { val: &myval }
        globalVar = &Int { val: 42 }
     }
You can create a pointer with value 42 as the type and value are two different words and are not updated atomically

So I guess go is easier to write, but not with the same level of safety

afiori··on JSON Schema Demystified: Dialects, Vocabularies and Metaschemas
I might be wrong but that list is mostly libraries I think?

I agree that it is easy to implement a recent version in your own code, what I meant is that a lot of the tools/software you might want to use JSON Schema with (eg mongodb validation) only support old versions

afiori··on JSON Schema Demystified: Dialects, Vocabularies and Metaschemas
JSON schema is nice overall* but every software only supports ancient versions like draft 4

*even if I would prefer more transformation/conversion features that would bring it to more more a parser rather than only a validator

afiori··on Germany to classify date rape drugs as weapons to ensure justice for survivors
I still do not get what this has to do with whether judges act as a secondary legislature
afiori··on Lean4: How the theorem prover works and why it's the new competitive edge in AI
Lean/mathlib seems a fantastic system, but in my brief experience it fails in a way that is very common between academically oriented software which is the handling of scopes and names; For example some imports introduce definitions in your module scope (sometime transitively) others do not, automatic imports cannot be renamed or captured easily, the utility names/proofs that are created with new inductive types (like for injection etc) are hard to discover.

When learning a new mathy system I am usually very pedantic and while I am sure that these default were chosen intelligently and with consideration I would have liked if the system was more easily discoverable as a new user

afiori··on Germany to classify date rape drugs as weapons to ensure justice for survivors
Anyway this is a matter of judicial discretion to decide whether personhood and rights would apply to an alien visitor.

The only difference between precedent laws and codes is that the judges act as a secondary less stable legislature.

You could very well have a mixed system where legislature has to filter and ratify court rulings to decide which become law and which do not.

In short this has nothing to do with having actual laws

afiori··on Germany to classify date rape drugs as weapons to ensure justice for survivors
I am pretty sure that hunting laws would apply
afiori··on Helping Valve to power up Steam devices
The discourse is not valve good others bad, rather it is consumer/product focused good and next-quarter/short-term-profit focused bad.

With the context that a lot of modern enshittification, outsourcing, layoffs, anti-consumer practises follow from these short term approaches

afiori··on Helping Valve to power up Steam devices
Many CEOs are either paid by mythical "shareholder value" or beholden to it in the shape of a board, if they tried to go the valve route they would likely get replaced too soon for the benefits to materialize
afiori··on Hilbert space: Treating functions as vectors
> In most function vector spaces you encounter in mathematics, you can not say what the value of a function at a point is. They are not defined that way.

That is because they are not vector spaces of function but a quotient of one

afiori··on Nearly all UK drivers say headlights are too bright
also people expect smaller cars to cost far less so they have far lower per-unit profits
afiori··on FFmpeg to Google: Fund us or stop sending bugs
Unless the maintainers are incompetent or uncooperative this does not feel like a good strategy. It is a good strategy on Google's side because it is easier for them to manage
afiori··on FFmpeg to Google: Fund us or stop sending bugs
This is a fantastic argument for the universe where Google does not disclose vulnerability until the maintainers had had reasonable time to fix it.

In this world the user is left vulnerable because attackers can use published vulnerabilities that the maintainers are to overwhelmed to fix

afiori··on Using the expand and contract pattern for schema changes
> This is the same pattern as versioning

I guess we disagree on the reasonable interpretations of this sentence

afiori··on The 'Toy Story' You Remember
Happy to have set my television to less than half saturation
afiori··on Using the expand and contract pattern for schema changes
:(

Things can have similarities without being the same. Also not being unique is not a moral failure.

I think I am failing to understand your stance.

afiori··on Using the expand and contract pattern for schema changes
That is a very reductionist view and not particularly useful either. It shares elements with versioning and you could likely implement this using explicit versioning, but it is completely independent of it.

The main difference I see is that of focus here the focus is to migrate a database without downtime or excessive global locks, keeping multiple versions of the schema is a detail.

afiori··on Why I love OCaml (2023)
I believe that current publicly available Ais are more intelligent than a non trivial fraction of adults.
afiori··on Solarpunk is happening in Africa
It is funny to me how fractally perverse systems gets when a centralised authority refuses to directly solve a problem but rather decide have it solved by third party uncooperative players by creating an endless stream of byzantine rules to force the solution to be a twisted copy of what the centralised authority could have done by itself.

Of course there are failure modes in any approach but "oh no! Herding cats is hard. Who could have imagined!" is funny to me

afiori··on You can't cURL a Border
Germany still does this, to a good fraction of incoming long distance busses (but not trains IIUC)
afiori··on URLs are state containers
I guess they use something like sessionStorage to hold tab specific ids.

But something that can bite you with these solutions if that browsers allow you to duplicate tabs, so you also need some inter-tab mechanisms (like the broadcast API or local storage with polling) to resolve duplicate ids

afiori··on Anonymous credentials: rate-limit bots and agents without compromising privacy
You can see it another way: everyone wants to be the one that controls access to services; it is what search and news aggregators have in common.

Even if pizza hut wanted people to order pizza the most efficiently with no time wasted it would still want it to happen on their own platforms.

Because if people went to all-pizzas.com for their pizza need then each restaurant and chain would depend on them not to screw them up

afiori··on Responses from LLMs are not facts
Citing sources is not a magic that makes what you say true, it just makes statement more easily falsifiable.

LLMs can cite sources as well as any human, that is with a non-trivial error rate.

LLMs are shit for a lot of things but the problems are with the quality of the output whether they work by magic, soul-bending, matrix multiplication, or whatever is irrelevant.

afiori··on Responses from LLMs are not facts
You can reductionistically do the same to claim that the mesh of charged gel tubes in our brain is just spasming our muscles when humans type words in a computer.

Whether LLM are good or not, liars or not hardly depends on them being implemented on random black boxes algorithms becouse you could say the same of our brains.

afiori··on A worker fell into a nuclear reactor pool
I would guess that in reality they are either suspended and/or there is enough concrete at the bottom
afiori··on A worker fell into a nuclear reactor pool
My understanding is that reactor and waste pools are some of the least radioactive environments as they are constantly monitored for leakage.
afiori··on The fix wasn't easy, or C precedence bites
I have often felt this doubt but the only two cases where my intuition was actually wrong was with `new` operators and php's ternary operator
afiori··on JMAP for Calendars, Contacts and Files Now in Stalwart
Many applications simply use strings for that, like for dates
afiori··on JMAP for Calendars, Contacts and Files Now in Stalwart
My understanding is that they cannot even really recognise a QUIC connection (maybe the first time, but not after ip roaming)
← PreviousPage 7 of 34Next →