Re:Pydis – Redis clone in 250 lines of Python, for performan...
by VWWHFSfQ on Sunday November 15, 2020 @07:51AM
(#25100786)
aren't they also written in c though
[ Parent
| on HN ]
Re:Pydis – Redis clone in 250 lines of Python, for performan...
by secondcoming on Sunday November 15, 2020 @07:53AM
(#25100797)
Ya. This whole post confused me. I thought it was claiming that the Python port was faster. It's too early in the morning.
Re:Pydis – Redis clone in 250 lines of Python, for performan...
by boramalper on Sunday November 15, 2020 @09:01AM
(#25101232)
That's taking it too far though isn't it? I mean, gcc is written in C++ too so what? :)
You might also be interested in my other comment: https://news.ycombinator.com/item?id=25101200
Re:Pydis – Redis clone in 250 lines of Python, for performan...
by rfoo on Sunday November 15, 2020 @10:28AM
(#25101885)
While what you said is true in general, I believe it is debatable in this case, as Redis (at least the subset implemented in this experiment) is something very very special, it is essentially a hashmap attached to the network. There aren't much stuff left if you offload the "hashmap" part and the "attached to the network" (I/O + protocol parser) part. In other words, in this case the hashmap implementation itself is the business logic of your application.