JVM switches like -XX:CMSInitiatingOccupancyFraction=70 -XX:SurvivorRatio=2 -XX:+UseConcMarkSweepGC -XX:+UseParNewGC -XX:NewSize=2048m -XX:MaxNewSize=2048m (taken from real recommended settings for an open-source project) are, of course, not opaque-to-the-average-user at all :)
Why Java Now Rocks More Than Ever: Part 1 – The Java Compiler
11–20 of 149 posts
Re: Why Java Now Rocks More Than Ever: Part 1 – The Java Compiler
#12Re: Why Java Now Rocks More Than Ever: Part 1 – The Java Compiler
#13Argh. You can't use Open Sans Light as a body font...
Re: Why Java Now Rocks More Than Ever: Part 1 – The Java Compiler
#14What I mean by that is simply that a lot of developers are prejudicious against Java due to historically it being slow and having tedious development feedback cycles.
We use Java extensively (and Java EE 6) in an agile IT business and it is truly an asset. I encourage others to look in the direction of Java.
Re: Why Java Now Rocks More Than Ever: Part 1 – The Java Compiler
#15Re: Why Java Now Rocks More Than Ever: Part 1 – The Java Compiler
#16Re: Why Java Now Rocks More Than Ever: Part 1 – The Java Compiler
#17Java is rapidly becoming more viable as an alternative to all of these "trendy" languages these days, e.g. Ruby, Python, Go. What I mean by that is simply that a lot of developers are prejudicious against Java due to historically it being slow and having tedious development feedback cycles. We use Java extensively (and Java EE 6) in an agile IT business and it is truly an asset. I encourage others to look in the dire…
Re: Why Java Now Rocks More Than Ever: Part 1 – The Java Compiler
#18Re: Why Java Now Rocks More Than Ever: Part 1 – The Java Compiler
#19Java is rapidly becoming more viable as an alternative to all of these "trendy" languages these days, e.g. Ruby, Python, Go. What I mean by that is simply that a lot of developers are prejudicious against Java due to historically it being slow and having tedious development feedback cycles. We use Java extensively (and Java EE 6) in an agile IT business and it is truly an asset. I encourage others to look in the dire…
Convention over configuration, scaffolding similar to RoR (or better with Forge) and advanced meta-programming via annotations have reduced the effort to produce CRUD applications to a level similar to the trendy languages and frameworks.
While J2EE was painful (10 interfaces and classes for some Entitys), JavaEE is fun to work with and (for the most part) intuitive as it's focused on POJOs and includes DI (CDI). Now I focus on my business logic, and let the rest of the pieces fall into place naturally!
Re: Why Java Now Rocks More Than Ever: Part 1 – The Java Compiler
#20All this is only worsened by the ‘black box’ nature of the optimization level switches. Doesn't the JIT do all sorts of crazy stuff that's not always reproducible and thus hard to profile? I know this is the case with V8, but probably also so with Java. I don't know much about compilers, but the author seems to know even less.
And yes, HotSpot can do tons of stuff, from eliminating virtual method calls, to inlining methods, to deciding whether a wait should be busy or not. And it does become a serious pain to profile, especially when you have code paths which are infrequently hit and so might not be JITed.