HNHacker News
TopNewBestAskShowJobs

alecthomas

464 karma · joined March 2, 2008

http://twitter.com/alecthomas http://swapoff.org http://github.com/alecthomas alec@swapoff.org

[ my public key: https://keybase.io/alec; my proof: https://keybase.io/alec/sigs/EwhDB5ZFYHetGQT4QBxryMKudydFlHx6vfI2ZbYaXTY ]

hnchat:M7diobfazxWsK0TZ9aVm

submissionscomments
alecthomas··on Protobuf has LSP support
What an oddly arrogant post, there's been a Protobuf LSP available for years: https://github.com/lasorda/protobuf-language-server
alecthomas··on I found 10k GitHub repositories distributing Trojan malware
That doesn't seem likely, given that there's a reference from February 2025 documenting the pattern.
alecthomas··on Ask HN: What was your "oh shit" moment with GenAI?
What was wrong with it?
alecthomas··on ICE Awards $25M Iris-Scanning Contract to Bi2 Technologies
> There is a vast, hugely funded, and incredibly adept propaganda machine aimed at about half the country.

There are propaganda machines directed at everyone.

> And no, I don’t think “my side” would be immune to a similar machine speaking the language we like to hear, but I just think that hasn’t happened (yet)

It seems incredibly naive to believe that propaganda in this age isn't utilised by all "sides". My base assumption for any information, particularly from mainstream media, is that it's biased one way or the other.

alecthomas··on Prolog Coding Horror
I found it very amusing :)
alecthomas··on Prolog Coding Horror
I've never seen Prolog used at all in the wild, but OPA (and its ancestor, Datalog) are fairly common.
alecthomas··on Diatec, known for its mechanical keyboard brand FILCO, has ceased operations
Unfortunate! I have a bunch of keyboards and a FILCO is my favourite, my daily driver. It just feels ... solid.
alecthomas··on Instant 1.0, a backend for AI-coded apps
From skimming the linked PR it looks like it's all been open source, but has been tightly coupled to their deployed instance. The PR appears to be decoupling things completely by making all hard coded values configurable.
alecthomas··on Google releases Gemma 4 open models
Oh this page is great! I just released AIM [1] which is a tool that generates verified SQL migrations using LLMs, and I tested a bunch of models manually. I think I'll just link to your page too!

[1] https://github.com/alecthomas/aim

alecthomas··on //go:fix inline and the source-level inliner
Someone else said this below...

> Go designers distinguish between Go language as defined by Go spec and implementation details. > //go:fix is something understood by a particular implementation of Go. Another implementation could implement Go without implementing support for //go:fix and it would be a fully compliant implementation of Go, the language. > > If they made it part of the syntax, that would require other implementations to implement it.

...I'm not sure I buy that argument TBH.

alecthomas··on //go:fix inline and the source-level inliner
These are called directives [1], and are treated as metadata by the compiler.

[1] https://pkg.go.dev/go/ast#Directive

alecthomas··on Finland detains ship and its crew after critical undersea cable damaged
That is...disturbing.
alecthomas··on Irrlicht Engine – a cross-platform realtime 3D engine
https://hazelengine.com/ is another
alecthomas··on From M1 MacBook to Arch Linux: A month-long experiment that became permanenent
Which $600 model has an OLED screen?
alecthomas··on Lottie is an open format for animated vector graphics
Why is GIF worse (I'm not a frontend developer, so I'm genuinely curious)?
alecthomas··on 'I found your dad': The mystery of a missing climber
They were not. The daughter is 31 and her father went missing 22 years earlier.
alecthomas··on Ghostty 1.0
Preach!
alecthomas··on New Google Sheet on half of 13.6" MacBook Air screen is fully covered by popups
Peak enshittification.
alecthomas··on Go Protobuf: The New Opaque API
This is probably what you want: https://github.com/planetscale/vtprotobuf
alecthomas··on gRPC: The Ugly Parts
Connect [1] is one and it's fantastic. The Go implementation in particular is much nicer than grpc-go.

[1] https://connectrpc.com/

alecthomas··on Full text search over Postgres: Elasticsearch vs. alternatives
And that's why we pay AWS the big bucks.
alecthomas··on Did GitHub Copilot increase my productivity?
This was an illuminating comment because I think I finally understand why people have wildly varying experiences with CoPilot.

I think if you regularly use CoPilot to write entire functions or use its prompt mode, you will spend more time verifying its output is accurate than it would save writing the code manually. If instead, you use it iteratively via autocomplete to write small fragments of code, a line or two at a time, its trivial to verify its correctness, and it will save you a good 20-30 seconds at a time, adding up to large savings over time.

I exclusively do the latter, so I find it incredibly useful. The few times I've tried using the prompt mode, or comment-driven code generation, it's been very average or awful.

alecthomas··on Secure Randomness in Go 1.22
For those unaware, gosec (and by extension golangci-lint) will warn about uses of `math/rand`

https://github.com/securego/gosec/blob/d3b2359ae29fe344f4df5...

alecthomas··on Leaving Rust gamedev after 3 years
Damn, that second one is excruciating to read. I wonder if they're aware of how they put people off the Rust ecosystem with their rabid defensiveness.
alecthomas··on Write OpenAPI with TypeSpec
I would be absolutely stunned if anyone, ever, has described OpenAPI as "beloved". It does its job, but that's about the best you can say about it.
alecthomas··on Paris preserves its mixed society by pouring billions into public housing
Manhattan has a population density of 28,154 per sqkm according to Wikipedia?
alecthomas··on Happy Birthday Lemmings
Just wanted to say I loved The Lost Vikings, thanks for many good memories :)
alecthomas··on Almost every infrastructure decision I endorse or regret
https://world.hey.com/dhh/why-we-re-leaving-the-cloud-654b47... is another good one. There are a few different posts on it scattered around:

https://world.hey.com/dhh/we-stand-to-save-7m-over-five-year...

https://world.hey.com/dhh/our-cloud-exit-has-already-yielded...

Related, looks like X is doing similar: https://twitter.com/XEng/status/1717754398410240018

alecthomas··on Tuna species popular in sashimi and poke bowls in sharp decline
This paper [1] (PDF) indicates it is likely a complex interaction between multiple parts of the ecosystem. One example is that large cod are apex predators, competing with seals and when those cod were removed, seal populations increased, and predation on small cod increased correspondingly.

[1] https://oceansfirstjournal.files.wordpress.com/2016/08/ocean...

alecthomas··on Tuna species popular in sashimi and poke bowls in sharp decline
Sadly that is how fishing works. Wild Salmon is endangered in many locations including the US [1] and UK [2], for example.

It does also occur that popluations become so low that they can't recover. Atlantic Northwest Cod are the most obvious example, still not having recovered from overfishing in the latter half of last century [3].

[1] https://time.com/6199237/is-farmed-salmon-healthy-sustainabl... [2] https://wildfish.org/latest-news/main-uk-populations-of-atla... [3] https://en.wikipedia.org/wiki/Collapse_of_the_Atlantic_north...

Page 1 of 7Next →