Live data from Hacker News

C vs GO

crypto.stanford.edu

1–10 of 184 posts

Re: C vs GO

#3
Damn. I can't comment on the Go listings, but could he make his C code any less readable?

What's the point of making the code so dense anyway? Without syntax highlighting I gave up pretty quickly.

Re: C vs GO

#4
Interesting comparisons.

However (not slating Go, which I think is excellent), I genuinely think Go is going to go the same way as plan9 eventually. Unfortunately, its predecessor (C) is good enough, much as UNIX was good enough compared to plan9.

Re: C vs GO

#5
I can't do system programming using Go on a platform for which there is no compiler. There is probably a reasonable C compiler for every platform in existence out there.

Re: C vs GO

#6
post #4

Interesting comparisons. However (not slating Go, which I think is excellent), I genuinely think Go is going to go the same way as plan9 eventually. Unfortunately, its predecessor (C) is good enough, much as UNIX was good enough compared to plan9.

The big win for go over c is the goroutines - cheap and easy multithreading built right into the language.

Re: C vs GO

#7

I can't do system programming using Go on a platform for which there is no compiler. There is probably a reasonable C compiler for every platform in existence out there.

Right now there's Go compilers for Windows, Mac and Linux. I'm sure others will follow soon.

Re: C vs GO

#8

I can't do system programming using Go on a platform for which there is no compiler. There is probably a reasonable C compiler for every platform in existence out there.

Well, back in the days it was pretty much the same thing for C. When someone needed to target a platform it used to mean writing a compiler for the said platform.

Re: C vs GO

#9
post #6
post #4

Interesting comparisons. However (not slating Go, which I think is excellent), I genuinely think Go is going to go the same way as plan9 eventually. Unfortunately, its predecessor (C) is good enough, much as UNIX was good enough compared to plan9.

The big win for go over c is the goroutines - cheap and easy multithreading built right into the language.

I agree entirely - they are great, but in all the Go I've written (which totals about 50kloc so far as a porting project), I haven't actually used them past anything I would have done with zmq in C.

Re: C vs GO

#10

I can't do system programming using Go on a platform for which there is no compiler. There is probably a reasonable C compiler for every platform in existence out there.

Probably, but realize that at first this wasn't true. Go needs time to grow, just as C grew to different systems.

Looking at other systems such as Haiku shows that porting Go is encouraged, the only issues have to deal with assumptions in the build (in this case, I think /bin/env/bash is included everywhere, there's no global variable to change this definition from different OS types).

One day we may see a change in Go for different platforms, but I don't think it will prove to hinder that many people, only the niche groups. And for all intents and purposes, Go is built for practical application (!! Don't kill me !!), which systems programming on plan9 or haiku may not be considered "practical" at the moment.

EDIT: for clarity.

Post reply on HN