• Home
  • About
  • Publication Contributions
  • Mindmap Index
  • API Platform

Phil (aka MP3Monster)'s Blog

~ from Technology to Music

Phil (aka MP3Monster)'s Blog

Tag Archives: GraalVM

GraalVM – why a different VM?

09 Thursday Aug 2018

Posted by mp3monster in development, General, Oracle, Technology

≈ Leave a comment

Tags

container, GraalVM, java, Oracle, polyglot

If you read press around Java you’ll have come across references to GraalVM. So what is it and why would I use it?

There is an excellent podcast from Software Engineering Daily that digs into the subject and can be found here and here. But let draw out some of the reasons as to why GraalVM is interesting.

Whilst multiple languages on top of the JVM is nothing new, such as Scala , Kotlin, and Groovy to name a few, GraalVM through the use of its Truffle framework takes it a new level. Truffle provides an Abstract Syntax Tree (AST) which describes the language syntax (more here about AST). The net result is any language can be described and therefore executed using the GraalVM. To this end the GraalVM team have got Node and JavaScript ported in addition to defining existing languages using this approach. Not all of this is proven robustly in production, but some of the languages VM certainly is, for example Twitter have been using the Scala port.

Because the languages are described through the same framework this means the work to optimise the VM performance becomes a lot easier.

It would be easy to assume that using the framework would mean the execution of languages using this mechanism would slow be slower. But, Truffle works by translating the code to standard byte code before execution, so ‘ported’ languages are now no less efficient than Java come runtime.

There is an interesting bi-product of this model, that at runtime with the right object exposures it is possible for multiple languages to interact with the same object easily, no JNI or dropping to the lowest common denominator such as a JSON+REST. This does raise interesting possibilities for thick client solutions or polyglot monoliths!

Probably one of the biggest pay offs for using GraalVM and its ability to run multiple languages is that the base Container images can be simplified as you don’t need different container images. This makes the work of patching and testing configurations of these container a lot simpler as the permutations will drop, particularly for organisations that have wholehearted embraced polyglot micro-service ideas.

One common reason for changing implementations of the JVM particularly at the more performance sensitive use cases (checkout Azul as an example) is how the JVM is optimised and the JIT algorithms and processes particularly the Garbage Collector work (checkout this list of JVMs. For example GraalVM will provide better performance for processes that less heap hungry than Oracle’s JVM.

It is interesting that Oracle are investing in a new VM when it wasn’t that long ago that JRockit was wound down. Given the legal dispute between Oracle and Google (see here) the new VM would give Google a means to escape from the copyright breaches and retain support for Java.

Oracle Ace

TOGAF 9

API Platform Book

Oracle Cloud Integration Book

Categories

  • App Ideas
  • Books
    • Book Reviews
    • Oracle Press
    • Packt
  • Enterprise architecture
  • General
    • economy
    • LinkedIn
    • Website
  • Music
    • Music Resources
    • Music Reviews
  • Photography
  • Technology
    • APIs & microservices
    • chatbots
    • Cloud
    • Dev Meetup
    • development
    • mindmap
    • OMESA
    • Oracle
      • API Platform CS
      • ICS
      • ITSO & OEAF
      • Java Cloud
      • NodeJS Cloud
    • TOGAF
    • UKOUG
  • xxRetired

Twitter

  • UKOUG Midlands Tech Summit blog.mp3monster.org/2019/02/20/uko… https://t.co/CFQ3PT6vW1Next Tweet: 14 hours ago
  • Whilst a lot of things about organizational and individual effectivness are well known and common sense, it is inte… twitter.com/i/web/status/1…Next Tweet: 1 day ago
  • When working in a distributed organization, the sense of belonging needs a lot more effort lnkd.in/djnQghqNext Tweet: 1 day ago
  • An intriguing article about how people change in a work environment and challenges some assertions about how people… twitter.com/i/web/status/1…Next Tweet: 2 days ago
  • What is really meant and expected when we talking about Hybrid IT? lnkd.in/dQ8_E6HNext Tweet: 2 days ago
Follow @mp3monster

OraWorld

OraWorld

Oracle Scene

Enter your email address to subscribe to this blog and receive notifications of new posts by email.

Join 453 other followers

Monster's Other Web Content

  • All My Links
  • Amazon Author entry
  • API Platform
  • Dev Meetup (co-managed)
  • ICS Book Website
  • Mindmaps
  • Monster's Photos
  • my Capgemini Profile
  • Oracle Community Directory
  • Packt Author Bio

RSS

RSS Feed RSS - Posts

RSS Feed RSS - Comments

Calendar

February 2019
M T W T F S S
« Jan    
 123
45678910
11121314151617
18192021222324
25262728  

Other Pages

  • About
    • Presenting Activities
  • API Platform
    • API Useful Resources
  • Mindmap Index
  • Publication Contributions

Oracle Dev Meetup London

Goodreads

Flickr Pics

Tears For FearsTears For FearsTears For FearsTears For Fears
More Photos

History

Social

  • View @mp3monster’s profile on Twitter
Follow Phil (aka MP3Monster)'s Blog on WordPress.com

Tags

6 Music Aaron Woody AIA album Ansible API apiary API Platform app applications BBC Big Data blog book books camel Capgemini cd CEP Cloud code concert conference data Design development download ebook enterprise free fusion Good Morning Nantwich Groovy Helidon ICS integration ITSO java JBoss jBPM JDeveloper London Luis Weir meetup Microservices mindmap MP3 Music OOW Oracle Oracle Press OTN PaaS Packt Packt Publishing Patterns Phill Jupitus PIP playlist podcast promotion Puppet reading Redhat release review Security SeeWhy SOA SOA Suite software Technology TOGAF UKOUG video

Blog at WordPress.com.

Cancel
Privacy & Cookies: This site uses cookies. By continuing to use this website, you agree to their use.
To find out more, including how to control cookies, see here: Our Cookie Policy