Hacker News new | ask | show | jobs
by lossolo 3103 days ago
For all asking what OP is talking about, this is example of using epoll directly in Go:

https://gist.github.com/tevino/3a4f4ec4ea9d0ca66d4f

This is description (from dotGo2017) of how netpoll works in Go under the hood if anyone is interested:

https://www.youtube.com/watch?v=xwlo3xigknI

1 comments

I am not sure what exactly that gist tries to show. As it forces the go runtime to run each read call on a separated native thread, it just shows that one can use go to implement rather bad epoll antipattern.