6 ms·
This is awesome! In the post you mention "For a couple hundred lines of code (not counting the entire user-mode Linux you’ll be pulling in from gVisor, HEY! Dep
by prattmic 6y ago
This is awesome! In the post you mention "For a couple hundred lines of code (not counting the entire user-mode Linux you’ll be pulling in from gVisor, HEY! Dependencies! What are you gonna do!) ..."
I'll note that while all of gVisor's user-mode Linux is in the same Go module, we've actually gone to decent lengths to keep the network stack logically separate from the rest of the user-mode Linux code.
So while go.sum might look a bit frightening, Brad's depaware shows that the extra code you pull in to binaries by using netstack is actually quite minimal: https://github.com/tailscale/tailscale/commit/5aa5db89d6a9a637e65c29d0db5c20b08bbcd8c4 https://github.com/tailscale/tailscale/commit/5aa5db89d6a9a6....
- ignoramous 6y agoWait... What is depaware? How do I use it to make sense of go.sum in my projects?
- prattmic 6y agoIt's here: https://github.com/tailscale/depaware https://github.com/tailscale/depaware See also: https://twitter.com/bradfitz/status/1303776199907311617?s=19 https://twitter.com/bradfitz/status/1303776199907311617?s=19
- mwcampbell 6y agoTo my amusement, my screen reader pronounced the project name as "deep aware", which I thought was appropriate, as in, it makes you deeply aware of your real dependencies.