JESS: [EXTERNAL] Jess on Android Revisited 2012-11-15T07:45:43-0600

2012-11-15 Thread Grant Rettke
Hi,

Curious about running Jess on Android I first read up and found the
issues with JavaBeans on Android. Geez, yuck!

Wondered if there was already a legal alternative implementation of
those beans maybe from Harmony, Classpath, or OpenJDK.

GNU Classpath is GPL but gives a linking exception so a port of
java.beans to a new namespace might work:
https://www.gnu.org/software/classpath/license.html

Harmony is Apache licensed so you can link it with commercial software
as long as you give attribution:
https://www.apache.org/foundation/license-faq.html#WhatDoesItMEAN

And there is already a port here: https://code.google.com/p/openbeans/

OpenJDK is the most mainstream open implementation backed by Oracle
among others. It has the classpath same GNU Classpath exception on
linking: http://openjdk.java.net/faq/

OpenJDK seems like the best bet to me.

Not sure how best to proceed but as a developer myself I would like to
volunteer to:
1. Port OpenJDK's java.beans
2. Find as many test suites as possible utilizing java.beans to
include here to test it.
3. Put it on github or something.
4. Possibly test out migrating Jess source code (I would need to get a license).
5. Test out Jess on it on a pc.
6. Test out Jess on it on android.

Not sure whether other folks are interested in this or not but if so
please reply so we can coordinate our efforts.

Best wishes,

--
Grant Rettke | ACM, AMA, COG, IEEE
gret...@acm.org | http://www.wisdomandwonder.com/
Wisdom begins in wonder.
((λ (x) (x x)) (λ (x) (x x)))




To unsubscribe, send the words 'unsubscribe jess-users y...@address.com'
in the BODY of a message to majord...@sandia.gov, NOT to the list
(use your own address!) List problems? Notify owner-jess-us...@sandia.gov.




Re: JESS: [EXTERNAL] Jess on Android Revisited

2012-11-15 Thread Friedman-Hill, Ernest
Grant -- 

Your message is *very* timely. We've just started working on an official,
supported Android port, and hope to make it available in the first months
of 2013. This will be in conjunction with the Jess 8.0 release, which will
include a rollup of tons of bug fixes and other patches accumulated since
7.1p2.

On 11/15/12 9:08 AM, Grant Rettke gret...@acm.org wrote:

Hi,

Curious about running Jess on Android 




To unsubscribe, send the words 'unsubscribe jess-users y...@address.com'
in the BODY of a message to majord...@sandia.gov, NOT to the list
(use your own address!) List problems? Notify owner-jess-us...@sandia.gov.




JESS: [EXTERNAL] What does the .CLP extension stand for?

2012-11-15 Thread Grant Rettke
What does the .CLP extension stand for?

-- 
Grant Rettke | ACM, AMA, COG, IEEE
gret...@acm.org | http://www.wisdomandwonder.com/
Wisdom begins in wonder.
((λ (x) (x x)) (λ (x) (x x)))


JESS: [EXTERNAL] Code to convert a POJO to a template assertion?

2012-11-15 Thread Grant Rettke
Hi,

For whatever reason I don't want to use defclass and instead want to be
able to convert a POJO to a template assertion. There are helpers to write
converters like this but I'm wondering if someone has done it? Maybe it
could even define the deftemplate given the class.

It would be like:

class Person {
String name;
int age;
public void getName() { return name; }
public void getAge() {return age; }

The functions might do this:

pojoToTemplate(Object o) - string

pojoToAssertion(Object o) - string

Person p = new Person(Joe, 10);

pojoToTemplate(p) - (deftemplate (slot name) (slot age))

pojoToAssertion(p) - (assert (Person (name Joe) (age 10))

Ok the reason is that I don't want or plan to deal with modifying any state
outside of the engine environment :).

Best wishes,

-- 
Grant Rettke | ACM, AMA, COG, IEEE
gret...@acm.org | http://www.wisdomandwonder.com/
Wisdom begins in wonder.
((λ (x) (x x)) (λ (x) (x x)))