What is Java XSON?

Overview of high-performance Java serialization framework
11 August 2017   1838

XSON is a Java object serialization and deserialization framework. It supports the serialization of Java objects into byte arrays and deserialization from byte arrays to Java objects. 

XSOM Scheme
XSOM Scheme

Recently, a new version was released. Let's see what's inside!

  1. The new buffer package, the relevant class in this package, provides the allocation of the byte [] in the process of distribution, use, recycling management; further providing serialization speed and reducing the Full GC.
  2. Provides API support with offset content.
  3. Provides XCO object serialization and deserialization support.
  4. Provide support for extended configuration files.

Let's check how to use it with code for some basic stuff.

Add the dependency.

<dependency>
    <groupId>org.xson</groupId>
    <artifactId>xson</artifactId>
    <version>1.0.2</version>
</dependency>

Serialization

User user = new User();
// set...
byte[] data = XSON.encode(user);

Deserialization

// byte[] data
User user = XSON.decode(data);

Serialization and deserialization with offset content

int x = 6;
User user = new User();
// set...
byte[] data = XSON.encode(x, user);
// byte[] data
User user = XSON.decode(x, data);

Learn more about XSON at GitHub or official website

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