Re:Why Discord is switching from Go to Rust
by _ph_ on Wednesday February 05, 2020 @04:43AM
(#22245384)
But this isn't a contradiction to the statement, that Go is implemented in Go. If you look at the sources of the Go implementation, the source code is 99% Go, with a few assembly functions (most for optimizations not performed by the compiler) and no other programming language used.
[ Parent
| on HN ]
Re:Why Discord is switching from Go to Rust
by calcifer on Wednesday February 05, 2020 @07:50AM
(#22246286)
That's not correct. The implementation of "make", for example, looks like Go but isn't - it relies on internal details of the gc compiler that isn't part of the spec [1]. That's why a Go user can't implement "make" in Go.
Re:Why Discord is switching from Go to Rust
by _ph_ on Wednesday February 05, 2020 @08:11AM
(#22246406)
In which language do you think is "make" implemented?
Re:Why Discord is switching from Go to Rust
by scott_s on Wednesday February 05, 2020 @10:38AM
(#22247651)
If I may interject: I believe you are both trying to make orthogonal points. calcifer's is trying to say that some features of Go are compiler intrinsics, and cannot be implemented as a library. You are making a different point, which is that those intrinsics are implemented in Go, the host language. Both statement can be true at the same time, but I agree that the terms were not used entirely accurately, causing confusion.