3 ms·
Here are the 58 open source cloudflare projects written in Go: https://github.com/cloudflare?q=&type=source&language=go https://github.com/cloudflare?q=&type=s
by CameronNemo 7y ago
Here are the 58 open source cloudflare projects written in Go:
https://github.com/cloudflare?q=&type=source&language=go https://github.com/cloudflare?q=&type=source&language=go
Compared to the 11 projects they have released in Rust:
https://github.com/cloudflare?q=&type=source&language=rust https://github.com/cloudflare?q=&type=source&language=rust
- steveklabnik 7y agoYes, we (Cloudflare) use much more Go than Rust. But we do use a lot of both. There are teams that work exclusively in either language, there are teams that do none, and there are teams that do both. (My team actually uses Go, and almost ended up using some Rust, but decided in the end not to, for good reasons.)
- CameronNemo 7y ago>decided in the end not to, for good reasons Care to elucidate?
- steveklabnik 7y agoContrary to what you'll hear a lot of folks say on the internet, there are use cases where Go and Rust overlap. My team has a lot of experience in Go, but not much in Rust. It would be useful to gain some experience, as Rust is growing in the org, and we may need to contribute to some Rust codebases in the future. We needed to start a new service, and there was an initial prototype of the beginning of that written in Rust. Then, the pandemic happened. This means priorities shift. It makes more sense to not try to learn new things while trying to ship new things when there's so many other things going on. Additionally, it was going to be a bit harder to do it in Rust because there were already some useful code lying around in Go for some things that we'd have to port. I am a PM these days so I have no real bearing on these decisions, but I support my team in their choices, and told them that I would no matter what. I obviously love Rust, but it's not the end-all be-all of languages, and I think the right call was probably made.