Just a small nit, Go does not use a VM. It's compiled to machine code.
Re:C++11 Makes Competitors Go Rusty
by drivebyacct2 on Wednesday February 01, 2012 @04:05PM
(#3539921)
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-...
Re:C++11 Makes Competitors Go Rusty
by stonemetal on Wednesday February 01, 2012 @07:02PM
(#3540754)
If only it supported a platform my clients actually use.
Re:C++11 Makes Competitors Go Rusty
by drivebyacct2 on Wednesday February 01, 2012 @07:06PM
(#3540767)
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.
Re:C++11 Makes Competitors Go Rusty
by stonemetal on Wednesday February 01, 2012 @07:08PM
(#3540774)
I was more thinking iOS and Android. Though I haven't investigated weather or not it could use the NDK.
Re:C++11 Makes Competitors Go Rusty
by drivebyacct2 on Wednesday February 01, 2012 @07:12PM
(#3540786)
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.
Re:C++11 Makes Competitors Go Rusty
by stonemetal on Wednesday February 01, 2012 @08:59PM
(#3541089)
Thanks I hadn't realized they had gotten so far.
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