How Immutables Speed Up Even Non-Parallel Software

Just learned one interesting aspect of immutables: Besides the fact that they help you to provide a lot of ugly threading problems, they potentially speed your your code by itself. The trick is that once you prevent the creation of two identical object instances (e. g. by using builders and caches) you can be sure that two references always point to distinct objects. As the objects are immutable, this is an invariant. Hence, you can reduce the equals() and hashCode() methods to fixed implementations: There is no more need to actually compare any state, but it is enough to compare the reference itself. This certainly speeds up the code, even in non-parallel situations. Also, you spare memory, as you will never have any copies, but only singletons. As a side effect, less GC pressure exists, which also will result in faster Overall execution.

Cool, this really is the tip of my day. Good that I had time to attend “parallel//2016” conference. ūüôā

Aside | Posted on by | Tagged ,

Maven Coordinates for Java EE’s Individual APIs

There are things on earth you search for again and again and again. One of these is the page where the Maven Coordinates (GAV) for all the individual APIs of Java EE (like JPA, JAX-RS, etc.) is found. Here it is: https://glassfish.java.net/wiki-archive/Java%20EE%207%20Maven%20Coordinates.html.

Aside | Posted on by | Tagged ,

Bash for Windows

One year ago I asked when Microsoft Linux will be done. After it learned docker, now bash was announced at build 2016. Mr Nadalla should simply announce Microsoft Linux finally.

Aside | Posted on by | Tagged , ,

JavaFX used in production by 50% of discussion audience

JavaFX-Javaland-SurveyTogether with Dr. Michael PAUS of JUG Stuttgart¬†I organized a panel discussion for TeamFX¬†at JavaLand 2016 around the¬†question “Is JavaFX ready for everyday business use?”, with well-known speakers like Hendrik EBBERS, Gerrit GRUNDWALD, Bennet SCHULZ, Anton EPPLE,¬†and Alexander CASALL. The audience was polled for several questions, and here is the interesting result: 50% of them already use JavaFX in production, and 29% are using JavaFX in commercial projects. This is far more than I expected. While there is no commercial support offer for explicitly¬†JavaFX from Oracle, 29% of the audience are willing to pay for this, and around 38% even would like to contribute to the OpenJFX project themselves. This is really good news for JavaFX, and it proofs that this technology is really ready for prime time! Always wanted to get started with JavaFX? There is no excuse anymore – just do it!

Posted in Cons, Java, Lectures, Open Source, Oracle, Programming, Projects | Tagged , ,

JavaLand 2016 Slides are online: “How to contribute to JavaFX?”

Being a JavaFX contributor I had been asked to give some introduction at JavaLand 2016 on the official process to report bugs and develop features for JavaFX. The slides from my short talk can be found at Speakerdeck now (German). I would be glad to answer all your questions and help you contribute to this awesome framework. The mentioned repository will be online soon, BTW.

Aside | Posted on by | Tagged ,

Source code of “JavaFX Hello World”

If you just waited for a minimalistic starter project for learning JavaFX: You can now find the source code of the “JavaFX Hello World” online. Have fun with it.

JavaFX Hello World on GitHub

Aside | Posted on by | Tagged

Shake your rusty bones with Java VIPs @ JavaLand 2016

There are two great things in particular about JavaLand conference: First, it is organized by the Java Community (i. e. JUGs). Second, it is all about networking, so it tries to make it pretty easy to get in touch with VIPs. To support the latter, Bennet SCHULZ organizes the “JavaLand Jogging”. In the past two¬†years of this event, normal people like me had a chance to go more miles not only with the organizers Bennet SCHULZ and Alexander¬†NEUMANN, but also to join passionate runners like Arun GUPTA. Pack your shoes and join us!

Check the JavaLand Community Event Schedule for more infos!

Aside | Posted on by | Tagged