Projects / Generic Algorithms for Java

Generic Algorithms for Java

JGA is a functors library useful for exploring and exploiting functors as a design and implementation tool to reduce boilerplate coding. A functor is an object that encapsulates a function or expression: it can take arguments and produce results, as can any method, expression, or function (in other languages that support functions). Unlike an expression, as an object it can be passed as an argument without being executed, it can be persisted to a database or file, it can be serialized and passed from client to server (and back), and it can be instantiated at runtime based on information unavailable at compile-time. This project borrows the functors from C++ STL library, and extends them with functors that are natural for Java programmers. It also borrows the notion that basic functors implementing common operations can be profitably combined into compound structures to implement more useful logic.

Tags Software Development Libraries Java Libraries
Licenses LGPL
Operating Systems OS Independent
Implementation Java

Tweet this project Short link

Rss Recent releases

  • Rrelease-mid
  •  10 Apr 2005 10:30
  • Rrelease-after

Changes: This release has support for Java 1.5.0_02. The new FunctorParser (and its type safe extension GenericParser) allows functors to be described using a Java-like syntax: the parser creates the functor that implements the logic described in the expression. Hacker's Worksheet is the next phase in the evolution of the Spreadsheet engine included in the prior release. This application uses the FunctorParser to implement a spreadsheet whose expression language looks like Java in most respects.

  • Rrelease-mid
  •  22 Sep 2004 02:28
  • Rrelease-after

Changes: This release features support for the second JDK1.5 beta release. The SpreadsheetTableModel is now Spreadsheet, and is somewhat functional in this release: formulas can be set up programmatically, constant values may be entered at runtime into cells, and cells are individually formattable. GenericCellEditor, GenericListCellRenderer, and GenericTableCellRenderer now include constructors that form drop-in replacements for the Swing classes that they extend. GenericTableModel and GenericColumn now support formatting and parsing functors.

  • Rrelease-mid
  •  23 Feb 2004 03:10
  • Rrelease-after

Changes: Initial release.

No-screenshot

Project Spotlight

rdup

A tool to generate an (incremental) backup file list.

No-screenshot

Project Spotlight

pfcalc

A command-line tool to calculate pipe friction and pressure drop through pipes.