Comment

Comment by chimeracoder

I don't want to turn this into a Go vs. Rust discussion, because the two languages are very different and have very different goals.

However, I want to question the claim:

> Go is also not particularly friendly to interface to external libraries written in C

which doesn't seem to be explained anywhere in the article, and jars with my understanding.

Go does play very well with C; cgo[0] makes this pretty straightforward.

Maybe there are specific things that the author is trying to do that they found difficult in Cgo, but I would say that Go does play fairly nicely with C; that was a design goal.

Here's a simple example of cgo in action: http://golang.org/doc/articles/c_go_cgo.html. As you can see, it's relatively straightforward and easy to use.

[0] http://golang.org/cmd/cgo/

parent chimeracoder 13 years ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton