Valhalla hackathon on Primitives in Generics using Sublime Text 3 with Javatar

After 10 years of software development and 2 years doing paperwork and meetings, last week I did something unexpected. I went to a Bulgarian Java User Group (BGJUG) event. All the guys there are deeply involved in the Java world… and beer drinking. The topic was Primitives in Generics. Something that is being developed under […]

by Cvetelin Andreev

March 10, 2015

1 min read

hackathon wp7 - Valhalla hackathon on Primitives in Generics using Sublime Text 3 with Javatar

After 10 years of software development and 2 years doing paperwork and meetings, last week I did something unexpected. I went to a Bulgarian Java User Group (BGJUG) event. All the guys there are deeply involved in the Java world… and beer drinking.

The topic was Primitives in Generics. Something that is being developed under the Valhalla project (incubator for advanced Java VM and Language feature candidates) and expected in Java 10, year 2018.

Basically, Primitives in Generics means that you can write to following code:

 

[java]
ArrayList<int> list = new ArrayList<>();*
[/java]

or

[java]
public class MyClass <any T> {

}

MyClass<float> my = new MyClass<float>();
[/java]

 

 *Currently there are some limitations for the List interface and Primitives in Generics due to some conflicts.

 After the guys got the beer on the table there was a presentation and an actual hackathon. We took out the laptops, downloaded and compiled Valhalla, started to code and see what happens. Compiling, running, analyzing java bytecode through the “old-school” command line.

Amazing was the editor we were using. Since Eclipse and IntelliJ IDEA don’t support the new structures and special words in Valhalla we used Sublime Text 3 with Javatar which did a perfect job.

The presentation is available on the Valhalla home page (https://openjdk.java.net/projects/valhalla/).

I`m open for questions and ideas on the topic!

Categories

Cvetelin has been involved in startups (mostly tech) since 2003 year playing as (co-)founder, partner and occasionally Java full stack developer. Currently Full Stack Soldier, Startup activist and active blogger @ Dreamix. Plays, teaches and manages @ www.kabagaida.com. Founder of OfficeInTheWoods.com, fan of #futureofwork. Practice sustainable gardening and lifestyle. Runs a forest kindergarten near Sofia. Father of two.