Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 567718 - dev-java/functional-java-4.4.1: An open source library facilitating functional programming in Java
Summary: dev-java/functional-java-4.4.1: An open source library facilitating functiona...
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All All
: Normal enhancement
Assignee: Default Assignee for New Packages
URL: http://www.functionaljava.org/
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-12-07 14:25 UTC by José Romildo Malaquias
Modified: 2016-01-21 16:22 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description José Romildo Malaquias 2015-12-07 14:25:18 UTC
Please add functionaljava to portage.

From the homepage:


Functional Java is an open source library facilitating functional programming in Java. The library implements numerous basic and advanced programming abstractions that assist composition oriented development. Functional Java also serves as a platform for learning functional programming concepts by introducing these concepts using a familiar language.

The library is intended for use in production applications and is thoroughly tested using the technique of automated specification-based testing with ScalaCheck and Functional Java’s Quickcheck module. Functional Java is compiled with Java 8 targeting Java 7 bytecode. The use of lambdas within the project are backported with the Retro Lambda library, supporting Java versions 5 to 8 and beyond.

Features:

Functional Java provides abstractions for the following types:

    Basic Data Structures - total and partial functions, products, unit, option, unbiased and right biased unions (either and validation).

    Immutable Collections - array, list, vector, stream, set, map, finger tree, heterogenous list.

    Other Abstractions - monoid, semigroup, natural, random number generator, reader, writer, state, input/output, parser, zipper, specification based testing, actors, concurrency, optics (lens, prism, fold, traversal and others) and type conversion.


Reproducible: Always
Comment 1 Patrice Clement (RETIRED) gentoo-dev 2016-01-08 15:11:27 UTC
Java 8 supports functional programming out of the box. Is this library an attempt to reinvent the wheel yet again?
Comment 2 Patrice Clement (RETIRED) gentoo-dev 2016-01-21 10:28:07 UTC
Please reopen and talk us through why you need this package in Portage.
Comment 3 José Romildo Malaquias 2016-01-21 16:22:15 UTC
This library is much older than Java 8. So the answer is no, it is not trying to reinvent the wheel.

What Java 8 offers are basically lambda expressions an streams. It still misses functional data structures and immutable collections, among other abstractions common in functional programming.

This library complements Java 8 with these missing pieces.

Functional Java facilitates the development of applications under the functional paradigm. It is needed if the programmer chooses to use the library in his applications.

Currently I am just trying it and I have not yet decided if I will use it in my project. I am also considering another library called javaslang.

If the package would be difficult to be maintained, then you can leave this issue closed for now. Later on it can be reopened if desired.