The Java Virtual Device is attaining a new language, referred to as Concurnas, which is a no cost, open supply, compiled programming language positioned for use in constructing substantial-performance, distributed devices.
Emphasizing concurrency and parallelism, Concurnas is statically typed and garbage-gathered, and it employs variety inference. Concurnas code is stated to be typically indistinguishable from Python though featuring performance akin to Java.
Concurnas supports imperative computing constructs this kind of as for loops, though loops, assertions, and exceptions. Its concurrency design enables builders to write concurrent code without the need of wearisome boilerplate for handling threads, important sections, or locks.
Other options of Concurnas include:
- Item orientation, with highly developed guidance for courses including abstract, concrete, and inheritance as effectively as capabilities including generics, enumerations, and annotations. Tuples, item vendors, and use-primarily based generic variety inference are supported.
- Help for GPU computing, with builders equipped to write idiomatic Concurnas code and operate it on the GPU with no need to swap to C/C++.
- Reactive programming guidance, featuring the ability to write code that will react routinely to variations in enter parameters.
- Off-heap memory capabilities, for interacting with non-heap-managed, non-garbage-gathered memory. This helps in performing with large details, customized databases, and GPUs.
- Null basic safety.
- A concise syntax.
In growth for a few years, Concurnas has a standalone compiler and a REPL (read-eval-print loop) shell. Concurnas can be employed in a Jupyter notebook and in the Visual Studio Code, Atom, and Chic Textual content editors.