logoalt Hacker News

dminiktoday at 9:49 AM3 repliesview on HN

> Goroutines are a far more tractable primitive for coding agents than threads

Goroutines are literally threads. Yeah, this really is a "go is my fav" article.


Replies

p2detartoday at 11:07 AM

As someone below said, they might be from programming perspective, but technically they are not. See GOMAXPROCS for more info.

That being said the whole `tractable primitive` thing used in the article sounds somewhat sloppy to me. I don't quite get it. Yeah, they could be easier for an agent to write than async/await, but threads are also trivial in that matter, and you'd still need a mutex with go routines.

bfivyvysjtoday at 9:57 AM

I use both go and python in my day job. The code that Sonnet produces for Go is much better than the Python it creates.

This could be because our go code is typically smaller more defined services but I don't really believe that since even the isolated python services are pretty spaghetti looking.

Retr0idtoday at 9:53 AM

Goroutines are not directly equivalent to threads.

show 1 reply