3 ms·
So, no Rust or Go for you? EDIT: I got it, I got it. Go has multiple implementations. Bad example.
by falcolas 7y ago
So, no Rust or Go for you?
EDIT: I got it, I got it. Go has multiple implementations. Bad example.
- eikenberry 7y agoGo has 2 implentations.
- CameronNemo 7y ago* cameronnemo laughs at gcc-go
- muricula 7y agoThree counting google go, gcc-go and llvm-go. Last I checked the latter two were quite incomplete.
- eikenberry 7y agoGcc-go lags behind, but is official and kept complete. Llvm-go is unofficial.
- muricula 7y agollvm-go is checked into the (recently unified) llvm repo now, so I think that it's official now. They do lag behind though.
- giancarlostoro 7y agoHonestly, I would expect compilers to lag behind the official Go compiler, unless the Go core maintainers were to release specs before they implement new features. It wouldn't do those projects good to just implement upcoming features that might not make it though.
- nnq 7y agoGo - OK, it has one implementation (open-source), but it's backed by one big player (Google) and used by many others... also the simplicity at core design decisions sound like the kind of choices that would make an alternative compiler easier to implement than for other languages Rust - pretty fast growing open-source community despite only one implementation... but yeah I'm sort of worried that Rust is a "hard to implement" kind of language with maybe a not high enough bus factor... similar worries for Julia too But tbh I'm not drawn much to either Go and Rust for other reasons - Go is too verbose for my taste, no way to write denser code that highlights the logic instead of the plumbing, and it has a "dumb" type system, Rust seems a really bad choice for rapid prototyping and iteration which is what I care about now. EDIT+: glad to know that Go has multiple implementations in fact, pardon my ignorance!
- hobofan 7y ago> with maybe a not high enough bus factor I'm assuming you don't mean the traditional bus factor, but one of alternative implementations? Rust (and from what I can tell after short research Julia at least partially too) has quite a big development team that is supported by many different companies with no benevolent dictator, so I don't see a big bus factor risk.
- karmakaze 7y agoI generally read bus factor as having few who fully understand a codebase written in said language so if they were to be hit by a bus you'd lose ability not easy to hire.
- karmakaze 7y ago[0] https://en.wikipedia.org/wiki/Bus_factor https://en.wikipedia.org/wiki/Bus_factor
- ChrisRackauckas 7y agoJulia actually has a pretty high bus factor in comparison to most other Github projects. This was demonstrated during Heather Miller's (of Scala Fame) talk at JuliaCon 2019 https://www.youtube.com/watch?v=b_743P8XuvA https://www.youtube.com/watch?v=b_743P8XuvA
- cultofmetatron 7y agorust is a fantastic language that helps me avoid a lot of problems in runtime but I will concur that its a terrible language for prototyping and its not trying to be. Its a language for building systems that need to be fast and reliable for years.
- jimbokun 7y ago"... but yeah I'm sort of worried that Rust is a "hard to implement" kind of language with maybe a not high enough bus factor... similar worries for Julia too" Which is fair, but they seem like the kind of language where the compiler or run time is the really important part of the language, so it might make sense to have multiple implementations. Rust without the lifetimes implementation, and Julia without the highly dynamic but high performance run time, aren't worth much.
- ainar-g 7y agoWhat? Go? gccgo: https://golang.org/doc/install/gccgo https://golang.org/doc/install/gccgo gopherjs: https://github.com/gopherjs/gopherjs https://github.com/gopherjs/gopherjs tinygo: https://github.com/tinygo-org/tinygo https://github.com/tinygo-org/tinygo gollvm (aka Gollum): https://go.googlesource.com/gollvm/ https://go.googlesource.com/gollvm/ llvm-go: https://llvm.org/svn/llvm-project/llgo/trunk/README.TXT https://llvm.org/svn/llvm-project/llgo/trunk/README.TXT
- weberc2 7y agoI'm genuinely curious (not disparaging) who is using any of these (except for tinygo and gopherjs, for which the use case is apparent and niche)? Does anyone use gccgo or llvm-go? And why?
- ainar-g 7y agoI like the flow of your question: “who is using any of these”… “except for the ones people actually use” :-P On a more serious note, in my personal experience, the GCC and the LLVM back-ends are generally much better at math- and computation-heavy workloads and worse at… everything else, basically. But that was a long time ago, when gccgo still used to spawn a thread for every goroutine, so my experiences are probably outdated. Also, back in the day the LLVM back-ends used to be the only way to get link-time optimisation with Go. The GCC back-end probably can do it by now. To answer your question directly, I don't know any large projects that use them, but they exist. Which means that there is an alternative. Unless Google goes full Oracle, that is.
- weberc2 7y ago> I like the flow of your question: “who is using any of these”… “except for the ones people actually use” :-P Yeah, it was kind of clumsily worded. I get why people use the ones that are the only options for their respective target platforms (browsers, microcomputers, etc). I don't understand the advantage to using compilers besides gc, although your comment provides some clarification. > To answer your question directly, I don't know any large projects that use them, but they exist. Which means that there is an alternative. Unless Google goes full Oracle, that is. My question wasn't whether or not there is an alternative, it was simply "who uses the alternatives and why?".
- ejmg 7y agorustc had at least one other major implementation, mrustc [0], but it appears that it fell out of maintenance earlier this year :/. Last I checked, it was capable of compiling releases of rustc well past 1.0. [0]: https://github.com/thepowersgang/mrustc https://github.com/thepowersgang/mrustc