2 ms·
Very cool! Making C integrations available with nice syntax and managed memory is such a huge win for Python. This POC glues together a hashmap implementation,
by WJW 6y ago
Very cool! Making C integrations available with nice syntax and managed memory is such a huge win for Python. This POC glues together a hashmap implementation, async event loop and redis protocol parser (all in C) into a very readable (and quite performant) program. You could probably add pub/sub support in another 50 lines as well, since asyncio is already present.
- ttul 6y agoI appreciate the example code. I didn’t know that asyncio had a Protocol class that you can so easily just extend to make stuff like this. I’m saving this away for future work.