Re: JESS: [EXTERNAL] Emacs Jess Users?

2012-10-11 Thread Grant Rettke
On Wed, Oct 10, 2012 at 9:04 AM, Friedman-Hill, Ernest
ejfr...@sandia.gov wrote:
 If you have a patch, let me know and I can post it for other people to use.

Someone already posted describing the fix here but with a patch for it:

http://planetjava.org/java-jess/2004-05/msg6.html

Here is my patch with their fix:

http://www.wisdomandwonder.com/wordpress/wp-content/uploads/2012/10/jess-mode-1.2-emacs-24.patch_.gz

Thanks!


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] What is your preferred Eclipse version, distribution, and bitness for Jess 7*?

2012-10-11 Thread Grant Rettke
On Wed, Oct 10, 2012 at 9:06 AM, Friedman-Hill, Ernest
ejfr...@sandia.gov wrote:
 Jess doesn't care, being a pure Java library. The 32 vs 64-bit question
 depends entirely on your own machine's architecture, and then the proper
 Eclipse distribution depends on what sort of code you intend to write: for
 example, the RCP/RAP developer package is for people who are writing
 Eclipse plugins, while Eclipse Classic is a good all around distribution
 for general Java programming.

Good to know. Everything installed perfectly. Here are my notes:

http://www.wisdomandwonder.com/article/6449/installing-jess-71p2-in-eclipse-4-2


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] Emacs Jess Users?

2012-10-11 Thread Grant Rettke
On Wed, Oct 10, 2012 at 8:33 PM, Andre Luiz Tietbohl Ramos
andreltra...@gmail.com wrote:
 I'm having a problem to start Jess in ubuntu 12.04.  I have jess-mode
 installed in /usr/share/emacs/site-lisp/jess-mode and when I try M-x
 jess-mode I receive the error below:

 setq: Symbol's value as variable is void: shared-lisp-mode-map

 Would anyone know how to solve this please?  Jess works fine in a terminal.

I had the same problem described here
http://www.wisdomandwonder.com/link/6442/making-jess-mode-v1-2-work-on-emacs-24
and patched here

http://www.wisdomandwonder.com/wordpress/wp-content/uploads/2012/10/jess-mode-1.2-emacs-24.patch_.gz

I run Emacs 24 on Lubuntu 12.04 and it seems to work fine so far.


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] Ordered facts question

2012-10-11 Thread Grant Rettke
Hi,

I'm working on

5.4. Ordered facts

in

file:///C:/x86/Jess71p2/docs/memory.html

with Jess Jess Version 7.1p2 11/5/2008

where there is an example

Jess (number (value 6))

I expected the ordered fact number to get created on-demand but instead got:

Jess reported an error in routine Funcall.execute
while executing (number (value 6)).
  Message: Undefined function number.
  Program text: ( number ( value 6 ) )  at line 1.

What am I doing wrong?

Best wishes,

Grant

--
((λ (x) (x x)) (λ (x) (x x)))
http://www.wisdomandwonder.com/
ACM, AMA, COG, IEEE




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] 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.




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)))


JESS: [EXTERNAL] How to persist the fact and rule base from a given session?

2012-11-27 Thread Grant Rettke
Hi,

I would like to be able to turn off a Jess session so that all of its
rules and facts would be persisted so that later I could start it up again.

The scenario is something like... there are things we want to handle but
the user has stopped the program, so we turn it off, but when we turn it
back on, those events should be handled.

I did read the docs but just didn't... maybe I missed something.

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)))


Re: JESS: [EXTERNAL] passing by reference ?

2013-01-03 Thread Grant Rettke
On Sat, Dec 22, 2012 at 10:19 AM, burama gwkuk.1993b...@gmail.com wrote:

 how to do passing by reference in jess ?


May you give more context and maybe an example of what you want to do?


JESS: [EXTERNAL] Re: Slowly documenting project setup steps

2013-02-19 Thread Grant Rettke
Hi Jessers,

Sorry for just sending a link.

What is going is that I'm blogging the set-up of a Jess+Java project using
my preferred setup.

My goal is to provide a Maven managed project that makes it real easy to
play with Java and Jess together, and figured if anyone might be interested
then they would be on this list.

If it is OK then I will keep posting whenever I put something new out there

JESS: [EXTERNAL] Rete network visualization

2013-02-19 Thread Grant Rettke
Hi,

I'm learning rules engines with JESS. The (view) popup is interesting.

While learning about the network itself and how to understand it, I got
curious about visualizing it differently.

I've been looking for an excuse to learn a nice GUI graphing framework, and
maybe this is it.

Is all of that information available at runtime using JESS commands?
Or programmatic ally?

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)))


JESS: [EXTERNAL] Anyone ran JESS on a realtime NIX?

2013-03-28 Thread Grant Rettke
Hi,

I'm curious about setting up a balancing robot just for the fun of it.

I'm wondering if any of you have any knowledge of people using JESS on a
realtime UNIXes, or for that matter, doing anything hardware control wise?

Best wishes,

Grant