Hacker News new | ask | show | jobs
by Sean-Der 1876 days ago
You made me curious about how large Pion is, 162k lines! I made sure to delete all test files first.

    sean@SeanLaptop:~/go/src/github.com/pion$ find . -type f -name '\*.go' | xargs wc
       47871  162998 1394063 total


pion/webrtc is the largest package with 58k lines. Every other package (ICE, DTLS, SCTP....) are all around 20k lines. It feels wrong that WebRTC is so large (and not pushed into sub packages) will for sure be digging into that for fun in the next few weeks :)
2 comments

There are:

- A lot of examples: https://github.com/pion/webrtc/tree/master/examples - A lot of tests - if you exclude `_test.go` and `examples/` you are down to ~58k loines, which is only ~3x bigger than the (much simpler!) ICE and SCTP packages.

With a naive exclude via grep -v '_test.go' and grep -v 'examples/*' we are down to:

   16180   58136  498113 total
thanks for the amazing work on Pion, seriously impressive stuff
Thank you! If you are ever need help or are interested in getting involved I am always around. https://pion.ly/slack