eliben

Joined 16 years ago

Karma
3,222
Submissions
1,069
Member since
Jul 5
http://eli.thegreenplace.net
View on Hacker News

Recent submissions

Comment · 14 days ago
How deep did your high school go on complex numbers?

I recall we covered them very lightly (mostly to explore what happens to roots of negative numbers), but we certainly came nowhere near the group theory stuff or linear algebra aspects mentioned in this post.

Comment · 1 month ago
You are technically correct :) But that's not the point of the footnote, and you're right that I should update it. The point here is that Python and Go don't have the equivalent of "first", and have the programmer rely on the runtime error in lst[0]. Rust can affort to have a "first" method because of Option.
Comment · 2 months ago
I also remember libraries having a very small limit back in the day, so I was surprised to find out that in the Bay Area libraries typically allow up to 100 books per card!
Comment · 2 months ago
Yes. Counterintuitive, but it make sense when you take all the factors into account (such that completely shutting down and then later restarting turbines may cost a generator more than paying someone to take power off their hands).
Comment · 2 months ago
During certain hours of the day in California, electricity is essentially free due to solar overproduction, which sometimes causes negative wholesale prices.
Comment · 3 months ago
Thanks for the nudge - I've added links to other posts in the series in each one (there are only 3 - you found them all!)
Comment · 4 months ago
Joshua Tree NP <3
Comment · 6 months ago
You're welcome :)

The harnesses are documented here: https://github.com/eliben/watgo/tree/main/tests

Note that I had to switch the harness from wazero to Node (unfortunately!) when it turned out wazero doesn't support gc and other new proposals (e.g. your comment here https://github.com/wazero/wazero/issues/2483)

Thank you very much for maintaining wazero - I love that project, and am looking forward to being able to use it for this in the future.

Comment · 6 months ago
watgo (https://github.com/eliben/watgo) -- a WebAssembly toolkit for Go. Think something like wasm-tools or wabt, just in pure (0 dependency) Go.
Comment · 7 months ago
According to the official tracker (https://www.energy.ca.gov/data-reports/clean-energy-serving-... and elsewhere) there were 279 days in 2025 where California was on 100% renewable for _some_ time during the day (could be hours, could be minutes at mid-day).

In total hours equivalent of 77.3 full days over 2025.

Comment · 7 months ago
California is a great example; highest electricity prices in the US (not counting Hawaii, which makes sense) despite significant hydro and fantastic solar capacity. In the last few years California runs 100% renewable on many days (and growing) every year.

Economics 101: prices are not set by what goods cost to create + markup. Prices are set by how much people are willing to pay.

Comment · 8 months ago
Thank you for the feedback. The idea was to first define what we want the basis functions to be (a pretty abstract definition) and then develop how to actually get that from _normal_, continuous functions.
Comment · 8 months ago
Fixed, thank you! (it's actually r(x)=p(x)-q(x))

(proof-reading through HN is a mildly embarrassing process, sorry about that! I do go over these posts and proof-read them several times myself before publishing)

Comment · 8 months ago
Thanks for noticing, I'll fix it shortly

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton