HNHacker News
TopNewBestAskShowJobs

peterldowns

4,615 karma · joined October 20, 2010

https://peterdowns.com

https://github.com/peterldowns

https://twitter.com/peterldowns

Always happy to meet a stranger, please reach out any time: hn @ peterdowns.com

[ my public key: https://keybase.io/peterldowns; my proof: https://keybase.io/peterldowns/sigs/9N-85LOZH1eJMXHLR70WroivxJB1is_s3ye5IT5xzxs ]

submissionscomments
peterldowns··on They tried Made in the USA – it was too expensive for their customers
> The American appetite for a low skill manufacturing job is dead - I'm not sure it's a bad thing either.

It probably isn't a bad thing, as long as we continue to invest in automation and high-skill manufacturing. The Economist wrote about this recently: the fantasy of "low-skill factory jobs for all" is just that, a fantasy: https://archive.is/YoMs1

peterldowns··on I built something that changed my friend group's social fabric
Fun story. This reminds me of the summer my friends and I were all still around our small town — we used the Yo! app the same way, as a bat signal to meet up and get into nonsense. Someone would start Yo!ing and then once there was a critical mass of return Yo!s we'd switch to text/phone and link up.

Good times.

https://en.wikipedia.org/wiki/Yo_(app)

peterldowns··on Taste Is the New Intelligence
Given the title, it's surprising how the entire thing reads like normie-mode chatGPT wrote it. Boring and content-free.

Yup, after scrolling to the bottom, the author proudly defends his AI use: https://wildbarestepf.substack.com/p/its-my-party-and-ill-us...

Lame and in poor taste.

peterldowns··on Introduction to error handling strategies in Go
Very little content here. Additionally, the fmt.Errorf examples should use %w instead of %v in order to properly wrap the errors — see the golang 1.13 blogpost from 2019 https://go.dev/blog/go1.13-errors#wrapping-errors-with-w
peterldowns··on Gemini CLI
I use `mods` for this https://github.com/charmbracelet/mods

other people use simon willison's `llm` tool https://github.com/simonw/llm

Both allow you to switch between models, send short prompts from a CLI, optionally attach some context. I prefer mods because it's an easier install and I never need to worry about Python envs and other insanity.

peterldowns··on I Dropped the Production Database on a Friday Night
The “and honestly?” phrase smells like AI writing to the point I stopped there and closed the post.

Don’t fuck your database up and do have point-in-time rollbacks. No excuses it’s not hard. Not something to be proud of.

peterldowns··on Test Postgres in Python Like SQLite
Thanks for sharing this, I'm not a Node/Bun dev but it's quite understandable. One question: does each test/database need to wait for migrations to run, or are you somehow using template databases to run them once and then quickly clone a new database for each test?
peterldowns··on AI makes the humanities more important, but also weirder
You can do this without being in a formal college program, go for it!
peterldowns··on The Ingredients of a Productive Monorepo
Any chance you'll be releasing your rules? I'd love to see how you do it.
peterldowns··on The Ingredients of a Productive Monorepo
Not the OP but you can use tools like direnv + mise/asdf/nix so that every time a developer cd's into the monorepo, their shell environment loads a pinned, declaratively-configured set of dependencies and tools whose definitions are part of the monorepo.

The way I'd naively set up something like OP described would be to have direnv + nix flake deliver you a copy of bazelisk, and then have some custom shell scripts added to $PATH that alias `go = bazel run go`, `kubectl = bazel run kubectl` or whatever custom wrappers you want.

(Handwaving and I know the above isn't quite correct)

peterldowns··on Power Failure: The downfall of General Electric
Did you use AI to write this review, or was it entirely by hand? The structure, emphases, and conclusion directly match the way ChatGPT tends to answer my requests to summarize/analyze/compare.
peterldowns··on Trading with Claude, and writing your own MCP server
Great writeup! I was just working at Alpaca --- if you're interested in using Alpaca via MCP (or another way of integrating with LLMs), reach out with your usecase and I'd be happy to put you in touch with the right people.
peterldowns··on Why are banks still getting authentication so wrong?
Vanguard on Web supports Passkeys for 2fa, but the iOS app seems to only support text-sms 2fa.

Robinhood supports passkey login on iOS app but doesn’t seem to require it for 2fa, email+password succeeds with no further prompts. But on Web it doesn’t support passkey at all, and email+password requires you to confirm auth via an in-app notification.

Both Robinhood and Vanguard support FaceID biometric auth for their apps.

All I want is passkey auth everywhere and/or email+password with options for passkey and TOTP for 2fa.

Ugh.

peterldowns··on I hacked a dating app (and how not to treat a security researcher)
I hear you but if you're processing passports and sexual preferences you have to at least respond to the security researcher telling you how you're leaking them to absolutely anyone. This is a total clusterfuck and there are zero excuses for the lack of security here.
peterldowns··on Web search on the Anthropic API
I just want to hear about how other people have felt while taking the medicine. I don't care about aggregate statistics very much. Honestly what research do you read and for what purpose? All social science is basically junk and most medical research is about people whose bodies and lifestyles are very different than mine.
peterldowns··on Web search on the Anthropic API
Great advice, already quite on top of it. I'd recommend checking out stylevana and importing some of the japanese/korean sunscreens if you haven't tried them out yet!
peterldowns··on Zuckerberg's Grand Vision: Most of Your Friends Will Be AI
Huh, interesting, do you have any links I could read for more info? This is really surprising to me. And out of curiosity, what does being white have to do with it?
peterldowns··on Web search on the Anthropic API
> For example, writing an article about the side effects of Accutane should err on the side of pulling in research articles first for higher quality information and not blog posts.

Interesting, I'm taking isotretinoin right now and I've found it's more interesting and useful to me to read "real" experiences (from reddit and blogs) than research papers.

peterldowns··on Zuckerberg's Grand Vision: Most of Your Friends Will Be AI
> “The average American I think has, it’s fewer than three friends, three people they’d consider friends, and the average person has demand for meaningfully more, I think it’s like 15 friends,” he said in the interview with podcaster Dwarkesh Patel.

Is this true? I don't believe this AT ALL. No way that the average American would say they only have 3 friends, that's beyond low.

peterldowns··on VVVVVV Source Code
Incredibly fun game, I'm not a huge gamer but I remember buying the Humble Bundle just to get this. One of the few games that I've spent the time to finish. Awesome work, Terry, and thank you for the great times!

btw also fuck you for veni vidi vici, jeez that took me a while!

https://www.youtube.com/watch?v=4CtiY5D6HCs

peterldowns··on Getting things “done” in large tech companies
Based. Nice work!
peterldowns··on Show HN: Real-time AI Voice Chat at ~500ms Latency
Can you explain more about the "Coqui XTTS Lasinya" models that the code is using? What are these, and how were they trained/finetuned? I'm assuming you're the one who uploaded them to huggingface, but there's no model card or README https://huggingface.co/KoljaB/XTTS_Models

In case it's not clear, I'm talking about the models referenced here. https://github.com/KoljaB/RealtimeVoiceChat/blob/main/code/a...

peterldowns··on Graceful Shutdown in Go: Practical Patterns
I'll check this out, thanks for sharing. I think all of us golang infra/platform people probably have had to write our own similar libraries. Thanks for sharing yours!
peterldowns··on When ChatGPT broke the field of NLP: An oral history
All of this matches my understanding. It was interesting taking an NLP class in 2017, the professors said basically listen, this curriculum is all historical and now irrelevant given LLMs, we’ll tell you a little about them but basically it’s all cutting edge sorry.
peterldowns··on What the heck is AEAD again?
Thank you!
peterldowns··on What the heck is AEAD again?
Agreed; I posted here with the goal of receiving advice.
peterldowns··on What the heck is AEAD again?
What I'm finding unclear is how to use the chapoly primitives in a secure way to accomplish my goal. I want to use AEAD encryption to store API keys, per customer, using a single app secret that my app will read from my secret manager when it starts up. AEAD seems like the right way to do that. What's the right way to do that, with AEAD, in golang? The examples/docs for cipher.AEAD at https://pkg.go.dev/crypto/cipher#AEAD don't mention chapoly, but a security reseracher friend of mine recommended I use it. The docs/examples for the chapoly library have two methods — New and NewX, and only NewX has an example. In that example, no associated data is actually used.

> Your `symcrypt` interface lands in a pretty weird place? AEADs in Go export "Seal" and "Unseal" --- with deliberately different names than crypto/cipher/Block's "Encrypt" and "Decrypt", because they're doing something different.

What should I use? I'd be extremely happy to do the Right Thing. I linked symcrypt and posted here because I am hoping someone can point me to it.

> You're exposing an interface over Go's AEAD primitives, but not letting users actually provide authenticated data.

I really don't understand what you mean by "not letting users actually provide authenticated data". Here, in this test, I show how if you encrypt some secret for one user (the associated data is the Owner), you can only decrypt it if you provide the same associated data (the same Owner). https://github.com/peterldowns/symcrypt/blob/c220f7767fa6c1a...

peterldowns··on What the heck is AEAD again?
If you're interested in doing AEAD with the current best-practice algorithms in golang, you might get inspiration from my work-in-progress symcrypt package. I'm not a cryptographer and you shouldn't trust me when I say it works correctly — but it's basically just a small, correct, wrapper around the chacha20poly1305 code in the golang standard library. It has the slight advantage of using different types for the plaintext and the associated data (here called Owner, because I use it to store API keys owned by specific

If you squint at the example usage in the tests, it's basically the API that the blogpost describes.

https://github.com/peterldowns/symcrypt/blob/main/symcrypt_t...

As an aside, I'm always curious to understand why the encryption people say "never roll your own crypto" but then also ship confusing APIs without clear usage examples. For instance, check out the golang chacha20poly1305 docs:

https://pkg.go.dev/golang.org/x/crypto/chacha20poly1305

peterldowns··on Ask HN: What are you working on? (April 2025)
I've been working on some structured OCR tools recently (in the context of reading resume pdfs and allowing much more useful search filters over them than our ATS system allows) and I've found Gemini with structured outputs capable of doing a fantastic job. I'm curious, do you have any rough pointers for how to do this self-hosted?
peterldowns··on How long does it take to create a new habit? (2015)
Funny, intentional routine / habit-formation has been the most effective way to help manage my ADHD. Sorry to hear that it's been impossible for you. For anyone else reading this, I would still recommend paying attention to your routine and seeing if you can help yourself by making adjustments.

> It almost passively happens. ADHD people do not.

I don't find this to be true for me or many other ADHD friends.

← PreviousPage 5 of 13Next →