Will Sun Open Source Java? 700
capt turnpike writes "According to eWEEK.com, there's an internal debate going on at Sun whether to open-source Java. (Insert typical response: "It's about time!") Company spokespersons have no official comment, as might be expected, but perhaps we could hear confirmation or denial as early as May 16, at the JavaOne conference. One commentator said, "Sun should endorse PHP and go one step forward and make sure the 'P' languages run great on the JVM [Java virtual machine] by open-sourcing Java." Would this move Java up the desirability scale in your eyes? Could this be a way to help improve what's lacking in Java?"
If they do, it will all depend upon the license. (Score:5, Insightful)
What changes and how would depend upon which license was chosen.
Re:If they do, it will all depend upon the license (Score:5, Informative)
Mustang changes this (Score:5, Informative)
http://www.internetnews.com/dev-news/article.php/
Comment removed (Score:5, Interesting)
Re:If they do, it will all depend upon the license (Score:5, Funny)
Re:If they do, it will all depend upon the license (Score:5, Insightful)
Re:If they do, it will all depend upon the license (Score:3, Insightful)
Convention over configuration is just another name for having sensible defaults, and nothing stops you from using that in Java. Indeed most Java frameworks have already added (or are working on) this.
Re:If they do, it will all depend upon the license (Score:4, Informative)
Seriously, though, there are other problem domains out there. A lot of them, in fact. And even in web development, depending on the complexity and context of the solution, might require vast amounts of code that never interact with a GUI of any kind. When you evaluate these languages and platforms in context's outside of web development, Java starts to look far more robust and flexible.
As another poster pointed out, where are the buffered readers for ruby/php? Sure File.open("name") might LOOK nice, but Java's addition of a buffer solves a common problem many programmers in the past needed to solve by hand. There are about a thousand of these examples where Java's framework is more complex than its ruby/php counterpart, but for good reason: it adds much needed functionality for the enterprise developer.
Taft
Re:If they do, it will all depend upon the license (Score:4, Interesting)
I really don't understand this. Having a rich and versatile range of libraries is a problem?
Personally I use Ruby (on Rails) these days for web development: convention over configuration is, imo, a much more important advance in the art than object-orientation was.
And Java has had this for years. I use JDO to persist my Java objects (it is a far more powerful and versatile system than Rails - much faster, and can persist to non-relational stores as well). How much configuration do I need in principle to describe my schema? Nothing but a list of classes. By default, the schema is created and mappings are automatically set up based on the field names of my classes. By default, no configuration needed.
How long has JDO had this? Since 2000!
Convention over configuration is nothing new.
Re:If they do, it will all depend upon the license (Score:4, Insightful)
Re:If they do, it will all depend upon the license (Score:3, Interesting)
Yes, you're right, it does cover a lot of licenses. In order to be allowed to use the trademarked term "Open Source" however, whatever license they choose must (a) comply with the Open Source Definition [opensource.org], and (b) be approved [opensource.org] by the Open Source Initiative.
Sure, not all Open Source licenses are the ducks guts to all people, but there's pretty much an assurance of no evil in there. Even microsoft knows that!
Re:If they do, it will all depend upon the license (Score:5, Informative)
Did you even read the pages you were linking to? The Open Source Initiative's own certification page, that you linked to, has this to say, right in the first paragraph: "the term 'open source' itself [...] can't be protected as a trademark".
I can call anything I like Open Source, and nobody can do a thing to stop me. The new Evil Proprietary License (a viral license that infects any software in the same room with a deadly curse that can only be lifted by the sacrifice of your firstborn) could be called Open Source. What it couldn't legally be called is OSI Certified(tm).
No (Score:5, Insightful)
No, haven't they already said that? Like hundreds of times? And does it really matter?
"Sun should endorse PHP and go one step forward and make sure the 'P' languages run great on the JVM [Java virtual machine] by open-sourcing Java."
"No", who would run PHP on Java anyway? Why? Why would open-sourcing it help?
"Would this move Java up the desirability scale in your eyes?"
No, Java is already desirable in my eyes.
"Could this be a way to help improve what's lacking in Java?"
No, what is lacking?
People who complain that Java is slow, should be open-sourced, and so on have never seemed to had a clue.
Re:No (Score:5, Insightful)
Will people stop trying to move Java towards a culture that won't keep Java up to the same standards Sun has? There's a reason why the top two server side platform these days are
The only place I ever see Java going is perhaps to be bought by another bigger company who has a similar path. My only hope is that it's IBM because their Java apps are of a higher quality than Sun's, and they've done such good work with the Eclipse platform.
Re:No (Score:5, Funny)
Of course, any equivalent app in Java would have more lines of opaque XML configuration than the "POS LAMP application" has code. It will also be slower, eat several times as much memory, and depend on specific versions of two dozen frameworks.
The Rails version, OTOH, would be about 4 lines long and deployed before the Java guys managed to fire up their Eclipse bloatware. It would, however, be about the same speed as the Java app.
The Lisp version would never fail, would have source code in the form of a haiku, could tell the future and control the weather. It will never be written because all those parentheses look funny.
Re:No (Score:3, Informative)
The problem is worse with medium scale apps because Java offers something most frameworks don't: choice. Do you use Spring, Hibernate, JSF/EJB3, JSP/EJB2, Struts or a mixture of all of the above (shudder). Thats one man month gone already and
Re:No (Score:5, Insightful)
Irrespective of any ideological issues, there are a few reasons the current situation hurts Java a bit.
Foremost for quite a few readers of slashdot is that free Linux distributions can't include Java in their default install. That means Java-based apps are not going to be included either. And since users need to jump through quite a few hoops to get Java installed (don't say "it's easy" - for most people anything beyond using their package manager is too high a hurdle), you can't assume it will be available on desktops in general.
The second issue is that Java does not really play well with the desktop. I have set up my desktop to run fine using three languages - English, Swedish and Japanese - and made sure everything from localization to character input works smoothly. But Java does not cooperate; it has its own way of dealing with CJK characters and needs its own fonts and separate setup to work. I have fiddled a little with it, but have never gotten it to work properly (especially being able to run an app in Swedish while still being able to input Japanese). And since it uses its own input method, it does not share the local dictionary so typing becomes frustratingly different from any other application I use. And since the code is not open, distributions can't fix these interoperability issues.
Both of these issues serve as disincentives from using Java apps and from writing them in the first place.
Re:No (Score:3, Funny)
Well, in that case, I have to agree, for most people then, Java will be entirely unusable. Why just yesterday I was attempting to use a Russian keyboard, on a middle eastern version of Windows, running a Hebrew language Java application, and it just wouldn't allow me to input Chinese. Useless.
Re:What ? Eclipse has no issues with languages at (Score:3, Insightful)
Great for you; I never got it to work properly (Ubuntu and SCIM/Anthy). I first had to add fonts to some java-specific list to get it to show CJK at all. When I run the app with Swedish locale it refuses to let me input Japanese (it does not listen to the SCIM server).
I'm sure I could get it working with enough effort - but after one frustrating evening I'm not going to bother. Java isn'
Re:No (Score:3, Interesting)
From the accounts I've read, SWT addresses the artifacts of Swing and AWT by making applications work really well on Windows, and really badly elsewhere. It targets the features of the lowest common denominator platform, instead of targeting the lowest common denominator features of all platforms like AWT does. Swing is better if you use a recent JVM with all the performance bugs fixed, and use the look and feel package that matches your platform.
Re:No (Score:5, Interesting)
No, haven't they already said that? Like hundreds of times? And does it really matter?
Sure it matters. A lot of people have issues with it because of the license. It would clearly expand the number of potential adopters to go open source. More adopters will mean better tools.
"Sun should endorse PHP and go one step forward and make sure the 'P' languages run great on the JVM [Java virtual machine] by open-sourcing Java."
"No", who would run PHP on Java anyway? Why? Why would open-sourcing it help?
Well, I agree with the first part. But presumably integration will get better/faster in open source.
"Would this move Java up the desirability scale in your eyes?"
No, Java is already desirable in my eyes.
But a lot of people would find it more desireable. You can trust that java won't go away in open source, whereas you can't really say the same as long as SUN is at the helm.
"Could this be a way to help improve what's lacking in Java?"
No, what is lacking?
Mostly modernizing. The pace of java development is glacial, compared to say what is going on in C# or Ruby. People with specific integration issues that can't get sun to address compatibility problems are stuck.
People who complain that Java is slow, should be open-sourced, and so on have never seemed to had a clue.
There's no doubt java is still slow in a number of contexts. There are also obvious opportunities for performance enhancement that could be addressed in an open source process. I recently benchmarked ten of my applications in c++ and java, java is about 2x slower for most of the cases I tried, and never faster. To me, that's perfectly acceptable, but java could make more inroads into other areas of computing if it was more competitive in performance. More inroads means more developers, and that means better tools, which is what I yearn for.
Re:No (Score:5, Interesting)
On the other hand, Sun's Java compiler has always had broken dependancy tracking (at least since I started using it heavily in 1999). (If a build has an error, the set of output class files may be such that the next run of the compiler skips a source file which needs to be compiled; this is mainly that it can generate the public class without generating other classes in the same file.) I think it's likely that, if Sun does open source the JDK, they'll get fixes for a number of annoying flaws of that sort pretty quickly, and things that are clearly wrong but aren't considered worth working on will be improved substantially.
Of course, there's essentially no chance that they'll relax their grip on the language standard, and they probably shouldn't, unless they turn it over to a standards body due to no longer being able to employ good language designers.
Re:No (Score:4, Insightful)
Simple example...
Java: BufferedReader in = new BufferedReader(new FileReader("foo.in"));
Python: in = open('foo.in')
Ruby: in = File.open('foo.in')
C++: ifstream in; in.open("foo.in");
To be fair, I'm no Java expert, but in my experience with it, I'd have to be masochistic to look at it all day...
Re:No (Score:5, Insightful)
Sorry, but when I'm dealing with code written offshore by developers of mixed ability in a system integrating my mainframe to my fulfilment systems with customer web access, online payments, content management and back office consolidation thrown in then I want a language that's immediately readable.
Perl is exceedingly brief to write. It's also very difficult to read.
PHP/Python are better, but most code I see is frankly horrible.
With Java the APIs and libraries - even third party, even open source - have descriptive names. They make sense. You can figure out what's going on from the method and classnames, without having to go and read them.
This makes unfamiliar code easier to read. I've done Delphi/C/C++/perl/PHP programming, and none of them have as easy to read code as Java. I value that a lot.
That you have to type an extra 32 characters to open a file? Good! Hell, you're not typing enough already - 'in' is a bad name for a variable. How about making it descriptive, tell the reader what you're reading.
Modern IDEs do most of the typing for you. The clarity of the code that's written is more important than the extra two seconds you need to write it.
Re:No (Score:5, Insightful)
While you're at it, make it read objects from a gzip compressed network stream:
new ObjectReader(new GZipReader(new SocketReader(new Socket("1.2.3.4", 42))));
(I'd really like someone to demonstrate this in other languages; having started with java and moved to C, things like gzip stream reading and network access seem like such unnecessary pains in the ass that I've never bothered to learn them properly...)
might finally be willing to try it! (Score:3, Insightful)
It would certainly bring it across the threshold to something I might be willing to install on my machine. I'm not sure I'd actually be interested in using it for anything, but at least it would no longer be in the "completely unacceptable" column.
Of course, I'd probably wait till it was "apt-get"able. But I suspect that an actually-Free Java(tm) wouldn't have to wait long to find a Debian packager.
same here (Score:3, Insightful)
1. gcj (the gcc that does Java-to-JVM and JVM-to-native)
2. GNU classpath
3. Kaffe?
I've never seen it do anything, either in a browser or in OpenOffice. Oh well.
(not that language which overloads "+" for string+number is sane; that ought to be a compile error)
Alternate VMs (Score:3, Insightful)
Certainly couldn't do worse.
Re:Alternate VMs (Score:3, Informative)
Sun, on the other hand, does not allow anything of the sort with their own Java stack and has held off on open-sourcing because it sees its Java runtime environment as a beachhead through which it can colonize your system (especially on Windows, where it comes bundled with all s
Re:Alternate VMs (Score:3, Informative)
Save Apache some time ... (Score:5, Insightful)
WINE did it for Win32 and Mono did it for
Now that Sharp's Zaurus has dropped Java,
SLM
Re:Open Java (Score:5, Informative)
Kaffe and GNU/Classpath are excellent, active projects with dedicated developers. Notably, GNU/Classpath has recently passed the 99% code coverage mark measured against the Java SE specification. Apache Harmony was started because Apache won't use code licensed under the GPL, not because of any technical defect in the work of the Kaffe and GNU/Classpath developers. Harmony is also making excellent progress and has a skilled and active community. Both are committed to making compatible implementations of Java, but licensed under the licenses their communities need.
Re:Open Java (Score:4, Informative)
As an embedded systems developer who has recently been dealing with Windows CE, let me tell you that Microsoft is pushing
The Java market is fragmenting. All these groups are taking it in different directions. The Apache people are re-implementing it, the GNU people won't deal with Sun Java, distribution is a mess. Microsoft offers a consistant product, a consistant platform, and a hard sell. Java is losing ground on the server side. On the embedded side, Microsoft is determined to "fucking kill [java]", and they're not resting. It's not all doom and gloom, Java will be around for a while. But it wouldn't hurt if Sun got off their asses and removed the obstacles in the way of their allies in the war against dotnet.
Bad idea (Score:5, Insightful)
I still fail to see the benefits of "open sourcing" Java. How will it be improved? It's not as if the engineers at Sun are stupid and don't know how to engineer enterprise software. Don't you think Sun has heard that same complaint from some major league/big $$$$$ customers and done everything they could to improve said performance?
Even if they *do* open it up, Im sure the slashdot community will still hate them because they don't use a GPL variant license. Its a lose-lose situation for Sun, I don't get why they would even consider it. Is there a business case that will generate a 9-figure revenue jump from giving away the source for Java? I don't see it, but Im sure someone around here will happily clue me in.
Re:Bad idea (Score:5, Insightful)
Rarely do the most vocal critics of "open sourcing" something actually understand the rationale behind free software, which is NOT to have the best code, NOT to have the most secure code, NOT to ship a product the fastest, NOT to contribute to the code, NOT to get something for free, or even to become the "commodity" implementation of a specification.
The best reason to "open source" something is purely and simply the freedom to access the code behind the software you are running; the freedom to change, or port to another platform, the software that you purchased or downloaded. This is the original philosophy of the Free Software Foundation, and the GNU project, who were collectively the inspiration for the "open source" movement.
So if you're wondering why anything less than a GPL license is unsatisfactory to the hairy, unwashed free-software factinista, why don't YOU look up the facts and get a clue about the software freedoms that may, one day, mean that your descendants can read e-books, watch movies and examine the collected creative output of humanity unencumbered by the imposed obscurity of closed-source software, DRM and other impositions on our freedom.
Yes, this is about religion. It's about an idealogical divide between people who would rather have free-as-in-beer convenient software, rather than free-as-in-freedom software that preserves your rights. Frankly, your arrogant pragmatism nauseates me.
Re:Bad idea (Score:4, Informative)
Microsoft already forked java and called it C#. Now C# is evolving faster then Java and is making serious inroads into the java development market. Furthermore there are at least two open source implementations of java. So there are three forks right there.
Being closed source has not prevented anybody from forking java. Whats more being open sourced has not caused python, ruby, php, perl, ocaml, or haskell to fork.
I don't know where people get this meme from really. It makes no sense at all.
Re:Bad idea (Score:4, Insightful)
Because open source languages such as php, perl, python, ruby and C# are eating into your market share every day. People have already abandoned java for most web applications and it never even got off the ground on the desktop.
Finally Sun does not make any money off of java. They have said so themselves.
Re:Bad idea (Score:5, Interesting)
Honestly, that's part of the problem.
Enterprise developers are used to a very particular envelope. That involves putting up with a lot of large-company bullshit and unfriendly tools. People in other environments have different needs that are poorly served by Java. And actually enterprise people have those needs too; they're just used to suffering.
Take all of the C#-inspired improvements in Java 1.5, for example. Many of them are about programmer convenience and improved expressiveness, neither of which mattered much until C# was a threat. Or consider EJB 3.0. EJB sucked for years until Hibernate, an open-source project, came along and beat the snot out of it. EJB 3.0 is basically a straight import of Hibernate.
Or take Ruby on Rails: you can't write that in Java. Why? My theory is that in large companies, they'll let you go away for three months and build infrastructure. Plus, neither Sun nor an enterprise architecture group trusts programmers with the kind of heavy wizardry that Rails uses to make things happen. So again, Sun gets its ass kicked by an open-source project.
If they really open it up, perhaps Sun can harness some of that power. But I'd bet they won't do it properly; Java reeks of "cathedral" thinking, and that papa-knows-best mentality is hard to shake.
Re:Bad idea (Score:4, Interesting)
You are missing my point. I am saying the enterprise approach to things only applies to a selection of software projects. Sun has ignored the ease-of-use and low-barrier-to-entry criteria for years and years. This means that small projects correctly don't use Java because it's not economical. They uses PHP, Rails, and the like.
But large projects often start as small projects, so Sun is, presumably accidentally, driving a lot of users away from Java. There is no good reason for this; the world wanted Rails, and Sun missed the boat. When I look at the Alexa Global 100 [alexa.com], none of the up-and-comers I recognize seem to be using Java. I know that Craigslist, MySpace, and Flickr are built on those non-enterprise technologies you disdain; in a few years I'd bet will see some Ruby on Rails entries, but none for, say, Java Server Faces or Struts.
Enterprise developers are, by nature, unlikely to use Rails yet because they are relatively conservative. Java is, in many ways, the new COBOL. But Rails, which used Ruby's greater power to dramatically increase ease of use, now has created a substantial user base for Ruby.
And unlike Perl and PHP, Ruby has the potential to be an enterprise-scale language. It's a much better OO language than Java in many ways. With a few improvements, some supporting tools, and another five years, you will see Ruby invading enterprise shops if Sun doesn't counter effectively.
Re:Bad idea (Score:4, Insightful)
I'm sure the Trails guys will be the first to admit that Trails (like peers RIFE, Sails, and Stripes) is not as simple as Rails is. We Java developers are used to looking past the 30 lines of getter/setter boilerplate and other mysterious Java incantations. But that's not true for a lot of devs.
Both Struts and Hibernate prove my point in different ways. Struts gets around Java's limitations with reams of XML, a cure frequently worse than the disease. Hibernate is closer to the spirit of RoR, but that's not really Java either; they have to do heavy wizardry with bytecode manipulation and dynamic subclassing because Java doesn't give them the necessary power. And note that Hibernate came from outside Sun. Sun's attempt at the same the same thing was EJB, which has been deservedly, if belatedly, shot in the head.
As a senior technical person in a large enterprise I too seek the holy grail of letting business people enter their business processes into a pretty front-end and getting a fully featured website with full supply chain integration automatically generated.
Actually, that's not what I seek at all. I believe that software development is inherently complex; you can't ever automate the thinking away. What you can do is give the developer tools to aid their productivity, to make simple things easy and dangerous things hard. Let them focus their brainpower on the things that are actually worthy tasks.
For a data driven system, it's great. For a complex system integrating with multiple other systems, it's no easier to use.
Exactly. At the low end, it's easier; at the high end, it's the same (or perhaps a little worse). But what Sun is missing is the idea that development need not always be hard. Pehaps they'll learn that from Hibernate, which comes from an attitude very like RoR. If not, I hope they learn it from Rails.
And because it does so much magic under the skin, if that magic doesn't meet your needs, you struggle more to change it.
I agree completely. This is where I'm waiting to see how the RoR and Ruby communities mature. They've got the entry-level system taken care of, but can they provide a path to complex systems without the kinds of complexity cliffs that you see amateurs using Access or VB run smack into? I think that Ruby the language has horsepower that other easy-to-use tools don't, but we'll see if they can turn that potential into actual results.
Re:Bad idea (Score:3, Insightful)
But now there is *ONE* version of Java approved for *ONE* version of FreeBSD. Sigh.
all the things java was supposed to be great for.. (Score:3, Interesting)
Are you kidding me? (Score:5, Funny)
No no no. Let Sun handle Java.
Someone once said... (Score:3, Interesting)
Make sure 'P' Languages run on JVM.....huh? (Score:4, Interesting)
Explain that to comment to me, please. It makes no sense.
Re:Make sure 'P' Languages run on JVM.....huh? (Score:3, Insightful)
If Sun is to do that, they should do it before Parrot and the language implementations for it are finished - so that gives them plenty of time.
There are a already lot language implementations that already target the JVM [robert-tolksdorf.de], Sun would not lose by throwing a bit of mo
Re:Make sure 'P' Languages run on JVM.....huh? (Score:3, Insightful)
That comment is misleading. The text is never translated to machine code. The interpreter reads the code and the interpreter does the work according to the rules of the language. Java takes an intermediate step and translates the code to bytecode, which can be more easily interpreted. However, so can python.
Also, your performance analysis is lacking. Code size is a big factor here. A perl program may,
Oh, geesh..... (Score:3, Insightful)
Java isn't the answer for everything. Either is C, C++, Perl, Python, Ruby, or PHP. Each language has it's strengths and weaknesses.
Nobody should be making decisions about what programming language to use based on whether it's open source or not. There are freely available implementations of those languages.
If you've got your company, that's another story, do what you want. If you're basing decision on open source ideology instead of what's best for your employer, you're not doing your job.
Is the employer always right? Hell no. But making decisions based on open source ideology instead of the right technical decision, you'll be no better than the managers "upstairs" you like to complain about.
Why Should Sun Do This? (Score:5, Insightful)
IBM, BEA, Oracle, etc pay Sun to license their source code so they can release compliant JVMs.
So, it should be no suprised the the open *cough*IBM*cough* source community "demands" that Sun open source Java. Guess how much money a certain company would save getting free source code that they're paying to license now? In the same of "the open source community", they'd like nothing better than to get the #1 competitor's hard work for free so they stop having to pay them for it.
The Java spec is open for anybody the re-implement, the source code is viewable by all, and the JDK is a free download. Sun has stated that they won't stand in the way of Apache Harmony or any other open source project that aims for a full open source implementation of the JVM/JDK spec.
So what exactly is the problem?
Re:Why Should Sun Do This? (Score:5, Interesting)
I don't have the Sun JDK on my Fedora system by default because of the Sun license.
Meanwhile, Microsoft has been adopting ocaml as the next big language [microsoft.com]. For once, Microsoft is technically ahead of its competitors -- ocaml [inria.fr] (which Microsoft did not produce) is very fast and safe, and from a technical standpoint is much more impressive than C# and Java.
Plus, ocaml can be used as a pure functional language -- such languages eliminate almost all the reason to use (error-prone, difficult to guarantee correctness with) threads. Pure functional code is inherently parallelizable any time the compiler can say "hey, no data dependency here".
Ocaml is picking up quite a bit of steam -- there are a slew of open-source libraries for it out there, it's the only safe language that I'm aware of that provides performance comparable to C and C++, yadda yadda yadda. The INRIA ocaml compiler is open source (though, annoyingly, QPL instead of GPL). The runtimes and the stuff that you stuff into your code is LGPL. I didn't realize that Microsoft was backing it and integrating ocaml support into Visual Studio until quite recently, though. There have been gtk+ bindings for ocaml for a while, but MS may actually be ahead of the OSS world in providing complete ocaml bindings.
If you've never used ocaml before, wait until the first time you break in the debugger at a problem...and then step *backwards* to watch the problem occurring. It's simply delightful.
What's particularly satisfying is that C was well-designed -- for a specific set of systems and circumstances that don't apply to most application software development today. Ocaml is the first language in a long time that I've seen where I can say not just that the language has good ideas, but that it is really well-designed. It's also a lot better-suited to application development than C is.
Gah...sorry. Ocaml gives me the warm fuzzies.
Re:Why Should Sun Do This? (Score:3, Informative)
http://shootout.alioth.debian.org/gp4/ml.php [debian.org]
http://shootout.alioth.debian.org/gp4/ocaml.php [debian.org]
Two SML implementations are SML/NJ, MoscowML.
"Sun should endorse PHP" (Score:5, Funny)
Who cares? (Score:3, Informative)
Why do I say that? Because it is the one all non-Sun/Microsoft server environments (meaning Linux & *BSD) will be shipping. RedHat is already there. If you want a different Java you have to deal with the implications of having it co-exist with GCJ. Although they do use alternatives to make that managable, they ship the IBM JDK on their extras CD, not Sun's and the Sun packages almost certainly (haven't bothered to check a recent vintage) don't deal with that, their 'rpms' are brain damaged tarballs wrapped in a thin rpm wrapper.
So it no longer matters what Sun does. Five years ago they could have turned around the fortunes of Java when it was under serious threats. Ten years ago OPening Java would have meant we wouldn't be dealing with
Personally I don't want Java open-sourced (Score:5, Funny)
I am scared...
PHP and Java is oil and water (Score:5, Interesting)
Re:PHP and Java is oil and water (Score:4, Informative)
Re:PHP and Java is oil and water (Score:3, Informative)
Of these languages, only Perl has working multithreading support. Python and Ruby both have hugely granular global interpreter locking, which makes multithreading impractical.
What works well for a hobbyist doesn't necessary work well when professional adult programmers need to accomplish something reliably day in and day out.
Amazon is not LAMP (Score:5, Informative)
Amazon is not LAMP.
Re:Amazon is not LAMP (Score:5, Interesting)
Re:Amazon is not LAMP (Score:5, Funny)
I'm very impressed.
Next time there's an outage, we'll say we ran out of COAL
MySpace runs on ASP.NET 2.0 and IIS 6 now (Score:3, Informative)
Here is a blog by a Microsoft ASP.NET dev describing the details (it's an interesting read):
http://weblogs.asp.net/scottgu/archive/2006/03/25/ 441074.aspx [asp.net]
Note that some parts of MySpace still use
Will it make the competion less desirable? (Score:4, Insightful)
Re:Will it make the competion less desirable? (Score:3, Informative)
That's sad really, I wonder on what standards [mono-project.com] those "wonderful Mono efforts" are based on ? Yeah. There'll never be a open standard [ecma-international.org] for .NET, never bother about open source [dotgnu.org] implementations [mono-project.com].
They should not open source it. (Score:3, Insightful)
This brings another point about Java standard. I remember JSF has many bugs that it tooks months to years to be fixed because the standard was broken. I think Sun needs to be much quicker than now to address these issue. These big problem should be fixed in a couple of weeks, or couple of months (2). Most people don't wait for a technology for a year or two to adopt it. They use alternative tech. This is usually a one way street and Sun will loose those customers.
go ahead, make java obsolete forever (Score:4, Interesting)
what we have done for all the project has been following the specs. we did not do any tricks for windows or any other os. We did not do any tricks for any app server. And now, our solution is able to work on three major os's that we have targeted in the beginning, without even recompiling. we really wrote once, and we're running wherever we need.
Against the more productive avarage
this is our reality, and under these circumstances, the only way we can win against the ms shops doing the same job, is to use our platform independence. we can come up with zero licence versions of our software for small customers, using linux, jboss and postgresql, and it just works. the eliminated licence cost gives us many advantages, and this is how we are going to win. Other than that, there are many problems in real life, like customers falling in love with
so, go ahead, make java open source, and starting from the one man utility developer to IBM, let everyone change anything since they believe it is a better method of doing x,y,z... So 3 years from now, working on the new major version, my software will no longer be easily portable to other configs. It will be possible, but it will cost me much more than today. That cost my friends, will make us go down in the not so long run.
Having a technology based on strict rules, has it's own advantages. in case of java, i believe these advantages far outweight the cons, but that's just me. However, i don't think my argument will be nonsense for many enterprise development projects.
Java's distribution policy does hurt it! (Score:4, Interesting)
Lets take a hypothetical new company. So far, all they've done is bought Windows and installed their workstation and server population. Now they need an application to do Foo.
Team A propose a solution based on
Team B propose a solution based on Java. Now the company would have to have their lawyers review 2 sets of licences as opposed to one (Team A and Sun), and their support contact points climbs to 3. It also increases overall administrative hassle, as Java has to be patched / updated outside of their OS / application lifecycle.
Team B automatically look less attractive to the company because their hidden costs are much higher. If Sun just allowed Team B to bundle the JRE with their application, this would go away. Of course, then the different problem of every application trying to install Java comes up, but that can be got around by providing a 'JRE bundled' and 'No JRE' version of the products.
If you think that companies won't bother to review Sun's licence before installing Java, you'd be wrong... I've consulted at 2 different places now where they had their lawyers review the GPL and Java's licence before allowing deployment of products licenced under those.
AMD64 (Score:4, Insightful)
PHP on Jave dies not need Open Source (Score:3, Insightful)
One commentator said, "Sun should endorse PHP and go one step forward and make sure the 'P' languages run great on the JVM [Java virtual machine] by open-sourcing Java.
You are free to write a PHP Interpreter which is Open Source and runs on a JVM
I frankly don't know if it benefits me, or anyone, if Java is OSS. However it would be horrible if we face what we currently have with C++, litterally hundrets of compilers where everyone implements his favorite subset of the language definition.
angel'o'sphere
Re:This would help (Score:5, Informative)
Pretty meaningless comment, unless you can supply some examples. I've done consulting and development for a number of large, lawyer heavy organizations, and none of them had a problem deploying Java solutions on linux. None.
"2. JVM is fat fat fat, it uses way more RAM than is reasonable."
Sadly uninformed, probably due to severe lack of experience with large applications. Per example, a couple of years ago I worked in a team that bid on and developed an application that, in a nutshell, receives up to 20Megs per sec of market data, breaks it up into itty-bitty messages, and then makes it available to any number of subscribing clients. Call it a proxy, if you will. We developed the app in pure Java, using the new NIO functionality. We competed with another team who started out in C, moved to C++ midway through, and were barely in a position to go alplha when we were ready to deploy. The client, since they were paying and had a lot of anti-Java staff, insisted on waiting, even though the delivery date had long since passed. When they finally had something to show, the apps were launched on identical hardware, and allowed to run 24/7. Our app ran smoothly, uninterrupted (except for a blown network interface) for the duration of the test. The other team had to restart their app several times a day, resulting in unnacceptable outages. Their restart time was, likewise, poor. Their app required 2Gigs to run. Ours ran happily under a Gig.
The client paid both teams for their efforts, then licensed our solution.
So, my quesion then is, where's the fat?
Re:This would help (Score:3, Interesting)
Your second comment is a nonsequitor. My point is the Sun JVM is extremely greedy in allocating memory. You relate a story about a C/C++ project going poorly. Whether or not Java is a superior language and deployment environment for some types of applications (an argument I do not contest) is irrelevant to the fact that the Sun JVM significantly more memory than an equivalent program in a variety of other la
Re:This would help (Score:5, Insightful)
Programmer time is much more expensive than processor time these days. Therefore, many current programming languages are optimised to save programmer time first. C and C++ were designed in a time when processor cycles were extremely expensive, and therefore are optimised to save time at runtime instead.
As you have seen, java typically gets you results more quickly than C. In this case, since you simply took less time to get to your basic functionality, you could take more time to think about how to code more efficiently, and ended up actually writing faster code in the end.
However, java is not the only modern programming language out there. People have designed several new languages in the past decade. It seems reasonable to assume that some of those people deliberately set out to improve on java. Compared to such languages, java might appear to be very inefficient.
I'll leave it up to you to compare and decide. For instance, here's a comparison for web applications, done at JPL. (YMMV):
http://oodt.jpl.nasa.gov/better-web-app.mov [nasa.gov]Oh alright I will bite (Score:3, Interesting)
It don't sound like they were but still.
Let me know point you to some of the most demanding applications in existence that push hardware to its limits.
Yes, games.
Now how many of the BIG titles that have your CPU and GPU groaning and gobble memory like it is candy are written in C/C++ vs Java?
This is as fair as your story for showing wich is the superior la
Re:This would help (Score:3, Funny)
Re:This would help (Score:3)
Re:This would help (Score:5, Interesting)
Re:This would help (Score:4, Informative)
1) You do know that tools such as top and ps report a lot more memory than is really used? This has been adressed in the upcoming Java 6, which will more accurately report the memory used, you will likely see a decrease of 25-55% [java.net] reported memory use on Linux/Unix, and at least 11% of real memory used.
2) You can use jvm startup parameters to limit memory usage and still get acceptable performance [rifers.org].
Re:This would help (Score:4, Informative)
Now, before I take a moment to rag on your ridiculous RAM comment, let me assure you that I hate Java from that ground up. I find it to be little more than a virus.
JVM is thin thin thin. The fact is that most non-Sun implementations of the JVM are tight and small. In fact, from a performance perspective, Java is typically superior to compiled languages because of how it handles RAM. Before you blow me off, let me justify my comment. Thanks to the Java license and NDA agreements, I in fact can not say where I learned this information, but I have extensive experience in this topic since I was forced for extended periods to suffer the Java VM on embedded devices.
Java is a relatively simplistic (though strangley complete to the point of OVER KILL!!!) architecture/language/etc... It provides a language matched to a virtual machine matched to a set of somewhat poorly written libraries.
What makes Java superior to compiled languages is that it compensates for several key factors. First I'll refine my definition of a compiled language to clearly specify C/C++/Pascal/other non-garbage collected languages.
1) Application Developers are not System Developers
Using C++ as an example, most application developers use the standard implementation of new and delete. This is fine, but the first thing to keep in mind is that memory allocation for a C++ application that makes use of a lot of small objects tend to pay a huge performance price. C developers regularly shoot down the performance of C++ without realizing that it's the limitation in the C allocation routines.
Object oriented programming is typically very heap intensive. In many cases, developers insist on iterating through strings and lists far too much. Students are even taught in the university that data structures should be used absolutely everywhere. Of course they are taught Big-O and Little-O, but unless you're actually implementing the data structure classes and types, very little importance is placed on performance of these classes.
Strings are abused regularly since even though the allocation unit size of the heap allocator is limited to blocks of 16 bytes (for example), programmers will actually reallocate the buffer for a string to resize it from 8 to 9 bytes in length. By reallocating, I mean they will in fact allocate a new 9 byte string, then copy the original to the new buffer and delete the original buffer.
Application developers pay very little attention to the actual internal mechanics of the classes and functions which they use. To a certain extent, I can forgive them since an application developer is expected to think differently than a system developer. When we depend on system developers to write applications, they're often extremely fast, but relatively unusable.
So here's where Java shines, because of the garbage collection system and because of the relocatable memory architecture, memory is managed in such a way which decreases the cycles spent in allocation and deallocation of buffers. A well written JVM actually will actually either when necessary or when time is available compress the heap to maximize performance and minimize heap consumption.
So although Java seems like a memory hog, it's actually not that bad given the number of allocations and deallocations being performed by the developers. Sadly, the extreme memory use you're talking about is related to the poor system level development skills of application developers stacked on the additional layer which abstracts even more from the developer therefore making it less practical for the developer to understand the internals of the system.
2) System Developers make Terrible Applications
A system developer is typically biased towards raw high level languages such as C (not C++) because their used to making use of the stack whereever po
Re:This would help (Score:3, Insightful)
You can go look at language shootouts showing example code and note how java always allocates the most memory. You can look at real world server applications (tomcat vs medus vs apache) or real world client applications (bittorrent vs rufus vs azureus). You will find that java is always using way more memory than the competition.
Jav
Re:This would help (Score:4, Insightful)
I know. This is a real weakness in Java. It would have been great if it was a far more memory efficient languages, because then it could have been used in a wide range of low-memory situations like embedded devices, PDAs or mobile phones....
Er - something wrong with this argument, perhaps?
Re:This would help (Score:3, Insightful)
I do... I knew a few other people who may also
For a good comparison of what c is capable of compared to java, compare the speed and memory footprint of azureus with utorrent. They have very similar functinality and interface, but utorrent uses about 1/5 the memory!
Re:This would help (Score:5, Insightful)
uTorrent is NOT self-contained. It requires the Windows API to run. This part of its footprint is not shown when you look at its memory usage, but that first 256MB of RAM that windows uses is the reason uTorrent looks so small.
Re:This would help (Score:3, Insightful)
Windows is loaded at startup as well as several services. Java initializes and caches its 100,000 methods in the JVM when a java applet starts which gives the appearance that its slow. However if you start a second app in java you will notice it will take ALOT LESS ram than if you just ran the second app seperately.
This is because of the loading and caching of the JVM and most of the core dlls that windows apps use are loaded at startup. Its kind of an unfair comparison.
Re:This would help (Score:5, Insightful)
Re:This would help (Score:3, Insightful)
Re:This would help (Score:5, Interesting)
on a more philosophical level, there is already an excellent VM that *can* use all the 8G and then some. it's called linux. using java to build apps because it's easy to program in is like using tonka trucks because those trucks are so much easier to handle than the real thing. after all, why pay commercial driver rates to drive a multi ton truck when you can get you own kids (for free) to 'drive' the tonka trucks.
i learned java back around '95, '96 and was really excited about it then. but after having used it on some really large projects, i have been really really disappointed and came to the conclusion that the only real contribution of the JVM was a serious neutering to most modern advances in the OS.
forget portable programming languages - use a portable OS - linux. and forget the V, use the M (tm).
anyhow, Guy Steel was right. i am looking at lisp right now (mostly for emacs tho).
Re:This would help (Score:5, Interesting)
I have the impression that the last couple of months I see more people on Slashdot mentioning Common Lisp as a replacement for Java.
Re:This would help (Score:3, Insightful)
Re:This would help (Score:3, Insightful)
Because you forgot to give the JVM a permission to use that memory (with the "-Xmx8G" parameter) ?-) I hate it when that happens...
Linux is a vi
rank amateurs (Score:4, Insightful)
Because you are rank amateurs who are unable to read documents or use profiling tools such as jconsole or YourKit [yourkit.com]?
Re:This would help (Score:5, Informative)
Actually, FreeBSD were given a license at no cost by Sun, and any not-for-profit organisation with a need for access to a Sun-maintained compliance test kit can get it at no charge [sun.com]. So it's really just a matter of having the motivation to ask.
Re:This would help (Score:3, Informative)
Quoting Deb Goodkin of FreeBSD Foundation (from here [ittoolbox.com]):
We spent close to $35,000 for this release. It is hard to estimate the future costs of maintaining the Java releases since we expect to build updated distributions in response to all security advisories released by Sun.
So, while the license itself might have been given gratis, this clearly shows that the process of obtaining it was cumbersome and costly, and the result is still a limited, version-dependent, binary-only distributio
Re:This would help (Score:3, Interesting)
Half a SuSE installation? I haven't even got Linux compatibility compiled into my kernel.
$ uname -a
NetBSD tietokone.panews.press.net 3.0_STABLE NetBSD 3.0_STABLE (LAPTOP) #0: Fri Apr 14 22:31:45 BST 2006 root@tietokone.panews.press.net:/usr/src/sys/arch/ i386/compile/LAPTOP i386
$ pkg_info jdk14
Information for jdk14-1.4.2.8:
Comment:
Java Development Kit 1.4.2
Requires:
openmotif>=2.2.3
xorg-libs>=6.9.0
Description:
This is Sun's Java[tm] Development Kit, version 1.4.2, made buildable
and usa
Re:Third-Party JVM (Score:3, Interesting)
Re:Third-Party JVM (Score:5, Informative)
The main reason Java has a terrible reputation (IMO) is/was it's tendancy to hang/lockup/freeze your browser when an applet loads, and general clunkyness with Swing.
Re:Third-Party JVM (Score:3, Insightful)
Basically, your reasons for disliking java come down to - it sometimes looks a little ugly, and some applications written in java have confusing (to you) UIs.
The one you mention doesn't even use Swing - java's standard GUI. It uses a third party GUI library - IBM's SWT.
There's hundreds of applications with confusing and horrible UIs written with many tools and in many languages. In fact, I would say that the number of applications wit
Re:Third-Party JVM (Score:3, Interesting)
Mmm, the sweet tastiness of a piece of malarky. Care to back up the 122 cycles bit? Last I checked on Hotspot there is literally *zero* overhead for wrapping something in a try { ... } catch (Exception e) { }. And why should there be? When an exception is thrown, all Hotspot needs to know is where to unwind the stack. It can look that up in the exception table (a one-
Re:Third-Party JVM (Score:5, Informative)
Other problems with your post: Eclipse is an application; Swing is a language feature. A Smalltalk derivative (Squeak) is not a suitable replacement for Java. I'd go so far as to say Ruby and Python aren't either, though both are very powerful and are better suited to some tasks than Java.
Nice try at a troll...subtly nonsensical.
Re:Third-Party JVM (Score:5, Insightful)
No, not EVERY method. Just methods that that can reasonably fail (for instance I/O related operations), and that doesn't "know" how to handle the problem themselves. This helps you create well defined APIs, which in my opinion is one major reason there are so many frameworks and open source projects for Java.
Although relatively useless (if not harmful), these checked exceptions lead to a minimum of 122 extra CPU cycles per method invocation.
Evidence of this? Besides, it has been said so many times, but appearently it has to be said again. Processing cycles keep getting cheaper. Programmer hours keep getting more expensive. Trading a few cycles for a feature that helps you create more stable and transparent code is sensible.
catch (Exception e) {}
That is just about the worst thing you can write. Ok, maybe catch(Throwable t) {} is worse. That the first editions of Bruce Eckels Thinking in Java books were littered with those is evidence he just doesn't get checked exceptions.
Re:Overlords (Score:4, Informative)
As the two ACs who have been modded out of view said, that particular drug already exists - Jython [jython.org] - and is already supported in Java IDEs like NetBeans (via Coyote [java.net]) and Eclipse. It's been interesting to see all the old urban myths about the Java platform being slow, bloated, single language and so on doing the rounds again though, I'd almost forgotten about them...
Re:Open sourcing Java or the JVM? (Score:3, Insightful)
Java is an open standard already.
Since when is open source and open standards the same? And does the JSR constitute an open standards body? (Yes, to some degree, but it's not perfect)
Sun should liberate the "hard" parts. We already have good compilers and mostly good JVMs; what we need is the class libraries, and to a smaller extent the tools. Come on, Sun.