<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Johan Vos on Medium]]></title>
        <description><![CDATA[Stories by Johan Vos on Medium]]></description>
        <link>https://medium.com/@johanvos_42743?source=rss-aa47826adca6------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*QcLj4zwEJn2miJFW.jpeg</url>
            <title>Stories by Johan Vos on Medium</title>
            <link>https://medium.com/@johanvos_42743?source=rss-aa47826adca6------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 28 Nov 2026 12:56:46 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@johanvos_42743/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Quantum Computing for Java Developers]]></title>
            <link>https://medium.com/@johanvos_42743/quantum-computing-for-java-developers-ecbbb39f2417?source=rss-aa47826adca6------2</link>
            <guid isPermaLink="false">https://medium.com/p/ecbbb39f2417</guid>
            <category><![CDATA[quantum-computing]]></category>
            <category><![CDATA[java]]></category>
            <dc:creator><![CDATA[Johan Vos]]></dc:creator>
            <pubDate>Sun, 03 Nov 2019 11:10:30 GMT</pubDate>
            <atom:updated>2019-11-03T11:10:30.779Z</atom:updated>
            <content:encoded><![CDATA[<p>I’m writing a book on <a href="https://www.manning.com/books/quantum-computing-for-java-developers?a_aid=quantumjava&amp;a_bid=e5166ab9">Quantum Computing for Java Developers</a>, published by Manning. There are currently 4 chapters available in the MEAP process, and a fifth one will follow very soon. In this post, I want to cover some of the reasons why I decided to work on this book.</p><p>In summary, I believe quantum computing can create huge opportunities with a tremendous impact on our society. We still need to think about the software to realize this. I want to make it clear to the 12 million Java developers out there that they can be part of this quantum computing revolution. Java can be a first-class language in the quantum computing world.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/26/0*wbTr4_CnuqtGo1CV" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/720/0*JyEXyvaehKVGlpWp.png" /></figure><p>The subject of quantum computing is really fascinating. I am always looking for simplicity. While quantum computing may sound complex, it is actually much closer to nature and reality then classical computing. The elementary unit in quantum computing is a <em>qubit</em>. Similar to a classical bit, a qubit can hold the value ‘0’ or ‘1’. But a qubit can also be in a linear combination of those 2 values. There are a number of options for the physical representation of a qubit, but the important thing is that real world sub-atomic particles can be used. As the famous physicist Richard Feynman said: “Nature isn’t classical, dammit.” Our concept of a bit is more artificial than the concept of a qubit.</p><p>Second, while there are many open questions about the feasibility of quantum computers, the potential impact is huge. Today, many people are impressed by the impact of artificial intelligence. However, if a number of obstacles are solved, the impact of quantum computing can in my opinion be much bigger than the impact of artificial intelligence.<br>The combination of both can be extremely huge, but that is a different story.</p><p>There are a number of areas where quantum computing can make a big difference, including security, optimization, healthcare and science in general. Medical research today is often limited by the capacity of classical computers, and it has become clear that some problems will never be even close to solvable by using classical software only. Quantum computing can allow us to understand how systems interact, and lead to huge advances in healthcare.</p><p>However, a quantum computer is not just a super-fast classical computer. It is simply something different. For some problems, a quantum computer is not suited, while for other problems (typically those that require exponential scalability) a quantum computer could be very promising. One of the major challenges is to come up with problems, algorithms and solutions that take advantage of quantum computers. This often means we have to think completely out of the box. Problems need to be transformed to situations where a quantum computer is beneficial. This often requires a different mindset than writing classical software.<br>But the benefits can be extremely huge and rewarding.</p><p>Developing software for quantum computers is therefore non-trivial. There are currently a number of known algorithms and areas where we can benefit from quantum computers. One of the most famous algorithms is Shor’s algorithm, that allows a quantum computer to factor large integers very fast, thereby jeopardizing many current encryption techniques.<br>But we need more research, more algorithms, more software to leverage the full potential of quantum computing. While a number of extremely bright physicists are working on making quantum computers a reality, software developers can in parallel work on software that can run on those quantum computers. Today, there are a number of companies that created quantum computers with a very limited number of qubits. Those early prototypes are not yet ready for mass production, but they are good enough to validate a number of concepts.</p><p>There are about 12 million Java developers. The Java platform powers a large number of applications, in many different areas. With this book, I want to give those 12 million Java developers the opportunity to experiment with quantum computing, using a Java-based quantum computing simulator.<br>While progress is being made on the hardware, Java developers can work on applications that will leverage real hardware once available. Those applications can be in the financial sector, securing transactions, solving optimization problems, or they can be used to boost medical research.</p><p>Quantum computing may huge a huge impact. As a Java developer, you can be part of this revolution. You don’t have to wait until others defined what you can do. You can start today writing quantum software, and think about potential applications.</p><blockquote><em>The book contains a number of samples that are available on github at </em><a href="https://github.com/johanvos/quantumjava"><em>https://github.com/johanvos/quantumjava</em></a></blockquote><blockquote><em>The samples use a Java-based quantum simulator, which is available on github at </em><a href="https://github.com/gluonhq/strange"><em>https://github.com/gluonhq/strange</em></a></blockquote><p>The book itself is available from <a href="https://www.manning.com/books/quantum-computing-for-java-developers?a_aid=quantumjava&amp;a_bid=e5166ab9">Manning</a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ecbbb39f2417" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How mobile apps benefit from Serverless and Gluon CloudLink]]></title>
            <link>https://medium.com/@johanvos_42743/how-mobile-apps-benefit-from-serverless-and-gluon-cloudlink-8139f7de7cae?source=rss-aa47826adca6------2</link>
            <guid isPermaLink="false">https://medium.com/p/8139f7de7cae</guid>
            <category><![CDATA[devoxx]]></category>
            <category><![CDATA[serverless]]></category>
            <category><![CDATA[aws-lambda]]></category>
            <category><![CDATA[java]]></category>
            <category><![CDATA[mobile]]></category>
            <dc:creator><![CDATA[Johan Vos]]></dc:creator>
            <pubDate>Tue, 15 May 2018 10:01:43 GMT</pubDate>
            <atom:updated>2018-05-15T10:17:20.113Z</atom:updated>
            <content:encoded><![CDATA[<p>The mobile app that is used at the <a href="http://devoxx.com/">Devoxx conferences</a> is created with 100% Java code using the <a href="https://gluonhq.com/products/mobile">Gluon Mobile</a> and <a href="https://gluonhq.com/products/cloudlink">Gluon CloudLink</a> products. It is developed in an open-source project hosted at <a href="https://github.com/devoxx/MyDevoxxGluon">https://github.com/devoxx/MyDevoxxGluon</a></p><p>With the mobile app, attendees can schedule sessions, vote for talks, exhibitors can scan badges, and there is much more functionality that is being extended with every conference.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/720/1*WrHBsUqmgY3vyvKYe3beKg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/750/1*1NMFicU-bg0iJYsBid9Img.png" /></figure><p>Last week at the <a href="https://www.devoxx.co.uk/">Devoxx UK conference</a>, the app was ready to be used. The evening before the conference started, however, someone noticed that the start time for all sessions was one hour off.</p><p>At this moment, each Devoxx conference has its own backend serving session information.There was a timezone conflict between two of the backend components, and there was no time to fix it in the backend.</p><p>Fixing it in the mobile client would be a small code effort, but then the app has to go through the deploy cycles of the App Store and the Play Store.</p><p>That is a process that can take days, and even when the corrected apps are in the stores, you don’t know when all users have updated their version to the latest one. With more than 10,000 users of this mobile app, it is impossible to synchronise deployments.</p><p>For this particular issue, this would result in some users having the correct start times, while other users had to substract one hour. That would be very chaotic.</p><p>One of the features of Gluon CloudLink that I like very much is that it moves lots of the configuration options from the mobile client to Gluon CloudLink, which can be configured using a simple web portal at <a href="https://gluon.io/">https://gluon.io</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zj-w0GapIQ5B9Mqz_tVmhQ.png" /><figcaption>Mobile apps use Gluon CloudLink to talk to backend applications</figcaption></figure><p>The Devoxx app uses a <a href="http://docs.gluonhq.com/cloudlink/#_remote_functions">Gluon Remote Function</a> in order to retrieve the sessions.</p><p>In the <a href="https://github.com/devoxx/MyDevoxxGluon/blob/master/DevoxxClientMobile/src/main/java/com/devoxx/service/DevoxxService.java#L429">client code</a>, this is just the name of the function, with some parameters:</p><pre>RemoteFunctionList fnSessions = RemoteFunctionBuilder.create(“sessions”)<br> .param(“cfpEndpoint”, getConference().getCfpEndpoint())<br> .param(“conferenceId”, getConference().getId())<br> .list();</pre><p>When the sessions have to be retrieved, the mobile app sends a request to Gluon CloudLink, where that Remote Function (“sessions”) is mapped to an <a href="https://aws.amazon.com/lambda/">AWS Lambda</a> (a serverless function). The code for this serverless function is also available in the <a href="https://github.com/devoxx/MyDevoxxGluon/blob/master/DevoxxRemoteFunctions/src/main/java/com/gluonhq/devoxx/serverless/retrievesessions/SessionsRetriever.java">Devoxx github repository</a>.</p><p>The function will retrieve data from the specified endpoint (which is different for each Devoxx conference), and do some limited processing.</p><p>It is in this part of limited processing where we could modify the start date of the sessions. In short, we added a line that substracted one hour from the start date that was passed from the backend:</p><pre>if (field.equals(&quot;fromTimeMillis&quot;) || field.equals(&quot;toTimeMillis&quot;)) {<br>    transformedSession.add(field,     session.getJsonNumber(field).longValue() — 3600_000l);<br>}</pre><p>Rather than changing and redeploying the backend, or changing and redistributing the mobile apps, we quickly created a new Lambda function, uploaded it, and reconfigured Gluon CloudLink to use that Lambda function when a client asked to retrieve the sessions.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3DQi-SA1K_JhjEKRDn4A3w.png" /></figure><p>I often get the question why developers should use middleware like Gluon CloudLink, instead of doing all communication hard-coded in the mobile app. There are a number of very good reasons for this that are explained at <a href="http://gluonhq.com/products/cloudlink">http://gluonhq.com/products/cloudlink</a>, including increased security. But simply the flexibility should already be a good enough reason to do so. While direct REST connections works fine for simple demos and static use cases, reality teaches us that things change in enterprise systems and that client systems need to react immediately on those changes.</p><p>The lifecycle of mobile apps is completely different from the lifecycle of enterprise applications. Using middleware (e.g. Gluon CloudLink) allows you to act much faster when changes are applied to a back-end system, or when bugs or security issues are discovered.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8139f7de7cae" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[A shell for prototyping scientific java applications]]></title>
            <link>https://medium.com/@johanvos_42743/a-shell-for-prototyping-scientific-java-applications-913463b530fb?source=rss-aa47826adca6------2</link>
            <guid isPermaLink="false">https://medium.com/p/913463b530fb</guid>
            <category><![CDATA[javafx]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[java]]></category>
            <dc:creator><![CDATA[Johan Vos]]></dc:creator>
            <pubDate>Thu, 05 Apr 2018 07:36:56 GMT</pubDate>
            <atom:updated>2018-04-05T09:49:56.533Z</atom:updated>
            <content:encoded><![CDATA[<p>As I wrote in a <a href="https://medium.com/@johanvos_42743/my-history-with-end-to-end-java-in-the-community-b96393c0ebae">previous post</a>, I worked on data processing and visualization for my PhD in applied physics. It sparked my work on Java, although I didn’t use Java for that particular part.</p><p>Like many researchers, I felt the overhead of creating an application with tests and a build environment, compiling and running it, was too high for some quick experiments. I needed to create a simple plot, change some parameters, plot again, and so on.</p><p>Clearly, Java has a number of benefits. For a long time, it is the number one language on <a href="https://www.tiobe.com/tiobe-index/">Tiobe</a>, and with 12 million developers worldwide it is easy to find a Java developer near you. Java has security as one of its corner stones. Add multi-threading, garbage collection and a vibrant ecosystem with lots of great libraries, and it is clear that Java is a very powerful platform.</p><p>There are some great scientific libraries available for Java. I’m a big supporter of <a href="https://skymind.ai/">SkyMind</a>, and their <a href="https://deeplearning4j.org/">deeplearning4j</a> and <a href="https://nd4j.org/">nd4j</a> API’s allow developers to create high-performant AI and numerical applications using Java. For the visualization, there are a number of tools on top of the JavaFX API’s like <a href="https://github.com/FXyz/FXyz">FXyz</a> that can render complex 3D scenes leveraging hardware acceleration.</p><p>It would be great though, if that same Java language can also be used during research and prototyping. In that phase, things like security and scalability might be less important. But it would be a huge time and cost saver if the exact same code that you are using in research and development can also be used in production — where security and scalability do matter.</p><p>Since Java 9, Java contains <a href="https://docs.oracle.com/javase/9/jshell/introduction-jshell.htm">JShell</a>, which is a REPL (Read-Eval-Print Loop) for Java. This is a very important piece for doing research and prototyping. Rather then editing code, compiling, running, debugging, the REPL approach is often easier if you need immediate feedback from a single expression without having to go through the other steps</p><p>I did some experiments with extending JShell with <a href="https://github.com/bitterfox/JavaFXSupportsForJShell">an existing JavaFX wrapper</a>, the Nd4j libraries, and a wrapper for the JavaFX Chart API’s.</p><p>The result is a simple shell-based application that does not require build files (no ant/maven/gradle required) and that gives immediate access to the API’s. Code snippets can be saved and restored, and also embedded in end-to-end Java applications.</p><p>It is still very rough, but <a href="https://www.youtube.com/watch?v=bynvkU9raKI">this screencast</a> shows how to create an INDArray using Nd4j and doing some basic matrix operations.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/870/0*wnf-6FcVCYy4UUyz." /></figure><p>A <a href="https://www.youtube.com/watch?v=Z4vt1wdDoMk">second screencast</a> shows how to create a simple function and plot the values for a specific range, thereby changing some parameters.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/637/0*SXgnRCz0RVED6I8e." /></figure><p>Since we are doing some work with (distributed) deep learning using Java in the Mobile Enterprise at <a href="https://gluonhq.com/">Gluon</a> recently (e.g. see <a href="https://github.com/gluonhq/gluon-samples/tree/master/deeplearning-linearclassifier">https://github.com/gluonhq/gluon-samples/tree/master/deeplearning-linearclassifier</a>), I plan to enhance those experiments since I found out it really saves me time to do some quick prototyping in a REPL environment.</p><p>If you think this is useful for you too, please contact me with any kind of feedback.</p><p><em>Originally published at </em><a href="https://johanvos.wordpress.com/2018/04/05/a-shell-for-prototyping-scientific-java-applications/"><em>johanvos.wordpress.com</em></a><em> on April 5, 2018.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=913463b530fb" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[My history with end-to-end Java in the community]]></title>
            <link>https://medium.com/@johanvos_42743/my-history-with-end-to-end-java-in-the-community-b96393c0ebae?source=rss-aa47826adca6------2</link>
            <guid isPermaLink="false">https://medium.com/p/b96393c0ebae</guid>
            <category><![CDATA[java]]></category>
            <dc:creator><![CDATA[Johan Vos]]></dc:creator>
            <pubDate>Wed, 28 Feb 2018 10:08:59 GMT</pubDate>
            <atom:updated>2018-03-01T15:31:07.786Z</atom:updated>
            <content:encoded><![CDATA[<p>Some recent evolutions in Java made me think about the history of Java and how I looked at the development of the language. The move from Java EE to <a href="https://projects.eclipse.org/projects/ee4j">EE4J</a> and beyond, and the opening of client-side Java are clear signs that Java is a community platform rather than a company-controlled language.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rpK05hOuCuHP7tAq2W_1Iw.jpeg" /><figcaption>Nothing vanishes without a trace</figcaption></figure><p>THE EARLY DAYS</p><p>When I started my PhD in Applied Physics at <a href="https://www.tudelft.nl/en/">Delft University of Technology</a> more than 20 years ago, one of the main challenges was to combine computations and visualizations of lots of data.<br> My work was done as a collaboration between the faculties of Aerospace Engineering and Applied Sciences, and those groups are used to deal with huge amounts of data. Most of the work was done using Fortran or C/C++. I still love these languages and I admire the amazing work people have done with them.</p><p>But around that time (1996), there was a new language that introduced me to Object Oriented programming, and the advantages of encapsulation, reusability, multi-threading, security,… and that was Java.</p><p>At that moment, there were 2 obstacles preventing me from using Java for my PhD thesis: it didn’t work on Linux (I never managed to fluently move from the Apple ][ to the Macintosh without losing productivity so I converted to Linux) and it was slow.</p><p>I joined the <a href="https://web.archive.org/web/20070807032743/http://www.blackdown.org/java-linux/java-linux-contact.html">Blackdown</a> team, a bunch of people with the goal of porting Java to Linux, and we fixed that first issue. I still remember the weird looks and comments we got in those days: “Linux? Seriously? Who would ever want to run Java on Linux?”. Well, we wanted to do that so we did it.</p><p>I also do remember that in the initial days, we occasionally got blobs of new code from Sun Microsystems. The first time that the Swing code was added, I was very hopeful as I saw funny animations that might help me with my PhD.<br> I compiled the sources on my Sparc Station (I think it was a sparc 10) at work. It took 23 hours and 45 minutes to complete. Pretty long, but that’s ok — the end developer doesn’t have to compile Swing from code.</p><p>However, the performance of Java in the late nineties, and the lack of a real great UI framework forced me to use Fortran and C and I used the excellent Seismic Unix package (<a href="https://en.wikipedia.org/wiki/Seismic_Unix">https://en.wikipedia.org/wiki/Seismic_Unix</a>) for my visuals.</p><p>EARLY 2K</p><p>Gradually, the HotSpot compiler became better and better, and for a number of reasons the Java programming language made a lot of sense for enterprise backend development. I have been following the Java Enterprise development since iPlanet, the Sun One appserver, the release of the <a href="https://spring.io/">Spring Framework</a> and the <a href="https://javaee.github.io/glassfish/">GlassFish Application Server</a>. Writing Enterprise Applications in Java became the standard, for very good reasons. Java is available on almost all enterprise operating systems, and the platform and tools drastically increase developer productivity.</p><p>While doing lots of work on the enterprise side, I also spent time on embedded and mobile development as well. I wrote software for a telematics system, and we expanded that to mobile devices in general. Well, the “in general” is not completely accurate. At that time, the mobile landscape was pretty chaotic. We had the software that worked on the embedded telematics device also working on the Compaq iPAQ, the Sharp Zaurus (bought at JavaOne 2002) and a bunch of other devices. There were two very big hurdles that we had to face: 1. there was no standard API for Java development in general and device management in particular</p><p>2. there was no way we could automatically provision our apps to end-user devices. Telco’s and device manufacturers kept control of the local apps.</p><p>The business model of the telematics company I worked for was mainly server-side focused: allow software companies to create telematics software (e.g. infotainment), and manage the delivery of this software in a secure, controlled and managed way to the on board telematics devices. That requires lots of business tools like billing, logging, administration,…</p><p>While the business model clearly was server-focused, everybody realized that in order to get data to the server, you need clients to generate this data, and send it to your server.</p><p>In general, I’ve been advocating for a Mobile First — Cloud First strategy for a long time. If you want incoming traffic to your cloud, you better start where the data originates from.</p><p>TODAY</p><p>The mobile and embedded world have changed. From a technical point, Java on the client has never been in a better shape.<br> We have <a href="https://www.oracle.com/java/java9.html">Java 9</a> working on desktop, laptop, mobile, embedded. We have JavaFX as a modern, cross-platform UI framework that works on desktop, laptop, mobile, embedded, leveraging hardware accelerated rendering.</p><p>Java developers are now capable of not only writing enterprise applications, but also controlling client apps that generate the data that feeds their enterprise applications.</p><p>The possibilities of Java on the client are immense. One of the key features of Java is that security is built-in from day 1. This is so much needed in todays client development. Cyber security is one of the things that worries me very much. Client developers have a huge responsibility in this area, and Java helps them securing the application and context.<br> Java is also very powerful, and using JNI you can leverage native libraries that unlock features like deep learning. You can write apps using deep learning algorithms using the same code on mobile and on clients. Doing some local processing on the client can eliminate the need of sending raw (privacy sensitive data) to servers.</p><p>As Java became bigger, it became obvious that there is no single company that can do all the development in all the corners of Java. When Oracle acquired Sun, it quickly became clear that Oracle is not interested in all aspects of Java. Oracle is a cloud-focused company, hence their investments in Java focus on Java for the Cloud.</p><p>But there are many other companies that benefit from Java in other areas, or that want to realize a link between client development in Java towards Enterprise development in Java on their clouds.</p><p>The Java Client ecosystem is very much alive and active. Every month, more than 30,000 developers download <a href="http://gluonhq.com/products/scene-builder/">Scene Builder</a> from <a href="https://gluonhq.com/">Gluon</a>. Scene Builder is a tool that allow developers to easily create JavaFX user interfaces in an intuitive way.<br> There are a number of excellent frameworks and libraries, that are created by many enthusiast developers. Every month, 2500 developers download the <a href="https://gluonhq.com/get-started/ide-plugins/">Gluon Mobile plugin</a> for their IDE, allowing them to create cross-platform Java apps for iOS and Android, written in 100% Java. And this number is increasing month by month. While over the years, Oracle has invested a lot in Java on the Client, it is clear that the wider community is now taking over.</p><p>As part of this movement, I became the project lead for the <a href="http://openjdk.java.net/projects/mobile/">OpenJDK Mobile</a> project, where the goal is to make sure the OpenJDK classes and VM code works on mobile platforms (iOS/Android).</p><p>In order to encourage interested third parties to be involved in the development of JavaFX, we created a mirror at GitHub at <a href="https://github.com/javafxports/openjdk-jfx">https://github.com/javafxports/openjdk-jfx</a>. This mirror is automatically pulling changes from the official OpenJFX repository, so its master branch is up to date with the official repository. Developers can now fork the very latest JavaFX code, do their own experiments,</p><p>and hopefully contribute something back. Companies can evaluate new features in a more flexible way.</p><p>In summary, Java is an amazing thing. It’s a platform and a language, it works on enterprise cloud systems, on desktop, mobile, and embedded. It doesn’t fix all of the problems in IT, but one of its biggest assets is the fact that it is available everywhere and allows you to create robust, secure apps, leveraging tons of third party tools (IDE’s) and libraries. It is an ecosystem that is much bigger than a single company.<br> And if you want to be part of the Java success, you can just do it.</p><p><a href="https://johanvos.wordpress.com/author/johanvos/">View all posts by johanvos</a></p><p><strong>Published</strong> February 28, 2018February 28, 2018</p><p><em>Originally published at </em><a href="https://johanvos.wordpress.com/2018/02/28/myjavahistory/"><em>johanvos.wordpress.com</em></a><em> on February 28, 2018.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b96393c0ebae" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[In an increasingly complex world, Java takes the right move]]></title>
            <link>https://medium.com/@johanvos_42743/in-an-increasingly-complex-world-java-takes-the-right-move-ea11c757e76e?source=rss-aa47826adca6------2</link>
            <guid isPermaLink="false">https://medium.com/p/ea11c757e76e</guid>
            <category><![CDATA[java]]></category>
            <category><![CDATA[programming]]></category>
            <dc:creator><![CDATA[Johan Vos]]></dc:creator>
            <pubDate>Tue, 09 Jan 2018 11:32:22 GMT</pubDate>
            <atom:updated>2018-01-09T11:32:22.484Z</atom:updated>
            <content:encoded><![CDATA[<p>The world we live in, is getting more and more complex. A growing number of things, servers and cloud components are connected to each other, more logic is delegated to AI algorithms, end-users increasingly manage their lives from mobile devices.</p><p>This evolution is in part due to fast and great advances in software and hardware, but it also puts an increasing pressure on the IT industry. The average IT project becomes more complex, and almost always involves IT processes that are controlled by a different entity (e.g. a ticketing system needs to leverage a third party payment provider).</p><p>Due to this increased complexity, many projects are failing. They don’t deliver on time, they have major security or privacy holes, the budget is exceeded, or they simply don’t work.</p><p>The best approach to deal with more complex requests, is to reduce complexity in the toolset you use to address the requests. An example of this is the increased popularity of microservices. With the increasingly important requirements that enterprise components need to be agile, modular, scalable and isolated when needed, using a microservices approach instead of a monolith increases the chances a project will become successful.</p><p>But not only the patterns have to be modified. The underlying technology stack should be as simple and transparent as possible. It has to be easy for developers to understand what is happening, and why it is happening.</p><p>The <strong>Java Platform</strong> is moving into this direction, with two very important decisions.</p><p>First, Jigsaw has been released. The path to the Java <strong>Modularisation</strong> has been delayed a few times because of technical and less technical discussions, but Java 9 contains the breakup of the Java core classes into modules. For Java, this is pretty disruptive. Backward compatibility is extremely important in the Java world.</p><p>With Java 9, things that used to work might not work anymore. The breaking changes are very minimal, but still there is often some work to do when migrating from Java 8 to Java 9.</p><p>This drastic change was needed in order for Java to stay relevant in the future. The Java core classes were growing fast with every release. Java can be used for an increasing number of applications, but not all applications require all core components at the same moment. On a Cloud environment, the Java UI APIs are not used. In Mobile or embedded devices, many enterprise oriented APIs are not used and just make the total result bigger.</p><p>With the jlink tool, developers can now assemble their own Java Runtime Image that contains the modules they need. Every developer, every project owner can now create an own Java Runtime Image, based on the required set of modules. This is extremely more convenient than the “profiles” we used to have in the past.</p><p>By only including modules you need for your project in your Java Runtime Image, you reduce the risk of failing code and it makes it much easier to find out what is going wrong in case something doesn’t work as expected.</p><p>The other big item in the Java world is <strong>Graal</strong>. There are a number of definitions floating around for Graal, but at its core it is a Java API and implementation that allows for high-performant dynamic compiling. While that might sound boring to some, there are a myriad of areas where Graal will make a huge difference.</p><p>First of all, the Graal compiler can replace the C2 compiler that currently compiles frequently used Java methods into fast native code. The C2 compiler is the component that makes Java applications very fast — after a relative slow startup. The code for that compiler is part of the hotspot component in the OpenJDK repository, so everyone can see and analyse it. It does a great job, but it is an extremely complex beast that is difficult to maintain and move forward.</p><p>Graal, on the other hand, is written in Java, and it is much easier to understand and maintain. It is developed in an open source context, and more and more people are looking into it, and working on it.</p><p>Apart from the dynamic runtime compiler, Graal offers a number of other interesting advantages. First, instead of runtime compilation, it is also possible to compile Java bytecode ahead of time (AOT), and have your methods already executing native code when they are called the first time. This offers huge opportunities in two worlds that are often seen as distinct, but that share more than often thought: serverless and mobile. In a serverless platform, where a large number of typically small functions are executed, startup time is key. If a smart compiler can make sure the bytecode is compiled before requests come in, that can save a lot on startup time. And if that is combined with runtime profiling, it is possible to do smart recompilation based on real-usage statistics.</p><p>Clearly, in mobile startup time is important as well, but on some platforms it is not even allowed to use runtime compilation, and in that case an AOT is required. At Gluon, we have our own AOT to compile Java bytecode into native iOS code, but we are looking into Graal as well.</p><p>Graal is often described as a polyglot runtime for the JVM. One of the Graal subprojects, Truffle, allows to implement other languages and parsers, and have those run on top of Graal. Although those projects are still very young, they already show huge performance gains can be achieved.</p><p>Although Java can be considered a mature language (it is approaching its 25th birthday), it is still very relevant in today’s complex world. While other platforms become more complex in order to offer more functionality, Java moves towards more simplicity. There are a number of well-known cases where companies started to write their software stack in web-based frameworks (HTML/javascript) because it often seems those are easier to get started with. Once things become serious though, and transactions, scalability, code reuse, proven libraries and a huge developer pool become important, those companies often switch to Java. With the recent moves of the Java platform towards simplicity (I didn’t discuss JShell but that clearly helps making Java simpler as well), it makes sense for many companies to choose Java from day one.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ea11c757e76e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Serverless Functions with Gluon CloudLink and Fn Project]]></title>
            <link>https://medium.com/oracledevs/serverless-functions-with-gluon-cloudlink-and-fn-project-540752904d9b?source=rss-aa47826adca6------2</link>
            <guid isPermaLink="false">https://medium.com/p/540752904d9b</guid>
            <category><![CDATA[javafx]]></category>
            <category><![CDATA[java]]></category>
            <category><![CDATA[fn]]></category>
            <category><![CDATA[serverless]]></category>
            <category><![CDATA[oracle-cloud]]></category>
            <dc:creator><![CDATA[Johan Vos]]></dc:creator>
            <pubDate>Thu, 12 Oct 2017 19:25:53 GMT</pubDate>
            <atom:updated>2017-10-12T19:31:48.236Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/300/0*hxvXez1uQPCJ8FAQ.png" /><figcaption><a href="http://fnproject.io/">fnproject.io</a></figcaption></figure><p>Over the last year or so there has been a growing buzz around ‘serverless’ functionality, also known as ‘Functions as a Service’ (or FaaS). This often simply boils down to being able to execute code without going through the hassle of setting up and managing infrastructure (and does indeed still rely on servers!</p><p>In the case of mobile applications, serverless functions add a number of benefits:</p><ul><li>The less code on the client, the lesser the chance of client-side issues — this reduces the need for deploying hot fixes to customers and end users.</li><li>Speaking of which — client code is hard to update — and it is more than just sending a new build up to the various app stores. Changes require internal review and acceptance testing, and only then deployment to the various app stores, which typically takes days. In case of hot fixes, this is often not acceptable.</li><li>Client code works with simple objects, where enterprise code often require more complex calls and flows, using more parameters and configurations. The code to convert the enterprise result into a simple client object can be executed as a Function on a remote server, rather than burdening the client and the network with the overhead.</li></ul><p>For this reason, <a href="https://gluonhq.com/products/cloudlink">Gluon CloudLink</a> supports <a href="http://docs.gluonhq.com/cloudlink/#_remote_functions">remote functions</a>. Up until today, Gluon CloudLink already enabled client apps to call into it to run a remote function, and it could then transparently call zero or more REST endpoints and zero or more Amazon AWS Lambda funcions.</p><p>At the JavaOne 2017 conference, <a href="https://blogs.oracle.com/developers/announcing-fn">Oracle announced</a> the <a href="http://fnproject.io/">Fn Project</a>, an open source serverless functions platform that runs anywhere and supports running functions in every programming language. One of the major benefits of the Fn Project is that functions can be deployed on any system, including your local development system. That makes it very easy for developers to have short write-test-debug cycles.</p><p>As of this week, Gluon CloudLink has support for Fn Functions. Customers can write and build their own Fn functions, push them to a Docker repository, and have them run inside Gluon CloudLink’s infrastructure on a self-hosted Fn platform, when a mobile application requests them.</p><p>We will create more samples and tutorials for this. Meanwhile, in a nutshell this is how it works:</p><ol><li>Download/Install the <a href="http://fnproject.io/">Fn Project</a>. This allows you to create and test your function locally, before you push it to a docker repository.</li><li>Write your Fn function. A list of examples can be found in the <a href="https://github.com/fnproject/fn">GitHub repository</a>.</li></ol><pre>mkdir myfunction <br>cd myfunction<br>fn init — name myfunction — runtime java<br>fn run</pre><ol><li>Build and push your Fn function to a public docker repository, i.e. <a href="https://hub.docker.com/">Docker Hub</a>:</li></ol><pre>fn build<br>fn push --registry DOCKER_HUB_USERNAME</pre><ol><li>Create a remote function in Gluon CloudLink referencing the image in the docker repository [See screenshot below]</li><li>Test the remote function by clicking the Test button [See other screenshot below]</li><li>Call the remote function from a Mobile Application</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/512/0*dkgDAs-NIrKNbc3C." /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/599/0*-CVFtQD2ea-gE4o9." /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/0*AF3YWKMszoiT3CjH." /></figure><p><em>Originally posted on </em><a href="https://gluonhq.com/serverless-functions-gluon-cloudlink-oracle-fn/"><em>gluonhq.com</em></a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=540752904d9b" width="1" height="1" alt=""><hr><p><a href="https://medium.com/oracledevs/serverless-functions-with-gluon-cloudlink-and-fn-project-540752904d9b">Serverless Functions with Gluon CloudLink and Fn Project</a> was originally published in <a href="https://medium.com/oracledevs">Oracle Developers</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Deep space trajectory exploration with JavaFX, Gluon CloudLink, and Oracle Cloud]]></title>
            <link>https://medium.com/oracledevs/deep-space-trajectory-exploration-with-javafx-gluon-cloudlink-and-oracle-cloud-866ee5648ee?source=rss-aa47826adca6------2</link>
            <guid isPermaLink="false">https://medium.com/p/866ee5648ee</guid>
            <category><![CDATA[javafx]]></category>
            <category><![CDATA[mobile]]></category>
            <category><![CDATA[oracle-cloud]]></category>
            <category><![CDATA[java]]></category>
            <category><![CDATA[cloud-computing]]></category>
            <dc:creator><![CDATA[Johan Vos]]></dc:creator>
            <pubDate>Thu, 14 Sep 2017 09:46:55 GMT</pubDate>
            <atom:updated>2017-09-14T19:17:37.176Z</atom:updated>
            <content:encoded><![CDATA[<p>Today Oracle released a short video where they interview Sean Phillips and Diane Davis from <a href="https://ai-solutions.com/">a.i. Solutions</a>. In it they talk about the architecture behind their software solution for doing incredibly complex deep space trajectory calculations. Sean has presented this software in the past at JavaOne and Oracle Code conferences, and it is always fascinating seeing the amazing visualizations that are generated in a rich desktop application on the users machine using JavaFX. For anyone unfamiliar with this software, a.i. Solutions have a <a href="https://ai-solutions.com/deep-space-trajectory-design-software-ocean-world-orbiters-human-space-flight/">blog post</a> containing some videos of the software in action.</p><h3>Sean Phillips on Twitter</h3><p>@johanvos Gluon&#39;s #CloudLink is letting me use Oracle&#39;s #BareMetal cloud to compute spacecraft trajectories beyond Earth&#39;s clouds.</p><p>In the video embedded below, we get to see how this works behind the scenes, and it is through a combination of <a href="https://cloud.oracle.com/container-opc">Oracle Cloud Container Services</a>, <a href="https://cloud.oracle.com/infrastructure/compute">Oracle Bare Metal Compute services</a>, and <a href="https://gluonhq.com/products/cloudlink">Gluon CloudLink</a>.</p><p>Due to the complexities of the trajectory computations, doing the calculations on desktop or mobile devices would take a very long time. Therefore, the JavaFX desktop application offloads most computations to an Oracle Bare Metal compute service which provides massive computing power. A tight integration between the client application and the server computations is needed though, as changing one parameter on the client may result in new or additional computations to be performed.</p><p>This communication between the client application and the Oracle Bare Metal compute service is done through Gluon CloudLink, as this enables a simple approach to connecting rich user interfaces to one or more cloud backends without the need of boilerplate code that takes into account things like connection issues, security, (un)marshalling,… The <a href="http://docs.gluonhq.com/samples/functionmapper/">Gluon CloudLink Function Builder</a> is used to configure the interactions between the client application and the back-end system.</p><p>Once the computations are completed on the Oracle Cloud, the results then return through Gluon CloudLink and are automatically synced into the user interface of the requesting user, taking into account the fact that the user in the meantime might have changed some settings, e.g. filter parameters. Because of this architecture, a.i. Solutions are able to extend the deployment of their software onto mobile devices and tablets. In fact, their existing JavaFX investment transfers directly onto mobile thanks to <a href="https://gluonhq.com/products/mobile">Gluon Mobile</a>.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FWO34EkYPPpc%3Ffeature%3Doembed&amp;url=http%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DWO34EkYPPpc&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FWO34EkYPPpc%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/583481299a045dcc5b2aeaaef8348c49/href">https://medium.com/media/583481299a045dcc5b2aeaaef8348c49/href</a></iframe><p><em>Originally published at </em><a href="https://gluonhq.com/deep-space-trajectory-exploration-javafx-gluon-cloudlink-oracle-cloud/"><em>gluonhq.com</em></a><em> on September 14, 2017.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=866ee5648ee" width="1" height="1" alt=""><hr><p><a href="https://medium.com/oracledevs/deep-space-trajectory-exploration-with-javafx-gluon-cloudlink-and-oracle-cloud-866ee5648ee">Deep space trajectory exploration with JavaFX, Gluon CloudLink, and Oracle Cloud</a> was originally published in <a href="https://medium.com/oracledevs">Oracle Developers</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>