Hacker News new | past | comments | ask | show | jobs | submit login

With Oracle's Java lawsuits wondering if Microsoft has a chance to make a move and try to displace Java. It won't happen completely because it is the new COBOL but if they can deliver on performance and stability on Linux and other platform there might be a chance.

Go is making progress there, but those that want a more mature type system will probably appreciate C# more.




Not to sound arrogant. However I think Go (golang) is still in the hype wagon / cargo cult phase.

It's popular as in the "popular latest javascript UI/UX" sense. Not to diminish Go _extraordinary_ achievements, however it's still to early to say.

E.g. Ruby - used to be _mega_ popular, everything was Ruby at some point. Hype is over and it doesn't look too promising. Niche is taken and it stays there.


> Not to sound arrogant. However I think Go (golang) is still in the hype wagon / cargo cult phase.

I'm not going to comment on the "hype" point, since your probably right. I just wanted to mention that I found out the other day that the Go garbage collector doesn't free memory. So your process will never shrink in memory usage (on Linux it uses MADV_DONTNEED and on BSD&Solaris it used MADV_FREE -- which means that essentially the page of memory becomes an overcommitted page that doesn't exist anymore). But that still won't stop your kernel from killing it.

> It's popular as in the "popular latest javascript UI/UX" sense. Not to diminish Go _extraordinary_ achievements, however it's still to early to say.

> E.g. Ruby - used to be _mega_ popular, everything was Ruby at some point. Hype is over and it doesn't look too promising. Niche is taken and it stays there.


> I just wanted to mention that I found out the other day that the Go garbage collector doesn't free memory.

If you mean `free` as it's used in `C`, then I guess technically, it doesn't `free` memory, but I fail to see the practical difference between that and how it it releases memory back to the OS - which is does.

> So your process will never shrink in memory usage

I think you've been mislead. This statement is observably false.


> > I just wanted to mention that I found out the other day that the Go garbage collector doesn't free memory.

> If you mean `free` as it's used in `C`, then I guess technically, it doesn't `free` memory, but I fail to see the practical difference between that and how it it releases memory back to the OS - which is does.

Misusing memory overcommitment doesn't count as "freeing" memory. Sure, it happens to mean that the kernel frees the page and provides a new one in its place (which is a Linux-ism and isn't explicitly stated in the man page). MADV_DONTNEED has several quite big issues (it's worse than munmap in almost every category since it has to do an munmap immediately and then create a new page as well). The point is that the process still will get killed if overcommit_ratio is a sane value.

> > So your process will never shrink in memory usage

> I think you've been mislead. This statement is observably false.

Depends how you want to define "memory usage". I defined it implicitly as "sum of size of all mappings given to the process". In other words, how much is committed to the process. That number doesn't go down. RSS does go down, but I'm currently investigating what looks like Go not reusing "unused" pages properly.


If you think there is a problem, you should let the Go devs know about it. I still think all your claim are false.


> I still think all your claim are false.

Well, you can try running the following testcase:

% for i in {1..1000}; do docker run -dit --name shell_$i busybox sh; done

% for i in {1..1000}; do docker rm -f shell_$i; done

You'll notice that /proc/meminfo shows a large amount of overcommited memory. If you look at pprof output from the daemon, there is nowhere near that much memory being used (so it's not a goroutine leak or something like that). If you then re-run the first command the memory still rises, which shouldn't happen because it has ample unused heap space.

So yes, it's a real bug that I'm debugging.


> So your process will never shrink in memory usage

But it should at least stop growing (unless my understanding about non-moving GCs is off, which it could be).


> > So your process will never shrink in memory usage

> But it should at least stop growing (unless my understanding about non-moving GCs is off, which it could be).

As long as there isn't a bug in the GC :P. I'm currently debugging a Docker problem that looks like a bug in the GC, I'm not sure.


> Not to sound arrogant. However I think Go (golang) is still in the hype wagon / cargo cult phase.

Well, you came off sounding kind of arrogant. I'm not sure what this has to do with the discussion. There are many valid uses of java that can be done in go, regardless of its popularity. There are many valid uses of java that can not be replicated in go, regardless of its popularity. You can swap out that criticism with pretty much any language built in or after the 90s and it's still just as valid.

I mean, feel free to critique—it could very well be at its peak popularity and cannot take ANY MORE java marketshare—but this still requires argument.


Java is far far from the next COBOL. It is still my first choice when I want to choose a technology that will run for the next 20 years with minimal amount of code maintenance.


Seriously? That sounds like the perfect job for Common Lisp (which appears more or less set in stone in 2016, albeit without the usual concomitant stagnation, given its malleability).

Plus, in fact, I get the distinct impression that your second sentence describes what COBOL actually did for companies decades ago, so the first one makes it sound like a contradiction.


> It is still my first choice when I want to choose a technology that will run for the next 20 years with minimal amount of code maintenance.

So it is basically the next COBOL ;-)


Is that a joke? I can easily imagine that having been said about COBOL at some point. It's an honest instance of Poe's law.


Actually, while unorthodox, I think one could read that sentence so that it refers to COBOL; as in "COBOL is still my first choice..." -- implying java will never be as good/stable... ;-) (No, I do not think that's what gp meant -- unless you're right and it's meant as irony).


C# is not different enough to Java to warrant the effort. There would need to be a killer differentiator, something only C# can do, and Java can't. Cross-platform including iOS might be it, but it's a bit of a stretch. I don't see C# displacing Java where Java is currently used in server-side development.


Licensing could be enough alone. We're auditing everything we use for license issues because we don't have to get bit by the GPL and have to opensource all our proprietary software. Even if C# was noticeably worse (for some arbitrary definition or worse), if it had a more permissible license, that alone could draw people to it.

(Note: I don't know anything about the Java / C# licenses. This is just talking in general.)


> get bit by the GPL and have to opensource all our proprietary software

The tone here sounds very angry. You aren't "bit" by the GPL, you choose to participate in the usage of the license and the community of code that comes with it. It's not some unknown, nasty thing you need to constantly defend yourself against (as implied by "being bit" like it's a dog you need to watch out for everywhere).

"We're auditing everything we use for license issues because we activly choose not to participate in the GPL community and would rather abuse and profit from other people's good will" is closer to realitiy


It would be trivially easy for an engineer to add a GPL-licensed dependency to a project without realizing it, perhaps via a transitive dependency, thereby causing the company to be in breach of the GPL.

If you don't audit, you don't know if you are in breach of the GPL or not. Your corporate counsel will want you to audit. You can't reasonably take any action, including open sourcing your project or even posting code snippets on a company engineering blog, until you know which licenses you actually use.


Its about as trivial as for a web developer to accidentally use a proprietary image they found on the web, a game developer that use the unreal engine, or a marketing using someones music in a commercial.

Its quite common to find commercial copyright infringement in all of those (except for the unreal engine, since I don't know publicized case of that), and there are artists who earn a fair income by contacting infringes and demand payment or a cease and desist. I wouldn't however describe that as being bitten by the rightful author, but put the blame on the developer who is using someone else work without permission, especially if they their own business model is based on copyright.


> It would be trivially easy for an engineer to add a GPL-licensed dependency to a project without realizing it, perhaps via a transitive dependency, thereby causing the company to be in breach of the GPL.

Just as easily as it is for a designer to use a copyrighted work. The GPL isn't a boogieman, every project that's under the GPL says so. If a developer isn't mindful enough to realise that they shouldn't randomly copy-paste library dependencies without knowing anything about them isn't a very good developer.


Try running mvn:dependency-tree on any large enterprise Java project, and see what comes out. If you told me you were familiar with every single library in the output, I would not believe you.


Doesn't mvn show license information?


> If a developer isn't mindful enough to realise that they shouldn't randomly copy-paste library dependencies without knowing anything about them isn't a very good developer.

That's a logical fallacy called: No true Scotsman. In this case - Good developers can be good at some things but bad at other things, so there's absolutely zero correlation between "good/bad developers" and "people who remember/forget to think about licensing".


If you don't consider the GPL to be boogieman, how do you feel about predatory lenders and loan sharks? All of them are just agreements...right?

In a predatory lending/loan sharking scheme, the lender offers their product (money) to people who need it (borrowers) who must agree to extraordinarily high interest rates.

This seems very similar to the GPL since it's just a software agreement that includes extraordinary clauses for developer who "borrows" the product.


It's not just that corporate counsel will want you to audit. I worked at a company where I found a GPL violation and wanted to comply, but if we started complying with the GPL it would have shown that we knew that we previously hadn't been complying, so I was told to not comply. Ugh. Just for redistributing a couple binaries, there were no libraries involved.


A few days late on the response here, but I'm going for it anyway.

I was using "bit" colloquially, and my tone wasn't angry. We "choose not to participate in the GPL community" because we sell software, and if that software could be requested for free, we couldn't exactly stay in business trying to sell it. I have nothing against the GPL, and I'm pretty certain the management and rest of engineering don't either.

In fact, I/we aren't trying to abuse and profit form other people's good will. That's why we check the licenses of software/libraries we use: to respect the way in which it was licensed. We have to keep our software closed source, so we obey the licenses that could require us to make it open source.


>The tone here sounds very angry. You aren't "bit" by the GPL, you choose to participate in the usage of the license and the community of code that comes with it.

It's not like you had a _choice_ if there's software you want to use and it's only available as GPL.

You'd have only chosen if there were 3-4 license options for the same software, and you went with GPL willingly.


> >The tone here sounds very angry. You aren't "bit" by the GPL, you choose to participate in the usage of the license and the community of code that comes with it.

> It's not like you had a _choice_ if there's software you want to use and it's only available as GPL.

You can either write it yourself, don't implement that feature or comply with the GPL. The GPL would be a pretty bad copyleft license if companies could just ignore it because "we want to keep our stuff proprietary".

The authors of the software wanted to ensure that all users of their code would have perpetual freedom. Complaining about it without recognising their reason for using the GPL is quite a selective argument. They don't want you to use their code if it means that you'll take away your users' freedom.


Except that "perpetual freedom" for one group (users) also equates to "perpetual removal of freedom" for another group (developers).

It doesn't seem fair to mention one without the other, since the latter is the primary reason why many, many developers choose to not use the GPL.

Also, I don't see how the person who said they don't want to get "bit" by the GPL is "Complaining about it without recognizing" anything? To begin with, it seems completely subjective.

I can feel totally "bitten" by the fact that I only have one choice of cable company in my area, even though their monopoly is totally legal...but I didn't agree to any of it. Similarly, no developer really has a choice but to use GPL software if they want to live in the Linux neighborhood. (But they shouldn't complain according to you because they have the "choice" of going off on their own to re-build 20 years worth of core Unix utilities.)


> Except that "perpetual freedom" for one group (users) also equates to "perpetual removal of freedom" for another group (developers).

Only if you redefine the word "freedom". Both developers and users have the same four fundamental freedoms. The only difference is that the developers don't have the "freedom" to enslave their users. But that's like claiming that you don't live in a free society because you can't enslave people -- just because you don't have the "freedom to enslave others" doesn't mean that you don't have freedom.

> Similarly, no developer really has a choice but to use GPL software if they want to live in the Linux neighborhood.

Nobody has actually explained why this is a bad thing. Is it because "developers don't want their users to have freedom"? Many companies exist that sell GPL software, so it's not a monetary thing. And your cable company analogy is flawed because the GPL doesn't force you into a monopoly.

And, by the way, not all software in the "Linux neighbourhood" is under the GPL. So that's an unfair exaggeration (although I do honestly wish more of it was).

> But they shouldn't complain according to you because they have the "choice" of going off on their own to re-build 20 years worth of core Unix utilities.

If they don't want to contribute to a community that values user freedom, then they won't be welcome in that community. I don't understand why someone would be surprised by this.


> Only if you redefine the word "freedom".

No. The GPL removes my freedom to sell something that I've created.

> The only difference is that the developers don't have the "freedom" to enslave their users.

This is where I think your entire argument falls apart: Offering users the choice to buy my software is not enslaving them. If it is, then so is the GPL because it's a choice that users can buy into or not...just like the choice that the GPL offers to developers.

You can't have it both ways. If commercial software "enslaves" users by simply offering the users a choice to buy the software, then the GPL must also be enslaving developers by simply offering them a predatory contract.


> > Only if you redefine the word "freedom".

> No. The GPL removes my freedom to sell something that I've created.

That's patently false. Many companies (SUSE and RedHat come to mind) sell free software. The only difference is that you can't create a monopoly of experts in the software you wrote. The business model of free software works through selling support (such as L2, L3 and developer support that can implement features and fix bugs much faster than upstream would).

> This is where I think your entire argument falls apart: Offering users the choice to buy my software is not enslaving them.

The GPL allows you to sell software. That's not how free software works. I believe you may be confused by the word "free". In this context, it refers to freedom, not price. There are quite a few companies that sell free software, and it's disingenuous to claim that they don't exist.

> If commercial software "enslaves" users by simply offering the users a choice to buy the software

Proprietary software, and the choice to "buy software" has nothing to do with the free software movement. Again, free refers to freedom. There are several commercial free software companies.

Proprietary software enslaves users by making them helpless against a developer that may mistreat the user (and the user can't do anything about it).


> Proprietary software enslaves users by making them helpless against a developer that may mistreat the user (and the user can't do anything about it).

I find your propensity for double standards amazing. These so called "enslaved users" made a choice to buy into the developers proprietary software. It's the same exact thing as developers buying into the GPL.

So, if proprietary software is enslaving users, then the GPL is most definitely enslaving developers.

You can argue semantics all day long....but you'd still be wrong. But anyway, I'm glad that next to nobody releases new software under GPL anymore and that the vast majority of developers prefer a license like MIT that doesn't enslave developers at all.

Good luck to you!


"The GPL removes my freedom to sell something that I've created."

No it does not. You can still sell the first copy, technically and practically. You can still technically sell licenses - it is just practically made difficult because those you sell the work to can share it.


> It's not like you had a _choice_ if there's software you want to use and it's only available as GPL.

Sure you do; if you don't want to accept the GPL license terms, you can write your own software that fulfills whatever function you wanted the GPL code for.


You also have the option to not use the software, if it's software you want, not need.


"It's not like you had a _choice_ if there's software you want to use and it's only available as GPL."

Sure you do. Write it yourself.


Not much of a choice, if one involves:

1) begrudgingly adopting a licence you don't like or want

over:

2) re-creating man years (or decades) of effort to reproduce a certain project

Especially if you lack the programming skills or money, it's not a choice at all -- you only have one option.

So in those cases you "don't chose GPL" -- you chose the project you want to use, AND have to necessarily suffer GPL too because of that choice.


Have you considered why the original authors chose the GPL? It's so people who use their code will never take away the freedom of users of the code. If you're complaining about not being able to take their code and make it proprietary, you're missing the point that THAT'S WHY THEY CHOSE THE GPL.


That's orthogonal to whether the prospective user of the package has an actual choice or not (besides using as GPL it or going without).

WHATEVER THE ORIGINAL AUTHORS' REASONS FOR CHOOSING THE GPL (sic), it doesn't change the situation that one might not be happy for a project they want to use being in GPL -- including people who don't intend to make it proprietary, but who prefer BSD licenses nevertheless.


> That's orthogonal to whether the prospective user of the package has an actual choice or not (besides using as GPL it or going without).

You've just outlined the choice that the person has. Admittedly, I wouldn't use the GPL for libraries, I've started using the MPLv2 for stuff like that. I don't really agree with the common reading of the combined work clause in the GPL wrt libraries (a work that uses a library's API shouldn't be bound by the copyleft of the GPL IMO -- but as Oracle has proven, APIs appear to be copyrightable).

> WHATEVER THE ORIGINAL AUTHORS' REASONS FOR CHOOSING THE GPL (sic), it doesn't change the situation that one might not be happy for a project they want to use being in GPL -- including people who don't intend to make it proprietary, but who prefer BSD licenses nevertheless.

BSD licenses allow distributors of the software to make it proprietary. That was clearly a more important problem to the author and community of the software than allowing GPL-incompatible projects to use the code. It's a fundamentally ethical decision, which you may disagree with if you follow the open source (as opposed to free software) philosophy.


You're missing the point. He's saying that there's technically a choice, yes. You agree on that.

The part you seem to avoid agreeing with is that it can often be a really annoying choice to have to make. Isn't everybody entitled to be annoyed when they only have one so-called choice? (Like having to move or use slower alternatives in order to get away from Comcast as your ISP.)

Continually pointing out that there is technically a choice doesn't really help anyone who feels bitten by their lack of choices.


You don't get the right to be annoyed when you have to comply with the license terms of something that you haven't had to spend time working on (and usually get without paying for it).


No. Not when in exchange for that "annoyance" (not really an annoyance at all), you get a lot of stuff for free.


That would only affect you if you were making your own JVM/.NET runtime.


Why don't you learn C# and then come back and see if you feel the same way. It's a MUCH better language and environment than Java.


I first started using C# professionally in 2003, after starting out with the betas. I helped implement some key .NET support for the Delphi compiler when I worked at Borland.

I'm quite familiar with the evolution since then too. For example, back in 2006, I advocated implementing a CPS transformation to make better use of async code in .NET:

http://blog.barrkel.com/2006/07/fun-with-asynchronous-method...

It only took 7 years for async methods to come out, but they're there now; and I understand their utility in no small part because I was one of the people asking for them.


Why? The license problem is only related to the oracle java implementation. The OpenJDK implementation has not any related problem, and, honestly, performs already far better than the oracle one (and I think it will improve even faster now that Google will use it for Android).


OracleJDK is just OpenJDK plus a few propriety bits like Web Start and Web Plugins, (and I think Java Flight Recorder). OpenJDK is the reference implementation since Java 7. Source: http://openjdk.java.net/faq/

>Is Oracle JDK based on OpenJDK?

>Yes. Oracle JDK is based on the OpenJDK source code. In addition, it contains closed-source components. The final result is licensed under a Binary Code License.


>The license problem is only related to the oracle java implementation. The OpenJDK implementation has not any related problem

Including the APIs?


Except the problems is many projects I ended up building would recommend and claim support only for Oracle downloaded JDK packages. Some explicitly claimed they do not supposed OpenJDK, claiming stuff would crash or be slow in that case.


How is it the new COBOL?


It is the entrenched, default back-end business language. It will be running on servers for the next 30 years. 30 years from now, there will be job posts wanting "Java developers to maintain microservice/agile/tdd-based services" because all the Java devs will be retired and everything will be programming by thinking about algorithms and transmit it directly to the compiler via a brain implant.


Agreed. Somehow I thought you meant C# :0




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: