29 ms·
> Currently Rust is about Go's age but nowhere close in usage. Citation? I see a lot of people talking about both, but not very many public projects in either.
by lmm 10y ago
> Currently Rust is about Go's age but nowhere close in usage.
Citation? I see a lot of people talking about both, but not very many public projects in either. Rust at least has a "killer app" on the way in the form of Servo, whereas I haven't heard of any user-facing programs in Go.
- mafribe 10y agoGo is the language in the LXC, Docker, containerisation space.
- sametmax 10y agoWhich is something I never understood. Since you are mainly wrapping OS API, why not take a higher level langage ?
- nickpsecurity 10y agoFor all the benefits of higher-level languages. Remember that the designers of C had to agree on every feature that went into Go: a language they co-designed for better programming experience & results. Wirth-style languages also compile ultra-fast for quick iterations.
- sametmax 10y agoMy question is really why not choose something really higher level ? Go is like stuck in the middle. If I need very low level, I'd choose rust. If I need high level, I'd choose Python. Go is kinda filling a weird niche between the two and I rarely find a case where I feel like it's the best choice.
- geodel 10y agoWhat language you have in mind?
- sametmax 10y agoAnything that is robust, dynamic, with a big ecosystem. Python, Ruby, whatever have you. You don't need raw speed since the OS API does most of the work, and the ease of programming would make it more productive. In the end, they added Python anyway for stuff like "compose", so I'm missing the point of using Go for this. The Go code is not even network bound, the ability to get multicore easily is not a bit advantage here since you spawn a new process anyway, so really, why ?
- geodel 10y agoGo has much lower memory usage, high throughput, std ssl/tls/http libraries, high performance GC and produce fully static binaries. I do not think Python/Ruby can provide required performance for containers, cluster scheduling, orchestration etc. Even Java with much higher perf compared to Python/Ruby is not suitable because of high memory usage.
- sametmax 10y ago> lower memory usage, high throughput [...] high performance GC Irrelevant, as most ressources will be consummed from underlying OS API. > std ssl/tls/http libraries So does Python and Ruby. But even if it didn't, you provide a package anyway. > produce fully static binaries You can do that with Python and nuikta. But there is need for it, since docker is provided as an msi/deb/whatever that take care of distribution. > high memory usage. On your xGb RAM server, the memory usage of your container is the least of your problem. Your DB will dwarf it, your app will dwarf it. Anything you put in your containers will take 100 times more memory.
- lmm 10y agoOCaml is my first thought in that space.
- mafribe 10y agoOcaml is a good choice, and Anil Madhavapeddy used it for his unikernel ideas. But Ocaml doesn't have strong backing any more. JaneStreet alone isn't enough.
- quodlibetor 10y agoDocker is go, and afaik has always been. https://github.com/docker/docker https://github.com/docker/docker
- ChristianBundy 10y agoDocker and Kubernetes are relatively popular, and both are written in Go.
- SloopJon 10y agoFWIW, Go and Rust are 16 and 43, respectively on the TIOBE index: http://www.tiobe.com/tiobe-index/ http://www.tiobe.com/tiobe-index/ A Github search turned up 2,658 Go repositories with more than 100 stars: https://github.com/search?l=go&q=stars%3A%3E100&type=Repositories https://github.com/search?l=go&q=stars%3A%3E100&type=Reposit... compared to 348 Rust repositories: https://github.com/search?l=rust&q=stars%3A%3E100&type=Repositories https://github.com/search?l=rust&q=stars%3A%3E100&type=Repos... Notably, Docker has more stars than Go itself. Edit: you may also be interested in IEEE Spectrum's interactive list of the top programming languages: http://spectrum.ieee.org/static/interactive-the-top-programming-languages-2016 http://spectrum.ieee.org/static/interactive-the-top-programm... With the default parameters, Go and Rust are 10 and 26, respectively.
- hajile 10y agoIt's also worth noting that you're a bit less likely to see rust users because the kind of software that wants rust instead of golang tends to be the kind that gets written by a large company with deep pockets and a preference for closed source repositories.
- kid0m4n 10y agoIf only Go was useful in building closed source products. Google must not have gotten the memo about Rust yet.
- coldtea 10y agoContrary to popular legend, Google is not particularly strong on Go use, and it's not "THE official language". It wasn't officially commissioned or officially adopted by Google to solve Google's coding problems as some believe. It was merely initiated by a small team in Google, as their proposal for solving Google-scale coding problems. And has never been mandatory for new Google projects etc. Go is ONE of the allowed languages, from what I know, but tons of stuff is written in Java, C++ and Python with no intentions of switching. All those years, only a few, and basically trivial with respect to Google's needs, use examples for Go have come out of Google-land (a proxy/balancer for MySQL used in YouTube, Google Downloads caching, etc).
- geodel 10y agoGo: https://github.com/golang/go/wiki/GoUsers https://github.com/golang/go/wiki/GoUsers Rust: https://www.rust-lang.org/en-US/friends.html https://www.rust-lang.org/en-US/friends.html Without counting Go usage roughly looks 10 times more than Rust.
- dozzie 10y agoInfluxDB and Prometheus are written in Go. Similarly, etcd.
- nnethercote 10y agoRust code is also going into Firefox, slowly for now, but it will speed up over 2017.