3 ms·
I am not the author of the gist but quoting from it: "our work on a high performance NATS server in Go." Furthermore, the tests he shows are run using Go's test
by timtadh 14y ago
I am not the author of the gist but quoting from it: "our work on a high performance NATS server in Go." Furthermore, the tests he shows are run using Go's testing tool (which tests go code). Finally, he discusses "no use of defer" a Go language feature not in Ruby. So yes I believe it is an implementation in Go.
- randomdata 14y agoI agree with your analysis, but EventMachine does use a defer method to push long-running work off of the event loop.
- 4ad 14y agoDefer in Go means something very specific and completely different: http://golang.org/ref/spec#Defer_statements http://golang.org/ref/spec#Defer_statements http://golang.org/doc/effective_go.html#defer http://golang.org/doc/effective_go.html#defer
- randomdata 14y agoBut EventMachine#defer would make sense in this context, given that the Ruby version is written with EventMachine. That is why I noted it.