What happens if you write a TCP stack in Python? (2014)

zenincognito 19 points 2 comments November 12, 2026
jvns.ca · View on Hacker News

Discussion Highlights (2 comments)

selcuka

The article itself links to the previous HN discussion: https://news.ycombinator.com/item?id=8167546

yjftsjthsd-h

Neat. I was recently looking at doing something similar because I wanted to do awful things with ICMP, and hit upon using a TUN device to just have the kernel make up a network device that gets handed to userspace. Then you can just ping from your laptop to your python code without any fighting. (I mostly mention this because it's related, but the same should work with TCP)

Semantic search powered by Rivestack pgvector
3,874 stories · 35,194 chunks indexed