JESS: Least favorite error messages

2004-07-07 Thread ejfried
Hi Folks, Work progresses on Jess 7. I'm making a sweep through the code looking at error messages, in particular looking for ones that are hard to understand. I'd love it if people could help me by sharing small snippets of code that evoke Jess error messages that don't make sense or seem inappro

Re: JESS: Least favorite error messages

2004-07-07 Thread Felix H. Bachmann
I don't have a code example here, but to me the most difficult error message is the one that happens when a function that is part of a pattern (LHS) is called which produces an error. Since the pattern is evaluated when an assert or modify is executed by another rule's RHS, the error message

JESS: ant task for checking rule file syntax

2004-07-07 Thread BYALLALA
Hi, Is there any ant tool which can check the syntax in clip files? Thanks Bhaskar To unsubscribe, send the words 'unsubscribe jess-users [EMAIL PROTECTED]' in the BODY of a message to [EMAIL PROTECTED], NOT to the list (use

RE: JESS: Least favorite error messages

2004-07-07 Thread Alan Moore
Title: RE: JESS: Least favorite error messages The worst error message is a silent failure... Here's one: Given a java class named "Disbelief" with a boolean property called "really": (defrule jess-rules    (Disbelief (really FASLE)) => ) The parser doesn't detect that the misspelled F

RE: JESS: ant task for checking rule file syntax

2004-07-07 Thread Alan Moore
Title: RE: JESS: ant task for checking rule file syntax If your script to be checked does not call (run) or (run-until-halt) and contains primarily deffunction/defquery/defrule statements you can try:                 disclaimer: not tested... All this does is run jess

Re: JESS: Optimization Question

2004-07-07 Thread ejfried
I think John Aronson wrote: > The profiler reports that that almost all the execution time is spent > loading classes. I'm hoping that fact means that there's something wrong > with my code which I could fix to improve the performance. It does look like a lot of time is being spent loading classe

FW: JESS: Optimization Question

2004-07-07 Thread John Aronson
Thanks for the response. The class loading time wasn't a one time thing, it was a constant drag when I was running from 100 up to 1 reps. 10,000 reps was taking over an hour so I didn't run that one a lot ;)   I did solve the problem though. I found that it was a lot faster to use Jes

RE: JESS: Optimization Question

2004-07-07 Thread Alan Moore
Title: RE: JESS: Optimization Question Also, the following *might* be even faster - TBD: (defrule prevent-logout    (ActionForward (path ?url&:(neq (str-index "Logout.do" ?url) FALSE))) => ) You can move the _expression_ in the (test) up into the pattern if your _expression_ doesn't depend