top :
noooxml

Introduction

The ArtificialIdea.com Project aims to create an open source library for the technological and research field of Artificial Intelligence, providing to the industry and research community a tool in pure Java and Groovy which:

For a list of algorithms already implemented see the algorithms list page.

It is not designed for performance, but it can help to design fast other software: the first step of the technique "a first design to throw away" is already provided ;-).

Why Java?

Java is a widely known, fast, object oriented language with a huge community, support, documentation and pool of free libraries and utilities.

And Groovy?

One big problem with Java is its verbosity. Groovy reduces it. It follows a code in Java and its equivalent in Groovy (the example is from the book Groovy in Action).

private static List getProductNamesWithItemTotal(Invoice[] invoices) {
    List result = new LinkedList();
    for (int i = 0; i < invoices.length; i++) {
        List items = invoices[i].getItems();
        for (Iterator iter = items.iterator(); iter.hasNext();) {
            LineItem lineItem = (LineItem) iter.next();
            if (lineItem.total() > 7000){
                result.add(lineItem.getProduct().getName());
            }
        }
    }
    return result;
}
In Groovy the same code is just one line:
invoices.items.grep{ it.total() > 7000 }.product.name


oo.png bluegreynoframes.png getfirefox.gif gimp.png linux.gif utf8.png vim.png cc.gif php.gif disclaimer.gif xhtml10.png nswpat80x15.gif wmi.png
Last update: 2008/09/18 19:28:10