Better HN
topnewbestaskshowjobs
Log inSign up

alecthomas

464 karma · joined Mar 2, 2008 (18y ago) · 209 submissions

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

Submissions

comment 3mo ago · link · parent

What an oddly arrogant post, there's been a Protobuf LSP available for years: https://github.com/lasorda/protobuf-language-server

comment 5mo ago · link · parent

That doesn't seem likely, given that there's a reference from February 2025 documenting the pattern.

comment 5mo ago · link · parent

What was wrong with it?

comment 6mo ago · link · parent

> 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.

comment 6mo ago · link · parent

I found it very amusing :)

comment 6mo ago · link · parent

I've never seen Prolog used at all in the wild, but OPA (and its ancestor, Datalog) are fairly common.

comment 7mo ago · link · parent

Unfortunate! I have a bunch of keyboards and a FILCO is my favourite, my daily driver. It just feels ... solid.

comment 7mo ago · link · parent

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.

comment 7mo ago · link · parent

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

10.

Show HN: Procfile-compatible tool with hot reload, readiness, dependencies, etc.(github.com ↗)

2 points · by alecthomas · 7mo ago · discuss

11.

Show HN: Aim – AI-assisted verifiable SQL migration generator(github.com ↗)

2 points · by alecthomas · 7mo ago · discuss

comment 8mo ago · link · parent

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.

comment 8mo ago · link · parent

These are called directives [1], and are treated as metadata by the compiler.

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

comment 10mo ago · link · parent

That is...disturbing.

comment 1y ago · link · parent

https://hazelengine.com/ is another

comment 1y ago · link · parent

Which $600 model has an OLED screen?

comment 1y ago · link · parent

Why is GIF worse (I'm not a frontend developer, so I'm genuinely curious)?

comment 1y ago · link · parent

They were not. The daughter is 31 and her father went missing 22 years earlier.

19.

NPR, PBS Headlines in to End Taxpayer Subsidization of Public Broadcasting [video](youtube.com ↗)

4 points · by alecthomas · 1y ago · discuss

comment 1y ago · link · parent

Preach!

comment 1y ago · link · parent

Peak enshittification.

comment 1y ago · link · parent

This is probably what you want: https://github.com/planetscale/vtprotobuf

23.

Show HN: "mk" – one-liner make rules on the command-line

1 points · by alecthomas · 1y ago · discuss

comment 2y ago · link · parent

Connect [1] is one and it's fantastic. The Go implementation in particular is much nicer than grpc-go.

[1] https://connectrpc.com/

comment 2y ago · link · parent

And that's why we pay AWS the big bucks.

comment 2y ago · link · parent

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.

comment 2y ago · link · parent

For those unaware, gosec (and by extension golangci-lint) will warn about uses of `math/rand`

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

comment 2y ago · link · parent

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.

comment 2y ago · link · parent

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.

comment 2y ago · link · parent

Manhattan has a population density of 28,154 per sqkm according to Wikipedia?
1234567