A full TCP/IP stack in under 200 LoC (and the power of DSLs)
1–10 of 21 posts
Re: A full TCP/IP stack in under 200 LoC (and the power of DSLs)
#2Re: A full TCP/IP stack in under 200 LoC (and the power of DSLs)
#3Re: A full TCP/IP stack in under 200 LoC (and the power of DSLs)
#4Downright impressive. I'm implementing the TCP/IP stack for my OS at the moment, and it's sitting at about 400 lines before TCP (ethernet, IP, DHCP, and ARP). Definitely going to see how I can improve it after this.
That's impressive. Are you writing your OS for study purposes or you have something special in mind? I am interested in knowing as I am planning to do the same and might want to consult you.
Re: A full TCP/IP stack in under 200 LoC (and the power of DSLs)
#5Downright impressive. I'm implementing the TCP/IP stack for my OS at the moment, and it's sitting at about 400 lines before TCP (ethernet, IP, DHCP, and ARP). Definitely going to see how I can improve it after this.
Hi Daeken, That's impressive. Are you writing your OS for study purposes or you have something special in mind? I am interested in knowing as I am planning to do the same and might want to consult you.
If you want to talk more about it or OS dev in general, feel free to ping me on IRC (Daeken on freenode) or on AIM (bloomfilter).
Re: A full TCP/IP stack in under 200 LoC (and the power of DSLs)
#6Downright impressive. I'm implementing the TCP/IP stack for my OS at the moment, and it's sitting at about 400 lines before TCP (ethernet, IP, DHCP, and ARP). Definitely going to see how I can improve it after this.
Let me add that most of his work was for TCP/IP over serial ..
Re: A full TCP/IP stack in under 200 LoC (and the power of DSLs)
#7There are Python and Ruby implementations available. You can play with OMeta here: http://tinlizzie.org/ometa/
Re: A full TCP/IP stack in under 200 LoC (and the power of DSLs)
#8Interview question: what's the important thing TCP provides over UDP?
Fail answer: I don't know.
Push answer: Reliability.
Win answer: Congestion control.
Re: A full TCP/IP stack in under 200 LoC (and the power of DSLs)
#9Earlier quoted context omitted.
Hi Daeken, That's impressive. Are you writing your OS for study purposes or you have something special in mind? I am interested in knowing as I am planning to do the same and might want to consult you.
There's a post about the background and motivation for the OS (Renraku) here: http://daeken.com/renraku-future-os If you want to talk more about it or OS dev in general, feel free to ping me on IRC (Daeken on freenode) or on AIM (bloomfilter).
Re: A full TCP/IP stack in under 200 LoC (and the power of DSLs)
#10Yes, TCP/IP is damned simple if you model it as a trivial lock-step protocol. And this is a slick little piece of code. But it has nothing whatsoever to do with the 10,000+ lines of code that modern operating systems deploy to allow hundreds of competing TCPs to figure out how to share a link. Interview question: what's the important thing TCP provides over UDP? Fail answer: I don't know. Push answer: Reliability. Wi…
I thought there were only a handful (Tahoe, Reno, Vegas, New Reno et al) of popular algorithms for the congestion control bit but it's all still TCP as specced in RFC 2581, no?
From where does all the complexity come?