Better HN
topnewbestaskshowjobs
Log inSign up

eliben

3,225 karma · joined Jul 5, 2010 (16y ago) · 1,072 submissions

http://eli.thegreenplace.net
Submissions

comment 2d ago · link · parent

Yes! It's discussed in the "Inverse DFT: reconstructing the signal" section, which relies on the earlier post https://eli.thegreenplace.net/2026/notes-on-the-complex-root...

comment 2d ago · link · parent

All posts are 100% written by me.

AI is very useful for brainstorming, checking the math, helping with some of the visualizations etc.

comment 3d ago · link · parent

Random thoughts / questions:

1) Surely agents can be employed to simplify the proof now? "Make it smaller while it still verifies" in a loop; maybe, to a level where a human (research mathematician specializing in RH) can grok it?

2) con-leche is vibe coded; isn't it a concern w.r.t. trusting its soundness?

3) This is so exciting. Please prove P != NP already and spare us the tension

comment 1mo ago · link · parent

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 1mo ago · link · parent

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.

6.

TPU Inference Externalization Full Steam Ahead – InferenceX(newsletter.semianalysis.com ↗)

1 points · by eliben · 2mo ago · discuss

comment 3mo ago · link · parent

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 3mo ago · link · parent

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 3mo ago · link · parent

During certain hours of the day in California, electricity is essentially free due to solar overproduction, which sometimes causes negative wholesale prices.

comment 3mo ago · link · parent

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 5mo ago · link · parent

Joshua Tree NP <3

comment 7mo ago · link · parent

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 7mo ago · link · parent

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 8mo ago · link · parent

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 8mo ago · link · parent

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 8mo ago · link · parent

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 8mo ago · link · parent

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 8mo ago · link · parent

Thanks for noticing, I'll fix it shortly

comment 9mo ago · link · parent

Right, standalone binaries for CLI tools is great. And if one has Go installed, they can just `go run ...` any tool from its GitHub path, all installation/build/caching happens automagically (meaning the execution is immediate after the first run).

But I can definitely see how someone with `uv` muscle memory wants everything in the same command.

`uv` is the best thing that happened to the Python ecosystem since... I don't know... maybe Numpy.

comment 9mo ago · link · parent

Very interesting! I encountered the problems these tools are trying to tackle just recently while trying to guide an agent into creating an in-browser tool for me. Closing the loop on a web interface isn't as simple as CLI-only tools. I should give this a try.

It's also interesting that you've shifted to Go for your agent-coded CLI tools, Simon.

comment 10mo ago · link · parent

The underlying issue here is that the Nobel Peace Prize is a useless, politicized joke. It appears to be almost designed to give newspapers something to write about.

It's a shame it gets tied with scientific prizes which represent actual merit.

comment 11mo ago · link · parent

Nice, I'm proud I managed to nerd-snipe you :-) Thanks for taking the time.

Seriously, though, I think this solves a nicely framed simpler problem. I was thinking about a more general tool, but that's genuinely hard (you'll need heavy CV algorithms or a special ML model to detect what is background what what isn't).

To be honest, what you built here is probably sufficient anyway, because the models are better at obeying "create a white background" or "create a 0xffffff background" than "transparent", so this tool can post-process to what's needed.

When asked for "transparent", I've had a model generate a fake checkerboard pattern of gray colors to imitate how viewers render transparent areas :-) For this kind of nonsense, the transparent-png tool wouldn't do!

comment 11mo ago · link · parent

Great work, Simon -- thanks for sharing!

One tool I'd really like to see in this format is a simple "turn the background of this PNG to transparent". Models still refuse to follow the instruction to create transparent backgrounds for logos they create, and I often have to look for other tools doing this as post-processing.

It's possible that this is too complicated for the "few hundred lines of js" code envelope, though.

comment 11mo ago · link · parent

I also enjoyed working with BF for toy compiler projects; here's a series of JIT compilers for BF in increasing level of sophistication: https://eli.thegreenplace.net/2017/adventures-in-jit-compila...

comment 1y ago · link · parent

Thanks for spotting this, what a silly typo :)

... Fixed

comment 1y ago · link · parent

Thanks for the kind words!

Regarding ring size, yes I'd say 2^64 is good. Since the representation is sparse, it seems safe but I'd be interested in hearing other views.

comment 1y ago · link · parent

Thanks for posting this!

Just a quick note that this post is the first in a series: see https://eli.thegreenplace.net/tag/multiple-dispatch for the full series

comment 1y ago · link · parent

The Y combinator in Python: https://eli.thegreenplace.net/2016/some-notes-on-the-y-combi...

(scroll down, after the concept is explained using Clojure)

A bit crazier, in Go with generics: https://eli.thegreenplace.net/2022/the-y-combinator-in-go-wi...

comment 1y ago · link · parent

A quick plug for https://www.goatcounter.com/ - a super lightweight visitor counter. Very much privacy oriented (https://www.goatcounter.com/help/gdpr).

I've set it up on my blog a while ago (https://eli.thegreenplace.net/2023/using-goatcounter-for-blo...) and it's been working really well.

12345
36