Hacker News new | past | comments | ask | show | jobs | submit login

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




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.




Join us for AI Startup School this June 16-17 in San Francisco!

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: