Earlier quoted context omitted.
Once Go is installed, I can make a simple web app from scratch that displays parameters from the URL or request body in just over 95 seconds with Go, using only the standard library. I can cross-compile it for another OS and architecture, then deploy a single binary file without worrying about dependencies, dynamic linking, or segfaults. Try doing that in C/C++. Maybe a better comparison is to more systems-level appl…
You can get static linking in C/C++ with `gcc -static`.
Go 1.4 is released
101–110 of 265 posts
Re: Go 1.4 is released
#102Earlier quoted context omitted.
And now things just got interesting. I'll put my money on the availability of Go on Android being the catalyst for its future hockey stick growth.
I don't really see it - a language made for systems programming (read: non-application development) being used for developing Android apps? Or is there some other kind of Android development in mind, here?
Re: Go 1.4 is released
#103There is a new range syntax[1]. The release notes say it's rarely used, but makes code cleaner. In which cases would the syntax be useful? [1] https://golang.org/doc/go1.4#forrange
for range time.Tick(1 * time.Second) {
fmt.Println("tick")
}Re: Go 1.4 is released
#104Earlier quoted context omitted.
I don't really see it - a language made for systems programming (read: non-application development) being used for developing Android apps? Or is there some other kind of Android development in mind, here?
I think it was Rob Pike who later said he regretted using the term "systems programming" to describe Go. They never meant the phrase to mean purely operating system tools and programs (ie. not web applications or interactive end-user applications), which would be rather limiting. Instead, he said he said they meant it as a language for composing systems, as for example a typical SOA web site may be, or even for appli…
Meaning a few more operations exposed in unsafe.
The problem is that the average developers never saw Oberon line of languages or are unaware how much of libc is actually written in Assembly.
Maybe with Go 1.5 fully re-written in Go, it will be easier to sell this scenario.
Re: Go 1.4 is released
#105Earlier quoted context omitted.
You can get static linking in C/C++ with `gcc -static`.
Sort of. On Linux, libstdc++ depends on the NSS system which dynamically loads libraries to implement things like getpwent(). Last time I had to actually make a portable static executable (admittedly some years ago) this was a real problem, and it was easier to statically link everything except libstdc++, then ship a copy which was loaded using RPATH in the linker settings.
Re: Go 1.4 is released
#106And they actually stuck with their go generate design? What an unfortunate mis-step. Let the makefile's continue. I've seriously thought about moving to gccgo just to try and get a build system where I can actually inject dependencies on .go files builds again.
Re: Go 1.4 is released
#107Earlier quoted context omitted.
I don't really see it - a language made for systems programming (read: non-application development) being used for developing Android apps? Or is there some other kind of Android development in mind, here?
I think it was Rob Pike who later said he regretted using the term "systems programming" to describe Go. They never meant the phrase to mean purely operating system tools and programs (ie. not web applications or interactive end-user applications), which would be rather limiting. Instead, he said he said they meant it as a language for composing systems, as for example a typical SOA web site may be, or even for appli…
Re: Go 1.4 is released
#108Earlier quoted context omitted.
> Once Go is installed, I can make a simple web app from scratch that displays parameters from the URL or request body in just over 95 seconds with Go, using only the standard library. I can cross-compile it for another OS and architecture, then deploy a single binary file without worrying about dependencies, dynamic linking, or segfaults. Try doing that in C/C++. NodeJS runs on top of C++ :P
Yeah, he meant do it WITHOUT implementing an app server and a JIT for another language first. With std.
http://www.open-std.org/JTC1/SC22/WG21/docs/papers/2014/n424...
Re: Go 1.4 is released
#109Earlier quoted context omitted.
If you're using C/C++ and need the performance, look at Rust. Fairly expressive, good type system (and they figured out generics), and C++ like or better performance. All the power of manual memory control, with none of the downsides.
It's too complex, we're already have C++.
> There are no silver bullets with regards to safety in C/++ code; in order to achieve security, the programmer has to pay the price of being forever vigilant.
A lot of the complexity of Rust is for eliminating security pitfalls which are inherent in C/++.
Re: Go 1.4 is released
#110> The most notable new feature in this release is official support for Android. Using the support in the core and the libraries in the golang.org/x/mobile repository, it is now possible to write simple Android apps using only Go code. This is fantastic! Are there any example Android apps released by the Go team to help get started ?
And now things just got interesting. I'll put my money on the availability of Go on Android being the catalyst for its future hockey stick growth.