News for hackers. Stuff that matters.
Re:Zero-downtime restarts in Go by mortdeus on Monday March 25, 2013 @06:17PM (#5440068)
Your entire argument is invalid.

"I don't think this is a reasonable demand for startups or even medium sized businesses."

It was a recommendation. Go is a great investment, and while it may not have a "huge" market share, many of the most influential tech company's in silicon valley are starting to use Go.

https://code.google.com/p/go-wiki/wiki/GoUsers

And some of these companies are even writing/rewriting their spotlight core projects with Go.

https://code.google.com/p/go-wiki/wiki/SuccessStories

"Libraries cost time and money to produce"

Time yes, Money no. Developers may charge money to produce software, however there are lots of software projects out there that were written by developers who worked for free. Does a painter always paint with the intention to sell his/her work at a gallery showing? Maybe they just want to create something for other people to experience.

I view all software from this perspective, and I give alot of my time working on go boilerplate libraries and other opensource projects for free because I want to help empower developers to create real world solutions to real world problems without the nuance of having to "invent the wheel before being able to engineer a new automobile".

"and if you are relying on free volunteers, development will either be slow or buggy and likely both."

Pass.

"I remember when I tried to look into a MySQL library last month. The first one I tried wouldn't even compile. The 2nd one threw a connection error not when I issued the dial function, but when I tried a query on a fake IP."

Have you tried reading https://code.google.com/p/go-wiki/wiki/SQLDrivers, or... perhaps considering using one of these, http://godoc.org/?q=sql

Maybe consider this which looks considerably up to date. https://github.com/go-sql-driver/mysql

Your experience last month with Go may very well be irrelevant now. Ive been using Go for about a year now, and many things have changed within go's development ecosystem within that time period.

If you arent willing/capable of contributing to go by committing code, thats perfectly fine. However, atleast make sure that your issues with the language are actually still relevant before you discourage other developers from exploring the language themselves.

"If you want Go to succeed"

As if its likely to fail? Go has already successfully satisfied the language designer's desires that motivated the project's creation. They want to create a language that makes their programming environment more enjoyable and efficient when developing software at a scale Google operates at.

Unless some language comes along that is exceptionally better at solving the problems Go was design to solve, Go will remain a successful programming language for those who use it.

"get Google to start funding it more"

Are you kidding me? Google has some of the most well respected engineers in computational history working full time on Go. Google cant just walk into best buy and hire geek squad to work on Go. We are trying to reduce go's overall source code complexity so that we can not only maintain the code, but ensure we dont introduce bad language design mechanics as apart of the programming environment. We want to avoid the situation, years down the road., where we are faced with having to make a decision to either cope with a bad language mechanic or deal with it by introducing backwards incompatible changes that break gopher's code. Both options suck, and the only good option is to avoid the situation entirely by making sure we make the best design choices.

"or get used to having it grow organically like every other language."

Most languages dont grow organically. Most either grow all mutated and exponentially complex to adapt to changes in technology, or development either slows down or stops growing completely because the majority developers who used the language, moved on to something . Go on the other hand does grow organically, atleast it has so far. Everyday the project matures and issues we are frustrated with right now could be a faux problem because its already been fixed in go tip and you just need to rebuild the compiler.

http://swtch.com/~rsc/go11.html

I mean sure there are alot of bugs to fix and alot more than can be done to improve go's performance, but this is true for all software in general.

The reason go is a good investment because it has alot of good investors investing in it.

Re:Zero-downtime restarts in Go by codexon on Monday March 25, 2013 @09:06PM (#5440775)
I must have hit a nerve.

> The reason go is a good investment because it has alot of good investors investing in it.

A lot of good investors invested in MongoDB.

> Time yes, Money no. Developers may charge money to produce software, however there are lots of software projects out there that were written by developers who worked for free.

Have you ever been in a startup before? Spending months reinventing the wheel while competitors are working on business logic is a great way to set yourself permanently behind.

> As if its likely to fail? Go has already successfully satisfied the language designer's desires that motivated the project's creation.

Besides Vitess, what other high profile usage is there at Google? Not to mention they offloaded part of the implementation to Memcache because Go wasn't good enough.

> Are you kidding me? Google has some of the most well respected engineers in computational history working full time on Go.

You don't need Turing award winners to flesh out solid libraries. Go doesn't even have a precise GC and still won't have one by 1.1.

Re:Zero-downtime restarts in Go by pjmlp on Tuesday March 26, 2013 @03:11AM (#5441750)
> I must have hit a nerve.

No, you just got hit with the typical Go activism reply when someone mentions issues with the language.

Re:Zero-downtime restarts in Go by _ak on Tuesday March 26, 2013 @05:37AM (#5442101)
Issues? What issues? Most complaints about Go are really just "it doesn't contain my favorite language feature", "I heard the GC isn't even precise so it must suck", "it's too immature", "I couldn't get this library to work within 10 minutes so Go sucks", etc. pp., but people are simply unable to point to any actual pain points that hinder productive use of Go.
Re:Zero-downtime restarts in Go by ithkuil on Tuesday March 26, 2013 @09:20AM (#5443023)
I really love go, I try to use it whenever I can.

That being said, I still have the feeling that having to rewrite a lot of dummy boilerplate code because of lack of generic collections hinders my productivity.

I completely understand that introducing that in the language it's a pandora box, etc etc (not only because of compiler's complexity and compilation speed).

But still, I have to find a way around that, being DRY has obvious advantages (although depending too much on obscure magic can be a problem); it's not just a random language feature from my favorite language.

I'm trying to see whether https://github.com/droundy/gotgo helps

Re:Zero-downtime restarts in Go by _ak on Tuesday March 26, 2013 @11:05AM (#5443750)
> I still have the feeling that having to rewrite a lot of dummy boilerplate code because of lack of generic collections hinders my productivity.

Can you give any concrete code examples including a description what you would have liked differently?

Re:Zero-downtime restarts in Go by codexon on Tuesday March 26, 2013 @04:21PM (#5445812)
With your logic, the same argument could be applied to PHP.

The problem is that Go simply doesn't solve anything new. If Go contains your favorite language features but not mine, then why should I bother to use or hype it?

If you want lightweight concurrency with GC you could have gone with Scala, Erlang, or Haskell.

Re:Zero-downtime restarts in Go by _ak on Tuesday March 26, 2013 @05:43AM (#5442120)
> Besides Vitess, what other high profile usage is there at Google?

The piece of software that runs on dl.google.com, which serves millions of Chrome updates every day, is written in Go. The problem is: you're asking for Go success stories at Google, even though most of Google's internals will never be published. Why don't you just take a closer look at other companies' success stories and acknowledge them?

> Not to mention they offloaded part of the implementation to Memcache because Go wasn't good enough.

Huh, what? Using memcached means the technology you use isn't good enough, or what are you trying to suggest? Don't forget that the author of memcached is a core Go developer at Google, so I'd say they know what they're doing.

Re:Zero-downtime restarts in Go by bobbydavid on Tuesday March 26, 2013 @09:49AM (#5443199)
Can anyone explain why this was downvoted?
Re:Zero-downtime restarts in Go by codexon on Tuesday March 26, 2013 @04:08PM (#5445744)
I didn't downvote it, but it was downvoted for a good reason. He didn't spend much effort to understand a simple sentence.

http://code.google.com/p/vitess/wiki/ProjectGoals#Why_did_we...

> Go’s existing mark-and-sweep garbage collector is sub-optimal for systems that use large amounts of static memory (like caches). In the case of vtocc, this would be the row cache. To alleviate this, we intend to use memcache for the time being.

For a self-described systems level language this is ridiculous. I would like Go to replace C++ and Java, but false optimism won't make this happen.

Re:Zero-downtime restarts in Go by _ak on Tuesday March 26, 2013 @10:37AM (#5443547)
Because HN jumped the shark and is now basically Reddit in a different color theme.
Re:Zero-downtime restarts in Go by pjmlp on Tuesday March 26, 2013 @04:12AM (#5441867)
> Time yes, Money no. Developers may charge money to produce software, however there are lots of software projects out there that were written by developers who worked for free.

If the software was developed on company time, it maps to the developer's salary per hour times the amount of hours taken to develop it.

> Are you kidding me? Google has some of the most well respected engineers in computational history working full time on Go.

The same can be said for Wave, Reader and many other projects.

Re:Zero-downtime restarts in Go by cmccabe on Tuesday March 26, 2013 @01:15AM (#5441524)
Go is awesome, and I'm glad to see people are having success with it. I wouldn't worry too much about the haters. Every successful project attracts them (they wouldn't spend their time trolling unsuccessful ones).

I think that any startup that chooses Go will attract people who are passionate about their work. Paul Graham wrote about this in connection with Python, but I think it's equally true in this case. That kind of advantage is worth more than having a few extra libraries, most (although not all) of which can be whipped up in a week or two anyway.