What is Polyglot Native?

Video overview of an ahead-of-time compiler for Java bytecode combined with a low-footprint VM
04 August 2017   12007

Java

 Popular general-purpose programming language and computing platform

Execution of JVM-based programs uses bytecode loading and interpretation, just-in-time compilation, and monolithic heaps causes JVM-based programs to start-up slowly with a high memory footprint. In recent years, different projects were developed to address these issues:
ahead-of-time compilation for the JVM (JEP 295) improves on JVM startup time while Scala Native and Kotlin/Native provide language-specific solutions by compiling code with LLVM and providing language-specific runtimes.

Now Polyglot Native is presented an ahead-of-time compiler for Java bytecode combined with a low-footprint VM. With Polyglot Native, programs written in Kotlin, Scala, and other JVM-based languages have minimal startup time as they are compiled to native executables. Footprint of compiled programs is minimized by using a chunked heap and reducingnecessary program metadata.

In this talk, you will see:

  • the architecture of Polyglot Native and compare it to existing projects.
  • live-demo of a project that compiles code from Kotlin, Scala, Java, and C into a single binary executable.
  • intricacies of interoperability between Polyglot Native and C.

Google to Present Daydream Updates

IT giant reported on some cool new stuff for its virtual reality platform
25 September 2018   67

Google told that the Daydream virtual reality platform users will be able to run any Android-applications. This will allow to open your favorite programs and games without having to wait until the developers add support for VR. The function is considered experimental and is designed primarily for developers.

In addition, the company introduced the See-Through Mode, which allows the user to see what is in front of him, without removing the VR headset. Google also showed experimental controllers with 6 degrees of freedom, which are already available to some developers.

Opening an application in Daydream, the user will see it on a large virtual screen. A particular advantage of this will be in games where a larger screen allows you to achieve more comfort. For interaction with the application, classical controllers for the headset are used.

 

The new See-Through Mode actively uses WorldSence technology, which is implemented in Google's VR-headset and provides accurate tracking of the position in the space with a low delay time. Due to the fact that the cameras in the headset are located approximately at eye distance, the user also has an accurate perception of the depth. One of the consequences is the ability to play ping-pong without removing the headset.

 

The combination of these technologies also allows creating new products in the Augmented Reality area. For example, an interior designer could work on a new layout, adding virtual chairs, tables and other decorations on of the real room.

 

In addition to software innovations, Google also introduced new controllers, the main feature of which is the support of 6 degrees of freedom. In practice, this means that the user can comfortably work in virtual reality, bringing the naturalness of movements to the real world closer. Until now, such functionality was available only to expensive VR-headsets, created for the PC.

Instead of using expensive external cameras and sensors that require careful calibration, Google was able to get by with standard parts and machine learning technologies. This greatly reduced the cost of the device, which made it more affordable for customers