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 The asteroid currently hitting front end web development
A lot of the bitching about react always had the same flavour of the complaints that JavaScript dares to have a NaN

To be fair it is stupid that NaN !== NaN but that is how IEEE and CPUs made floats to be

afiori··on The browser's main thread is expensive
JavaScript's execution model uses cooperative concurrency to avoid a tons of data races, preemptive non-parallel concurrency would make all web development incredibly harder
afiori··on Don't use musl if you care about performance
C++ and python are exactly where I would expect this problem to come up
afiori··on GLM-5.3 is now open-weight
True, but in a sense a single frontier model of today would be of incredible historical significance in the far away future.
afiori··on Our decision on Cursor following its acquisition by SpaceX
Sure but each of them is being priced as if each one is gonna have 90% marketshare in the future.
afiori··on Our decision on Cursor following its acquisition by SpaceX
Markets and rationality are sometimes just acquaintances
afiori··on Pnpm 12.0
For a lot of people writing prose is a chore
afiori··on Ask HN: How about delayed MIT/GPL?
> (2) There is nothing actually forcing the open source release.

the anti-cloud-use license would include it, with no need of a separate release

afiori··on Ask HN: Can I realistically make an app as a junior dev?
I cannot answer your main question, but i can give you recommendations wrt what you are gonna try to do.

Very likely there will be a lot of parts of the app you are not going to understand, those will be the main problems so help claude help itself.

Make it add diagnostic/event-logs to every part of the stack and potentially even design implementations around traceability (eg avoid batch background processes that touch many flows if possible). so that claude can check whether runtime behaviour matches expectations. also store historical data to help debug regressions.

Treat implementations as cattle not pets, once a feature is done consider scapping it and turning it into a design doc, then ask claude to reimplement interactively with you step by step explaining to you what is going to do, why it matters, etc. this is a very good way to minimize the black boxes you don't understand in the app.

if the app is web make it work very well with playwright for e2e ux tests.

finally i like the architecture given in https://www.youtube.com/watch?v=4KvbVq3Eg5w (use ui composition to define feature) but this has little to do with claude

afiori··on How does IKEA come up with names for its products?
An Oxford comma before the or would make it clearer maybe
afiori··on GrapheneOS in 2027 available on high-end Motorola phones
you are right a stack of printed qr codes is better
afiori··on Anthropic's ‘watermark’ text adulteration in Claude is a perversion of writing
Yes, but i cannot create a robot that can get married, people do not have the right to give personhood to tools
afiori··on Children's stunted lungs show recovery in ultra low emission zone
Woke activists love the word "systemic" for a reason.

If a bunch of good people acting in good faith produce a result an evil mastermind would want does it matter if they are good? On many levels obviously yes, on some practical levels the system and the incentives still need to change.

afiori··on Anthropic's ‘watermark’ text adulteration in Claude is a perversion of writing
Weirdly I think humans should have more rights than machines
afiori··on Anthropic's ‘watermark’ text adulteration in Claude is a perversion of writing
A legislative solution to Flock seems a lot more feasible than one for literacy
afiori··on We Are Forking dotenvy into dotenv-ng
Most uses of .env files are for apps or containers imho, so you could just have a .env file in each folder and configure docker compose /node / whatever to pick it up
afiori··on Parsers don't have to be complicated
courtesy of chatgpt there is also this abomination

    ht tp://[\x00::gg]\t/foo\nbar/%/%QZ/%F?q=<\"|{}>##
afiori··on Parsers don't have to be complicated
% characters must be escaped in URIs at the very least, and _ is not valid in domains

also this one is valid too for the regex

    %_%://%_%.%_%/%_%?%_%#%_%
afiori··on Fastmail offers EU data region
Also the more companies go in this direction the more "soft power" the EU has on the topic
afiori··on Fastmail offers EU data region
The elitism of direct democracy is a mystery to me, especially in the case of the US where it is not technically direct and the powers and role of the president are deeply modelled after those of the British crown of the times
afiori··on Parsers don't have to be complicated
> well-formed URI

A parser that assumes the input to be already valid is usually not enough for most applications

according to that regex this is a valid url

__..__..%%%zz..

afiori··on IMAX vs. IMAX 70mm: The difference between these two cinema formats
I would guess that the film was still mastered/produced digitally
afiori··on EU Exempts Apple Watch and AirPods from Battery Removal Requirements
you can, but many of those repair can be delicate and require specialized equipment.

The difference between the 2 requirements is the level of technical knowledge needed and the necessary investment in tools

afiori··on Why is it so hard for the U.S. to win wars?
IMO most of these appointments should be done by congress itself, the only reason they are done by the executive is because the role of president was a created on the template of the role of king.

except that without a "prime minister" now there is no separation between the "king" and the fulcrum of political power.

afiori··on Why is it so hard for the U.S. to win wars?
as the term rule of law suggest the legislative branch has the power to make the rules
afiori··on EU Exempts Apple Watch and AirPods from Battery Removal Requirements
IMO they entire law should have been target at "replaceable by independent professionals", it is reasonable to require industry standard professional equipment for opening and working on a phone
afiori··on Sony deletes more movies from the accounts of people who ‘bought’ them
I think many companies believe they own their cloud hosted DBs
afiori··on SQLite should have (Rust-style) editions
it would be sorta enough to bundle the wasm binary
afiori··on SQLite should have (Rust-style) editions
yes but no... most database allow for at least as many parallel and concurrent writes as there are tables at a minimum.

The "lock on write" problem is that in MySQL i could run a OLAP pipeline for a few hours and have a fully functioning database with degraded perfomance, on SQLite the same pipeline would lock the database for the full hour. (there are surely ways to solve this (eg using the main db as read-only and a secondary db for writes or splitting the writes in incremental transaction), but it is not a "myth".

afiori··on Rewriting Bun in Rust
What I mean is that unsafe code allows you to eg break std invariants (set invalid length to Vec, unlock a locked mutex, etc.) in ways that can be UB, which of these are UB and which can be used "safely" is sort of unknown.

For better or worse they are much more well understood in C as they are front and center of the language semantics

← PreviousPage 2 of 34Next →