News for hackers. Stuff that matters.
Re:Cross compilation just got better in Go 1.5 by bsaul on Monday March 02, 2015 @07:36PM (#9135421)
I'm really looking forward to see more tools ported to go. The simplicity of copy/paste deployment is really something you don't realize until you've experienced it.

Now, the simple idea of installing python and dependencies then doing pip install for wal-e installation, made me search for an hour on git in hope for a standalone golang binary.

Re:Cross compilation just got better in Go 1.5 by rtpg on Monday March 02, 2015 @10:50PM (#9136000)
How well does this work in practice? I mean for a web server don't you still have to hook up _something_ in the server (at least to start up the binary)?

I mean in _theory_ setting up a Django webserver is just a ./manage.py runsrever but in practice there's a lot of stuff to fix up

Re:Cross compilation just got better in Go 1.5 by TylerE on Monday March 02, 2015 @11:34PM (#9136116)
Just use something like supervisord: http://supervisord.org/

Super easy to setup - way easier than manually writing init scripts - and it'll handle things like auto-restarting the process if it dies (if you want it to).

It also supports dependency chaining (e.g. before starting the web service, start the DB)

Re:Cross compilation just got better in Go 1.5 by rebelnz on Tuesday March 03, 2015 @12:54AM (#9136316)
I concur - just set up a couple of sites (written in go) and use Supervisor - its a nice tool and pretty intuitive. Using conf file to specify run app as particular user, set environment variables, logs, autostart etc.. - good to have in one place.
Re:Cross compilation just got better in Go 1.5 by wtf_is_up on Monday March 02, 2015 @11:49PM (#9136159)
Yeah. I use systemd if the target env already has it, otherwise supervisord does a fine job.
Re:Cross compilation just got better in Go 1.5 by bsaul on Tuesday March 03, 2015 @02:22AM (#9136502)
Go includes a really good http lib that you can use to handle incoming http connexions. So really, my whole deployment for now is one apt-get for postrges, a golang binary and one json file for configuration, period.

For the service itself i wrote a basic init.d file, but i'll probably use something better ( i see supervisor mentionned, i'll try that).

Re:Cross compilation just got better in Go 1.5 by mamcx on Monday March 02, 2015 @10:41PM (#9135977)
That is the same experience with Delphi.

Is weird is not more popular (not just Delphi/pascal, but the idea of easy copy/paste deployment)...

Re:Cross compilation just got better in Go 1.5 by girvo on Tuesday March 03, 2015 @01:44AM (#9136415)
One could make an argument that with PHP, copy-paste deployment is popular. Of course, it's not quite the same thing, as you'll need Apache/etc. setup, however that is one of PHP's strengths. It's good to see another language doing something similar, but in a nicer, far more performant way: specifically for web development, the way Go does stuff is brilliant in my opinion.
Re:Cross compilation just got better in Go 1.5 by mamcx on Wednesday March 04, 2015 @02:52PM (#9146873)
Ah, I was not clear. I mean copy/paste without the need of a runtime. With Delphi (go?) you just ship the exe (and can even put inside it the resources).

Having a kind of packaging for shipping is more or less popular now...

Re:Cross compilation just got better in Go 1.5 by bkeroack on Tuesday March 03, 2015 @09:30AM (#9137772)
In theory it's also true of ASP.NET. You have a magic folder of CLR-compiled binaries you drop into the IIS site root folder and it "just works" (or doesn't, as the case may be).
Re:Cross compilation just got better in Go 1.5 by mbell on Monday March 02, 2015 @11:57PM (#9136186)
It's quite common in the Java world to build a 'fat jar' which is the same idea, all dependencies other than the JVM itself in a single file.
Re:Cross compilation just got better in Go 1.5 by pjmlp on Tuesday March 03, 2015 @04:59AM (#9136942)
It is pretty common on Windows and Mac OS X worlds, but it seems not so in GNU/Linux.
Re:Cross compilation just got better in Go 1.5 by domrdy on Tuesday March 03, 2015 @04:44AM (#9136882)
If your site does not have a single static or template file, this is true. I agree that the binary is nice but scping it to the server and calling it a day still doesn't work.
Re:Cross compilation just got better in Go 1.5 by icebraining on Tuesday March 03, 2015 @05:58AM (#9137081)
Re:Cross compilation just got better in Go 1.5 by fortytw2 on Tuesday March 03, 2015 @08:52AM (#9137597)