3 ms·
“If you wish to make an apple pie from scratch, you must first invent the universe” – Carl Sagan It's interesting to see what different people mean when they s
by paxys 4y ago
“If you wish to make an apple pie from scratch, you must first invent the universe” – Carl Sagan
It's interesting to see what different people mean when they say "from scratch". In this case the lowest abstraction is (what seems to be) Python's TCP library.
- rabuse 4y agoIt's like the people who "built a search engine from scratch", or "built a web browser from scratch". It's as simple as pulling a Chromium repo, or plugging into Bing's API!
- marginalia_nu 4y agoOof, right in the Brave.
- mypalmike 4y agoA "server from scratch" for a protocol typically means implementing the application level protocol, as is the case here.
- fenesiistvan 4y agoActually the websocket specification is so simple, that any novice developer should be able to easily implement it by just following the RFC (on top of any TCP library)
- throwaway0asd 4y agoYes and no. There are precision considerations to get this correct, such as allowing interpolation of control frames or fragmentation or how tightly to write frames for maximum performance without collision. These things aren’t so immediately simple and require a bit more effort. But you are correct in that websocket support can be written directly on top of tcp (without http) for greater performance.