Hacker News new | ask | show | jobs
by drivebyacct2 5247 days ago
I have fun when I write code with Go. I love the syntax, type inference and standard libraries. I wrote a transcoding video http server with html frontend in like a hundred lines of code and it doesn't make my eyes bleed. I don't think Go needs to replace C++ but I certainly prefer it. I think there are tons of uses for C++ still obviously (least of which is Go's GC-nature), but I don't think C++11 makes redundant the space that Go can occupy.

I know it's personal preference (but frankly, so is the article's position) but that C++11 code looks terrifying to me, I'm still guessing at what several of the pieces of code do. A python programmer looked at my go-code and very easily deduced what it was doing and made good suggestions immediately.

edit: s/VM/GC

3 comments

Just a small nit, Go does not use a VM. It's compiled to machine code.
You're absolutely right, I thought GC and wrote VM.
Go is implemented in C and C++[1]. I often tell people that Tcl is a C library with a flexible configuration file. But comparing compactness of code when all you are really doing is invoking C is misleading.

[1] http://stackoverflow.com/questions/3327676/what-language-is-...

If only it supported a platform my clients actually use.
I assume you mean Windows?

http://code.google.com/p/go-wiki/wiki/WindowsSupport

Builds track weekly and with Go 1 coming up, it's a moot issue anyhow.

I was more thinking iOS and Android. Though I haven't investigated weather or not it could use the NDK.
Ah, my mistake. I know that you can build ARM binaries with Go, you ought to be able to invoke those from the NDK.

/r/golang had a link to this a while back, re: Go on iOS: https://groups.google.com/group/golang-dev/browse_thread/thr...

Looks like the iOS port requires a bit of work on cgo support for arm/linux before a proper iOS app can be made. Without the cgo shim it seems the app can't run more than 10 seconds, though the benchmarks are quite good.

Thanks I hadn't realized they had gotten so far.