3 ms·
This comparison is rather unfair on C, where you have chosen to use a low level interface, against Go, where you have chosen to use a high level interface. It i
by alexchamberlain 15y ago
This comparison is rather unfair on C, where you have chosen to use a low level interface, against Go, where you have chosen to use a high level interface. It is irrelevant that these are the default interfaces - high level interfaces for sockets exist in C. You could even integrate into Nginx.
- pjmlp 15y agoThis is typical in the Go community. Usually the supposedly Go advantages are presented in a way, as if the same are not present in other languages.
- dhconnelly 15y agoThis is actually typical in most programming language communities that I've observed.
- drivebyacct2 15y agoThe author is up front about there existing more optimal and performant designs for python and C but remarks that this is a fast, easy, naive implementation. Who here doesn't appreciate those qualities or who here hasn't worked on a team where there life would have been easier if that one guy had a little bit harder time screwing things up?
- ootachi 15y agoCareful with that argument. The fast, easy, naïve implementation in Go is quite dangerous (not even memory safe), because he forgot to lock the map. Go made it easy to write an incorrect implementation of a key-value store...