Recent submissions

Comment · 1 year ago
There is a way to watch the video anyways, on YT with just 2 clicks.
Comment · 1 year ago
> Valued = useful + hard to find.

I agree, but I think it slightly differently, Valued = useful + hard to replace.

How difficult is to be replaced by some other human or a machine.

Comment · 1 year ago
I understand it differently,

LLMs predict distributions, not specific tokens. Then an algorithm, like beam search, is used to select the tokens.

So, the LLM predicts somethings like, 1. ["a", "an", ...] 2. ["astronomer", "cosmologist", ...],

where "an astronomer" is selected as the most likely result.

Comment · 2 years ago
You can capitalize a string in Python using functional style

  ' '.join(map(str.capitalize, string.split(' ')))
which is similar to the example in Ruby, except the operations are written in reverse order.
Comment · 2 years ago
Comment · 2 years ago
Steve Yegge mentions the book in the "Compilers, why learn them?" episode,

https://www.youtube.com/watch?v=o87pOVK8khc&t=1939s

"you're not done actually when you learn how compilers work you also need to learn how linkers and loaders work and you need to learn how to operating systems work before all of the magic is gone. So you really want to learn compilers and operating systems and then get this book that I have called Linkers and Loaders it's like the only book on linkers and loaders. I should have brought it and uh and it's really good"

Comment · 3 years ago
> I believe there's now also a VS code plugin for the same behavior, but I don't know what it's called.

It's called "sticky scroll". It's a relatively new feature of VS Code.

Comment · 4 years ago
Not for the rest of their lives. 50 people can live on $100k/year for 20 years.
Comment · 4 years ago
Comment · 5 years ago
Comment · 5 years ago
I used to think commits as snapshots, but it was confusing. Then I read "Git Internals".

A commit contain the "whole" content of each file that we've commited. But since a commit has a pointer to a root commit, it also represents a working directory. Even though a commit contain "whole" files, the git internally stores only parts of the files as an optimization.

When we diff two commits, we see the difference of the file contents in the corresponding working directories that the commits represent.

Comment · 5 years ago
The "indirect" variable does not point to a list entry directly, like what "head" and "next" variables do, that's why it's named "indirect".
Comment · 6 years ago
The comment is correct. The "thing" is the variable that holds the "entry". The entry is removed by updating the "thing".
Comment · 6 years ago
This can't be a satire. It's a guide on how to interview engineers when you're looking for extraordinary engineers, not good or great ones.
Comment · 6 years ago

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton