Re:Why Discord is switching from Go to Rust
by heinrich5991 on Tuesday February 04, 2020 @02:27PM
(#22239886)
There are a couple of hosting services hardcoded in Go. I believe it was about splitting the URL into the actual URL and the branch name.
[ Parent
| on HN ]
Re:Why Discord is switching from Go to Rust
by Nullabillity on Tuesday February 04, 2020 @02:58PM
(#22240246)
https://github.com/golang/go/blob/e6ebbe0d20fe877b111cf4ccf8...
Ouch, Go never ceases to amaze. The Bitbucket case[0] is even more crazy, calling out to the Bitbucket API to figure out which VCS to use. It has a special case for private repositories, but seems to hard-code cloning over HTTPS.
If only we had some kind of universal way to identify resources, that told you how to access it...
[0]: https://github.com/golang/go/blob/e6ebbe0d20fe877b111cf4ccf8...
Re:Why Discord is switching from Go to Rust
by reificator on Tuesday February 04, 2020 @06:04PM
(#22242100)
Thanks for the reference to prove me wrong.
Wow, that's sad. I'm glad it works seamlessly, don't get me wrong, but I was assuming I could chalk it up to defacto standards between the various vendors here.