You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 3 Next »

HJ-Lib is a library implementation of the Habanero-Java (HJ) language. It relies on the lambda support in Java 8 to provide a syntax close the HJ language.

As such, the language constructs available in HJ are available as static method calls which accept lambdas as arguments in the library implementation.

Referring to the language constructs will give a good introduction to the static methods provided in HJ-Lib.

The API documentation for HJ-lib is available here. The most important classes that provide support for the static methods to use are:

A summary of the configuration options that can be used to initialize the HJ-lib runtime is available as the different enum constants in the HjSystemProperty class.

Primers on how to use HJ-lib are also available to view online here. These examples can be used to test the various constructs such as:

  • finish
  • async
  • foreach
  • forall
  • future
  • DDF (promise)
  • phasers
  • isolated
  • actors

and their corresponding variants.

  • No labels