Better HN
topnewbestaskshowjobs
Log inSign up

afiori

3,758 karma · joined Jan 23, 2019 (7y ago) · 3,044 submissions

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 :)

Submissions

comment 5d ago · link · parent

the joke is the pipeline from SWE to manual hobby/jobs.

There was a meme some time ago about the perfect career path of this linkeidn profile that quickly rose in ranks in a big company and after that his current job was duck farmer.

Woodworking is a stand-in for the category of activities that are definitely manual, artistic but in a "manly" way, and many perceive as the antithesis of worrying about the next sprint, code review, or career advancement

comment 3w ago · link · parent

In a sense I would expect C to be the most portable language ever* so I am not sure how good of a comparison candidate it is

* With some UB herbs and spices

comment 4w ago · link · parent

that is even worse

comment 1mo ago · link · parent

no, it is the same idea, even if the excavator was magically free there are associated costs like keeping an industrial machine in your garden, danger or heavy machinery and possibly it is going to destroy you garden.

the analogy is not between each specific consequence/cost, it is relative to "single axis optimization" not being a solid strategy

comment 1mo ago · link · parent

Because that CSS can be evaluated with lower latency than the equivalent js

comment 1mo ago · link · parent

unsafe rust is still typed orders of magnitude better than C

comment 1mo ago · link · parent

Yep cost is the reason, allegedly the ts team found go a better language for a port and both using a less ergonomic language and switching target every six months have associated costs

comment 1mo ago · link · parent

Here the list is the "flattened” ast of (Node, slice of input corresponding to the node)

comment 1mo ago · link · parent

Pushing for shorter keys can be reasonable, otherwise we would all use 16 MB keys

comment 1mo ago · link · parent

this only warn that there is some implementation-defined stuff coming next, not that all these operator are free of undefined behaviour

comment 1mo ago · link · parent

Not everyone needs to care about everything and there is reason to say that a result like this one from openai is quite sterile and possibly damaging to the socio-cultural dynamic of the field.

comment 1mo ago · link · parent

I never did a blind test but I feel i get much improved writing for work stuff with instructions to use ASDSTE-100

comment 1mo ago · link · parent

I feel like solid-js is in a good place to be a platform

comment 1mo ago · link · parent

loadshedding is based on each load having an associated priority

comment 1mo ago · link · parent

I don't think that standards did anything wrong or incompetent, but with hindsight considering all the complexities they bring i am hot sure they have been worth it

comment 1mo ago · link · parent

If you are referring to how SSR pages need to download the serialised page "props" and not just the html+js then good news! Solid 2.0 is about to solve this.

If you are referring to having to download react itself then you have to download the WebComponents code too.

Actually with smart use of forms and links you could make a js free react page (using forms to submit state changes) more easily than for WebComponents

comment 1mo ago · link · parent

WebComponents are some of the coolest APIs on the web if you ignore all the ways they fall short and make everything else harder

comment 1mo ago · link · parent

This comment is at the same depth of analysis of saying that the only reason for python being successful is that universities started teaching it and then people no longer could do C++

comment 1mo ago · link · parent

The reason react sites are bloated is because there are a lot of things that are easy to do once you have better DX, there is nothing stopping you from making completely static sites with no js (solid-js 2.0 has a whole "htmx-like" mode that lets you have good interactivity even with js disabled).

WebComponents are useful for cases where you want something slightly more integrated than an iframe or want to make a library of small widgets

comment 1mo ago · link · parent

WebComponents were created out of spite for react and are the composability equivalent of medieval artist drawing horses that look like they had never seen an horse

comment 1mo ago · link · parent

I don't why a sha256 project could not support sha1 usages too: if you try to merge/rebase/cherrypick/whatever a sha1 commit in a sha256 project git could simply recompute the needed s256 data and keep old sha1 ids as validated metadata. you could even use either hashes as tree-like refs.

you could even do the same in reverse and "import" sha256 commits in sha1 projects. the only real difference would be which one is used as primary key in git's internal store.

comment 2mo ago · link · parent

The only alternatives to nuclear are coal and LNG

Or starting with solar more 20 years ago.

comment 2mo ago · link · parent

I think it is so that the server extensions can do stuff on the client, imo the weirder part is that it installs a bunch of stuff on the remote

comment 2mo ago · link · parent

> If you treat a branch as your unit of review, then it becomes super difficult for someone to submit a chain of related changes. You'll be constantly rebasing your pull requests onto each other as you get feedback from dependent branches.

comment 2mo ago · link · parent

> A rebase can introduce change to a commit in cases such as handling conflicts or squashing.

and with change ids you can quickly separate commits that changed from commit that did not.

> Also, a commit already retains it's commit message after rebasing.

but commit message are not ids, there is no command for checking out a commit by its message, nor any sense that commit with the same message are somehow functionally related

comment 2mo ago · link · parent

change ids are more analogous to commit messages than branches, eg suppose that in a feature branch you have a "Delete deprecated classes" commit; in git there is a clear idea of "cloning" this commit (eg rebase, cherrypicks, maybe reverts) and the common sense that the new commit inherits the same commit message. Change ids are the same thing but in hex id form that can be created for every new commit/stash/index.

They allow for example to identify all the clones of a commit and they allow to give stable identities across rebases eg suppose you rebase a typo at the beginning of a feature branch without change ids a reviewer sees n new unrelated commits while with change ids it is possible to clearly identify which commits where changed/added/removed since the previous review iteration.

comment 2mo ago · link · parent

IMO one of the main insight in the maxim is the importance to have the form communicate the function to the user.

comment 2mo ago · link · parent

my point is that that a lot of people shit on js for having "weird crazy stuff in it" and then the example is 0.1 + 0.1 + 0.1 !== 0.3 or NaN != NaN which has nothing to do with js semantics

JS is weird, and not having a stronger separation between ints and floats makes NaNs more common than in other languages (eg parseInt would not return NaNs in C or python) but for many "weird" examples people are making fun of normal stuff.

comment 2mo ago · link · parent

NaN means only NaN, 0/0 is NaN at the cpu level.

to my weak undestanding only pow and hypot behave like this; pow for math reasons and i could guess that hypot does that to sorta have |x| <= hypot(x,y)

12345
102