java 8

Philly ETE 2016 #36 – Brian Goetz – From Concurrent to Parallel: Understanding Parallel Stream Performance in Java SE 8

As core counts continue to increase, how we exploit hardware parallelism in practice shifts from concurrency — using more cores to handle more user requests — to parallelism — using more cores to solve data-intensive problems faster. This talk will explore the different goals, tools, and techniques involved between these various approaches, and how to analyze a computation for potential parallelism, with specific attention to the parallel stream library in Java 8.

Making a Java SafeString that works with all unicode characters

In Java, there is an issue with String when using characters that take up more than 2 bytes in UTF-16. substring() and similar methods can split the character in the middle. I was thinking switching Strings to UTF-8 might be good, and there are currently two JEPs for Java 9 somewhat related to this. 226: UTF-8 Property Files and 254: Compact Strings. But thinking about this a little more, I don’t necessarily want a UTF-8 String class, but a String class that works with all unicode characters. Here’s how I did it.

Changing Java 8 – handling nulls with the AST

One aspect of Java 8 that would be nice to change is the handling of nulls. Can testName.getName() be changed so that a NullPointerException is never thrown, even if testName is null? Is it possible to modify java to support this directly? Java does provide an interface to read the Abstract Syntax Tree (AST) in … Read More

Philly ETE 2015 #50 – Jamie Allen, Erik Osheim, Brendan McAdams, Michael Pilquist, Brian Clapper – Typesafe Scala, Typelevel Scala: What’s Going On Anyway?

From the abstract: Last year, Miles Sabin wrote that “there is … a significant constituency at the core of the Scala community whose needs are not being fully met [by Typesafe’s focus on stability and Java 8 compatibility].” That statement summarizes the mission behind Typelevel.org, a project that currently consists of a fork of the … Read More