JESS: Jess feature idea

2004-07-30 Thread Jason Morris
Jess 7.0 will have the accumulate feature, but how about some way of
accumulating by adding nodes to a tree? (If you look, you'll see that any
kind of general purpose tree class is conspicuously missing from java.util.)
For example, I'm doing some computations where I am accumulating sets of
nodes (fact-ids representing partial solutions to a scheduling problem)
after every engine cycle.  Actually, the structure is a "forest" something
like this:

 
  |   |
  +---++
+++
  || ||
|
   
 ...
  || |
|
   +--+-+  +---+ ++
++
   ||  |   | ||
||
 


  ...  ...

In my case, the solutions that Jess will eventually find are the depth-first
traversals of the trees,
e.g, solution = {,,,...}
Given how ubiquitous trees are in computing, is there any utility in having
Jess support a ready-made structure for accumulating (placing!?) output
(pattern bindings, function returns, etc.) as nodes in a tree?  Of course,
there are a thousand ways that I or any other user can roll our own (using
linked lists for example), but maybe someone else has a similar need, too.

Cheers,

Jason


Jason Morris
Morris Technical Solutions
[EMAIL PROTECTED]
www.morristechnicalsolutions.com
fax/phone: 503.692.1088


To unsubscribe, send the words 'unsubscribe jess-users [EMAIL PROTECTED]'
in the BODY of a message to [EMAIL PROTECTED], NOT to the list
(use your own address!) List problems? Notify [EMAIL PROTECTED]




JESS: FYI - Using Data Structures and Algorithms with Jess

2004-07-30 Thread Jason Morris
All,

If you need particular data structures to augment your Jess code and you are
short on resources, this web-doc and library might help.

Data Structures and Algorithms with Object-Oriented Design Patterns in Java
http://www.brpreiss.com/books/opus5/

Web book
http://www.brpreiss.com/books/opus5/html/book.html

Javadocs
http://www.brpreiss.com/books/opus5/javadoc/index.html

Cheers,

-Jason



Jason Morris
Morris Technical Solutions
[EMAIL PROTECTED]
www.morristechnicalsolutions.com
fax/phone: 503.692.1088


To unsubscribe, send the words 'unsubscribe jess-users [EMAIL PROTECTED]'
in the BODY of a message to [EMAIL PROTECTED], NOT to the list
(use your own address!) List problems? Notify [EMAIL PROTECTED]




Re: JESS: jdk 1.5 support?

2004-07-30 Thread Ahmed Mohombe
[EMAIL PROTECTED] wrote:
I think Ahmed Mohombe wrote:
Hi,
are there any plans to support the jdk 1.5 features in Jess?

I really hadn't given it any thought. What features do you suppose
could use specific support in Jess?
Enumerations seem to be the most obvious to me. The generics stuff is 
nice too, but that would be more complicated (I suppose :) ).

Ahmed.

To unsubscribe, send the words 'unsubscribe jess-users [EMAIL PROTECTED]'
in the BODY of a message to [EMAIL PROTECTED], NOT to the list
(use your own address!) List problems? Notify [EMAIL PROTECTED]



RE: JESS: comments affecting error message line numbers?

2004-07-30 Thread Jason Morris
Glad that you confirmed it.  I was worried that I was missing something.
On the positive side, it sure made my bug-finding eye better.




> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> Behalf Of [EMAIL PROTECTED]
> Sent: Friday, July 30, 2004 8:56 AM
> To: [EMAIL PROTECTED]
> Subject: Re: JESS: comments affecting error message line numbers?
>
>
> I think Jason Morris wrote:
> > For most small programs, the reported line number of an error
> is exact or
> > the difference is fairly close, but for larger code like
> Mitch's example,
> > I've noticed that it can be significantly off.
>
> Indeed, the error was reported at line 92 instead of the correct line
> 99. I've just confirmed that the Jess 7 parser gets this example right.
>
>
>
> -
> Ernest Friedman-Hill
> Advanced Software Research  Phone: (925) 294-2154
> Sandia National LabsFAX:   (925) 294-2234
> PO Box 969, MS 9012 [EMAIL PROTECTED]
> Livermore, CA 94550 http://herzberg.ca.sandia.gov
>
> 
> To unsubscribe, send the words 'unsubscribe jess-users [EMAIL PROTECTED]'
> in the BODY of a message to [EMAIL PROTECTED], NOT to the list
> (use your own address!) List problems? Notify [EMAIL PROTECTED]
> 
>


To unsubscribe, send the words 'unsubscribe jess-users [EMAIL PROTECTED]'
in the BODY of a message to [EMAIL PROTECTED], NOT to the list
(use your own address!) List problems? Notify [EMAIL PROTECTED]




Re: JESS: jdk 1.5 support?

2004-07-30 Thread ejfried
I think Ahmed Mohombe wrote:
> Hi,
> 
> are there any plans to support the jdk 1.5 features in Jess?
> 

I really hadn't given it any thought. What features do you suppose
could use specific support in Jess?



-
Ernest Friedman-Hill  
Advanced Software Research  Phone: (925) 294-2154
Sandia National LabsFAX:   (925) 294-2234
PO Box 969, MS 9012 [EMAIL PROTECTED]
Livermore, CA 94550 http://herzberg.ca.sandia.gov


To unsubscribe, send the words 'unsubscribe jess-users [EMAIL PROTECTED]'
in the BODY of a message to [EMAIL PROTECTED], NOT to the list
(use your own address!) List problems? Notify [EMAIL PROTECTED]




JESS: jdk 1.5 support?

2004-07-30 Thread Ahmed Mohombe
Hi,
are there any plans to support the jdk 1.5 features in Jess?
Thank you in advance,
Ahmed.

To unsubscribe, send the words 'unsubscribe jess-users [EMAIL PROTECTED]'
in the BODY of a message to [EMAIL PROTECTED], NOT to the list
(use your own address!) List problems? Notify [EMAIL PROTECTED]



Re: JESS: comments affecting error message line numbers?

2004-07-30 Thread ejfried
I think Jason Morris wrote:
> For most small programs, the reported line number of an error is exact or
> the difference is fairly close, but for larger code like Mitch's example,
> I've noticed that it can be significantly off.

Indeed, the error was reported at line 92 instead of the correct line
99. I've just confirmed that the Jess 7 parser gets this example right.



-
Ernest Friedman-Hill  
Advanced Software Research  Phone: (925) 294-2154
Sandia National LabsFAX:   (925) 294-2234
PO Box 969, MS 9012 [EMAIL PROTECTED]
Livermore, CA 94550 http://herzberg.ca.sandia.gov


To unsubscribe, send the words 'unsubscribe jess-users [EMAIL PROTECTED]'
in the BODY of a message to [EMAIL PROTECTED], NOT to the list
(use your own address!) List problems? Notify [EMAIL PROTECTED]




Re: JESS: Question about Waltz- and Manners-Benchmark

2004-07-30 Thread ejfried
I think Marcus Schlappa wrote:
> Hello!
> 
> I have a question about the Rule-Engine Benchmarks "Waltz" and "Manners".
> Are they measuring only the time for inference or does it include building 
> the rete-network AND inference?

Good question. Some rule engines require you to write the rules in a
Java-like language, which is then transformed by a macro-processor
into Java, and then that Java is compiled; the Rete network is
inherent in those compiled classes. This whole process is generally
never included in benchmarking. For Jess, the rule compiler takes only
a very tiny fraction of a second to process either of these small benchmark
programs, so it really doesn't matter; but times that I report don't
include rule compilation time, either.

-
Ernest Friedman-Hill  
Science and Engineering PSEsPhone: (925) 294-2154
Sandia National LabsFAX:   (925) 294-2234
PO Box 969, MS 9012 [EMAIL PROTECTED]
Livermore, CA 94550 http://herzberg.ca.sandia.gov


To unsubscribe, send the words 'unsubscribe jess-users [EMAIL PROTECTED]'
in the BODY of a message to [EMAIL PROTECTED], NOT to the list
(use your own address!) List problems? Notify [EMAIL PROTECTED]




Re: JESS: again: jess-performance

2004-07-30 Thread ejfried
I think Marcus Schlappa wrote:
> Hello,

> 
> How can i cache the engine with the rules loaded?
> Do you mean the jess-commands "bload" and "bsave"?
> 

By "engine" we mean a single instance of the jess.Rete class. You can
create as many instances of this class as you wish, and load each one
with rules. They'll all be completely independent.


-
Ernest Friedman-Hill  
Science and Engineering PSEsPhone: (925) 294-2154
Sandia National LabsFAX:   (925) 294-2234
PO Box 969, MS 9012 [EMAIL PROTECTED]
Livermore, CA 94550 http://herzberg.ca.sandia.gov


To unsubscribe, send the words 'unsubscribe jess-users [EMAIL PROTECTED]'
in the BODY of a message to [EMAIL PROTECTED], NOT to the list
(use your own address!) List problems? Notify [EMAIL PROTECTED]




JESS: Question about Waltz- and Manners-Benchmark

2004-07-30 Thread Marcus Schlappa

Hello!

I have a question about the Rule-Engine Benchmarks "Waltz" and "Manners".
Are they measuring only the time for inference or does it include building the rete-network AND inference?

Thanx!

Marcus

JESS: again: jess-performance

2004-07-30 Thread Marcus Schlappa

Hello,

i have a question about the following comment:

>> I am using jess from a web environment where many jess 
>> engines (1 per user, current load testing involves 100 users) are in operation at a 
>> time. Each time a jess engine is created my .clp files are parsed and loaded. Is it 
>> possible to somehow cache the parsed clp file so each engine doesn't need to reparse 
>> it? At the very least it would  be possible to pool available jess engines that 
>> already have loaded and parsed the config files. Has anyone tried this before and 
>> seen good results?


>Here's where the problem lies. The one-engine/one-user architecture is
>inherently inefficient. The simplest change that would improve things
>would be to still use one engine per user, but as you suggest, cache
>the engines with the rules loaded. A "(reset)" before each user would
>be much cheaper than recompiling the Rete network.

How can i cache the engine with the rules loaded?
Do you mean the jess-commands "bload" and "bsave"?

Thanks for helping!
Marcus