Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
eliben
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
12 ms
·
91.
▲
by
eliben
4y ago
You're right, these posts assume one knows what the Y combinator is for. Wikipedia has a decent explanation: https://en.wikipedia.org/wiki/Fixed-point_combinator Key point: the Y combinator implements simple
92.
▲
by
eliben
5y ago
That's a good point, thank you for bringing it up. Finding the right examples is really tricky. sort.Search is binary search and hence a bit tricky to benchmark properly because of how ridiculously fast it is. Only a handful of compari
93.
▲
by
eliben
5y ago
The change mentioned at the top of the post ( https://go-review.googlesource.com/c/exp/+/378134 ) also has a benchmark to compare sorting structs using sort.Slice vs a new generic approach that uses a compariso
94.
▲
by
eliben
5y ago
The FAQ has some good information: https://go.dev/doc/faq#generics_comparison and other sections around it
95.
▲
by
eliben
5y ago
Some of the issues pointed out by this (very good) article may already be fixed in tip Go, with https://go-review.googlesource.com/c/go/+/385274
96.
▲
by
eliben
5y ago
Thank you for the thoughtful comment. I'm actually aware of cargo doc - it's really useful, indeed. It's still note quite "greppability" though; I can open `cargo doc`. I can just open the browser and google "r
97.
▲
by
eliben
5y ago
No kidding :) This post is now #3 on google for "greppability"
98.
▲
by
eliben
5y ago
Thanks for the comment! I actually forgot to run clippy on these samples because they're so small; I'll fix up the code in the post to be more idiomatic.
99.
▲
by
eliben
5y ago
A lot of my reading is audiobooks. I love audiobooks - they enabled my reading levels to go way up in the last few years. Some more details about this here: https://eli.thegreenplace.net/2020/my-reading-habits/
100.
▲
by
eliben
5y ago
Fair question. I spend some time researching books before I read them; very low signal-to-noise books typically will have reviews saying that. I also mostly avoid whole categories of books which are prone to this; I still get bitten once in
101.
▲
by
eliben
5y ago
Books Seriously. Books are the ultimate long-form content; their authors typically spend years researching and writing them, and you can sample many reviews before committing to read one.
102.
▲
by
eliben
5y ago
What confuses me about these reports is that the relevant South African districts report ~25% vaccination rates; so it sounds unlikely that the mildness observed is due to previous immunity. Or is the assumption that most of these people ha
103.
▲
by
eliben
5y ago
You can pay for gmail too, and get phone/chat/email support via https://one.google.com/about/plans (basic plan is less than $2/month) Doesn't this work for folks?
104.
▲
by
eliben
5y ago
Thanks, you're making a good point. I like how you phrased the problem here, will ponder about updating the wording of the post slightly to reflect that.
105.
▲
by
eliben
5y ago
`Rc` implies ownership, albeit shared one. So if a heap location is held by `Rc`, all reference to it should be either `Rc` or `Weak`. You can't have an `Rc` and a `Box` for the same data, IIUC. A `Box` is unaware of `Rc` and will drop
106.
▲
by
eliben
5y ago
Thanks for the pointer! My goal in the post was to avoid "just use this crate" approaches, because clearly there are dozens of crates that could help with this... even crates that implement BSTs :-) The goal was to look at the und
107.
▲
by
eliben
5y ago
I had this approach in a draft as well! In fact, I tried this before making all links `*mut Node`. But coding the removal methods turned out to be really hard - I couldn't fight through the borrow checker. So I figured if I already hav
108.
▲
by
eliben
5y ago
What does "reliably measured" mean? Isn't the record 134F, measured in 1913? I wonder what the backstory here is.
109.
▲
by
eliben
5y ago
Interestingly, NZ has been settled by Polynesians only around 1300 or so (I think the latest estimates vary by +/- a few decades)
110.
▲
by
eliben
5y ago
1300 CE seems insane? The Middle East is like hold my hummus ( https://www.timesofisrael.com/archaeological-dig-uncovers-10... etc.)
111.
▲
by
eliben
5y ago
Yes, age and life expectancy is a huge part of it. In the book "Rebel Cell: Cancer, Evolution, and the New Science of Life's Oldest Betrayal", Kat Arney touches upon this exact question and reaches the conclusion that cancer
112.
▲
by
eliben
6y ago
Thank you for the comment! I will revise that part of the post to avoid confusion.
113.
▲
by
eliben
6y ago
Some measurements of context switching: https://eli.thegreenplace.net/2018/measuring-context-switchi...
114.
▲
by
eliben
6y ago
Thank you very much!
115.
▲
by
eliben
6y ago
Thanks for posting this :) Not sure why the (2017) tag though, this post is from yesterday!
116.
▲
by
eliben
6y ago
https://xkcd.com/925/ comes to mind
117.
▲
by
eliben
6y ago
Is it only me, or is this website hijacking the back button?
118.
▲
by
eliben
6y ago
Turned off Disqus on my blog a couple of years ago ( https://eli.thegreenplace.net/2018/turning-off-blog-comments... ) and have been generally happy since then.
119.
▲
by
eliben
6y ago
Thank you for the detailed comment! Just want to address (1) quickly. As you've mentioned at the end of the parenthesized note, the reason I did not use `defer` here is to avoid the lock staying across the rest of the handler. I wanted
120.
▲
by
eliben
6y ago
Could someone ELI5 why proteins fold in a unique way? Why can't there be multiple "valid" ways for them to fold (ignoring mirror symmetries)?
More ›