News for hackers. Stuff that matters.
Re:Re: Moving from PHP to Go and Back Again by littlestymaar on Tuesday December 12, 2017 @02:22AM (#15903645)
> And yet we keep writing Go.

Remember that Go is still a niche language, and the majority of programmers will never write a single line of Go.

There is a nice trend around Go nowadays, but most people are still writing PHP, Python or Java and Go isn't going to replace any of those.

Re:Re: Moving from PHP to Go and Back Again by klodolph on Tuesday December 12, 2017 @04:21AM (#15904121)
One could equally remember that Java was a niche language in 2000 used by a few dot-com startups, and even today it has not replaced C++, COBOL, or Fortran.

Languages don’t get replaced, people just don’t use them as often for new projects.

Re:Re: Moving from PHP to Go and Back Again by littlestymaar on Tuesday December 12, 2017 @09:49AM (#15905886)
> One could equally remember that Java was a niche language in 2000 used by a few dot-com startups, and even today it has not replaced C++, COBOL, or Fortran.

Ouch, the lack of historical accuracy of your comment is painful. Just a few points :

- Sun Microsystem was founded in 1982, it's far from being a dot-com start-up.

- Java was already ubiquitous by 2000, it was embedded in your phones, your credit cards, in your browsers thanks to applets etc.

- in fact it did replace COBOL or C++ for a wide number of applications, not everywhere but it still had a enormous impact on the industry. Netscape even went as far as re-implementing their whole browser in Java[1]. It was a bad idea, but that gives you an idea of the revolutionary impact Java had.

Go is nowhere near where Java was in 2000, by several orders of magnitude. It's not a criticism of Go, I don't even think we'll ever have a language as popular as Java in that time, because in the 90s there was a massive window of opportunity for a language that was at the same time : safe, portable, and licence-free.

[1]: https://www.cnet.com/news/netscape-sharpens-javagator-plans/

Re:Re: Moving from PHP to Go and Back Again by klodolph on Wednesday December 13, 2017 @10:42AM (#15914905)
Ouch, I should have explained that I was being sarcastic. Javagator was canceled in July 1998, so by 2000 it was thoroughly dead. Sun using Java no more makes it a major language than Google using Go does.

What I remember from the time was that C and C++ was everywhere, and Java was this weird new thing with a bunch of promises that ran slowly (because the JIT wasn't standard until later). There were a lot of people who were dismissive of Java, which was stupid, and there are a lot of people today who are dismissive of Go, which doesn't make sense to me either.

Re:Re: Moving from PHP to Go and Back Again by geodel on Tuesday December 12, 2017 @04:07PM (#15909482)
Well the size of industry was much smaller than it is today. Java kind of replaced or used in first place where people would have used C/C++ etc. Same is true for Go as lot of container/devops, cloud etc infrastructure is written in Go which would most likely be in Java.

Among the languages that came in last 10 years Go is most popular with exception of maybe Swift.

So compare to marketing juggernaut Java with billions sunk in by leading enterprise vendors Go is nowhere. But among non corporate driven language Go is definitely on top.

Re:Re: Moving from PHP to Go and Back Again by littlestymaar on Wednesday December 13, 2017 @08:36AM (#15914075)
> Among the languages that came in last 10 years Go is most popular with exception of maybe Swift.

Go is indeed one of the most popular of the last 10 years, but I don't think it's the most popular one. Swift is way ahead (because of the iOS walled garden), and Typescript is probably more popular than Go (or at least in the same ballpark).

> But among non corporate driven language Go is definitely on top.

Go, «non corporate driven», really ? OK it's not «corporate-driven» like Java, but I don't think anyone would be using Go if Google wasn't behind it. I really think the impact of marketing in Go's success is bigger than its value-proposition (I'm not saying that Go doesn't have a value-proposition, I'm just arguing that marketing played a really big role in its adoption). Consider for instance the microscopic mindshare that Pony[1] has, despite being «Go from the 21th century» with a sound type system and a data-race-free concurrency model.

[1] https://www.ponylang.org/

Re:Re: Moving from PHP to Go and Back Again by klodolph on Wednesday December 13, 2017 @10:24AM (#15914769)
Marketing aside, people evaluate languages for their community. The lack of a community is something that can be fixed by marketing, but marketing isn't necessary to create it.

Pony is also pre-1.0, and it doesn't look much like Go to me.