<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Thu, Aug 6, 2015 at 12:58 PM, Ed Cashin <span dir="ltr"><<a href="mailto:ecashin@noserose.net" target="_blank">ecashin@noserose.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Responding to, '<span style="font-size:12.8000001907349px">With Ruby, I can say "It's on the machines, so I can use it"'...</span><div><span style="font-size:12.8000001907349px"><br></span></div><div><span style="font-size:12.8000001907349px">If you write a Ruby script, that script has to be deployed to the target where it will run, so that's one file being added that wasn't on the machines before.</span></div><div><span style="font-size:12.8000001907349px"><br></span></div><div><span style="font-size:12.8000001907349px">If you write a Go program and compile it, you get a statically linked executable (if you are using regular go), which is also one file that has to be deployed to the target where it will run.</span></div><div><span style="font-size:12.8000001907349px"><br></span></div><div><span style="font-size:12.8000001907349px">Either way, you have to add one file that wasn't there to the target machine. So if you don't install the Go build tools on the targets, the distinction isn't significant.</span></div><div><span style="font-size:12.8000001907349px"><br></span></div><div><span style="font-size:12.8000001907349px">This is an advantage Go has over a lot of other compiled languages. It avoids some of the dependency hell that motivated people to adopt Docker and containers. It's kind of ironic.</span></div></div></blockquote><div><br></div><div>Ed, sorry if I'm confused. If I compile a Go program and drop it on a server without any other Go tools, the program will run? That assumes it's not calling anything else, but something like "Hello world!"?<br><br></div><div>The C advantage is that you can pretty much assume the needed stuff is there. With Ruby, you have to install the interpreter. If you use the system's Ruby version you have to spend 3-5 lines of IRC chat explaining one more time why you aren't interested in updating to the latest Ruby on hundreds or thousands of machines, just so your simple script can run. <br></div></div><br></div><div class="gmail_extra">Leam<br clear="all"></div><div class="gmail_extra"><br>-- <br><div class="gmail_signature"><div><a href="http://leamhall.blogspot.com/" target="_blank">Mind on a Mission</a></div></div>
</div></div>