Live data from Hacker News

Mill: Go-style concurrency in C

millc.org

11–20 of 54 posts

Re: Mill: Go-style concurrency in C

#11

Anyone else getting a malware warning from the site's icon.ico file? Avast's not letting me access it on mac; could someone post a mirror that would get around the issue? Alternatively, can someone confirm/disconfirm that the ico's bad news?

There's no icon.ico file there afaics.

Re: Mill: Go-style concurrency in C

#13

Anyone else getting a malware warning from the site's icon.ico file? Avast's not letting me access it on mac; could someone post a mirror that would get around the issue? Alternatively, can someone confirm/disconfirm that the ico's bad news?

[deleted]

Re: Mill: Go-style concurrency in C

#15
Finally, something that purports to have Go-style concurrency that actually provides the equivalent of select{}!

Lots of things just provide chans, which are fancy thread-safe queues and are fairly easy to implement. Getting select{} right is the tricky (and powerful) part.

Re: Mill: Go-style concurrency in C

#16
post #15

Finally, something that purports to have Go-style concurrency that actually provides the equivalent of select{}! Lots of things just provide chans, which are fancy thread-safe queues and are fairly easy to implement. Getting select{} right is the tricky (and powerful) part.

Right, that's one of the main points. The other one is calling invoking C functions as coroutines.

Re: Mill: Go-style concurrency in C

#17

Anyone else getting a malware warning from the site's icon.ico file? Avast's not letting me access it on mac; could someone post a mirror that would get around the issue? Alternatively, can someone confirm/disconfirm that the ico's bad news?

Yeah I'm getting it too, it doesn't like favicon.ico and main.css.

Re: Mill: Go-style concurrency in C

#18
post #15

Finally, something that purports to have Go-style concurrency that actually provides the equivalent of select{}! Lots of things just provide chans, which are fancy thread-safe queues and are fairly easy to implement. Getting select{} right is the tricky (and powerful) part.

> Finally, something that purports to have Go-style concurrency that actually provides the equivalent of select{}!

About a week ago I released a library to access Go's channels and goroutines (as implemented by gccgo) from C: https://github.com/stefantalpalaru/golib

It has Go's runtime select.

Re: Mill: Go-style concurrency in C

#19

Would this be sort of like libthread on Plan 9/plan9port? But a bit nicer? Anyway, really cool project. Though I'm kind of bummed that libthread is as obscure as it is...

>> Though I'm kind of bummed that libthread is as obscure as it is...

I am as well. That's the coolest thing about Go imo, Go basically distills down a lot of the coolest stuff from Plan 9, and took it to the 'masses'. Edit; that just my impression, I'm not a Go user.

It would be very useful to have syntactic sugar over coroutines and channels in C. There are quiet a few coroutine libs around, but having it in the language would be compelling.

Re: Mill: Go-style concurrency in C

#20
post #15

Finally, something that purports to have Go-style concurrency that actually provides the equivalent of select{}! Lots of things just provide chans, which are fancy thread-safe queues and are fairly easy to implement. Getting select{} right is the tricky (and powerful) part.

Is this specific to what Go offers, or is it just a CSP implementation? I can't tell from a glance at the page, but let's give credit where credit is due if it's coming from Hoare's ideas.
Post reply on HN