Re: MVEL?

2008-10-12 Thread Chris Brock
#x27;t divided into its pieces but rather > evaluated character by character until a boundary is hit, at which > time that portion is evaluated? I wouldn't think this would increase > performance drastically, but you would know much better than I. > > > > On

Re: MVEL?

2008-10-12 Thread Chris Brock
First public beta of MVEL 2.0, I mean :) Chris Brock wrote: > > "However, under one test condition, MVEL never returned and caused a > load of 50 on my box. It was quite distressing, but it looked like > MVEL got into a bunch of infinite loops or something. I let it run

Re: MVEL?

2008-10-12 Thread Chris Brock
" I'd also be interested to hear a good discussion about caching compiled MVEL expressions and whether or not thread contention for the cache is an issue at all" There is no contention in the cache. MVEL returns self-contained, stateless, evaluation trees (or bytecode via the JIT) that do

Re: MVEL?

2008-10-12 Thread Chris Brock
"However, under one test condition, MVEL never returned and caused a load of 50 on my box. It was quite distressing, but it looked like MVEL got into a bunch of infinite loops or something. I let it run at a load of 50 for a while and then I had to kill it, but none of the threads had

Re: MVEL?

2008-10-12 Thread Chris Brock
ndling as well. > > Thanks, > -bp > > > On Oct 12, 2008, at 6:35 PM, Chris Brock wrote: > >> >> >> Assuming you're using a context-root, you'd write it like this: >> >> long start = System.currentTimeMillis(); >> for (int i = 0; i &l

Re: MVEL?

2008-10-12 Thread Chris Brock
(s, entityObj); } System.out.println("compiled time: " + (System.currentTimeMillis()-start)); Brian Pontarelli wrote: > > > Send me code for MVEL and I'll run both. It will be much easier for > you to write good MVEL code than me. > > -bp > > > On Oct 12, 2008, at 6:18

Re: MVEL?

2008-10-12 Thread Chris Brock
ator.getValue("user.addresses['home'].zipcode", > action); > } > end = System.currentTimeMillis(); > System.out.println("50 times was " + (end - start)); > } > > And the output: > > [junit] S

Re: MVEL?

2008-10-12 Thread Chris Brock
ise. Besides, with things > happening sub-millisecond or just above that, I just don't see any > benefit in spending a lot of time making it faster. > > -bp > > > > On Oct 12, 2008, at 11:46 AM, Chris Brock wrote: > >> >> Well, I'd like to se

Re: MVEL?

2008-10-12 Thread Chris Brock
collections and Object > creation ("user.addresses['home'].zipcode") 2ms > > That's definitely fast enough for my web applications. ;) > > JCatapult does support using public member fields of classes and it > does shave a little bit of time, but noth

Re: MVEL?

2008-10-11 Thread Chris Brock
s the waters. FreeMarker and JSP both have languages that > cover most of the common cases. > > Feel free to take a look at the JCatapult MVC expression evaluator for > what I feel should be supported. > > -bp > > > On Oct 11, 2008, at 12:52 PM, Chris Brock wrot

Re: MVEL?

2008-10-11 Thread Chris Brock
mon cases. > > Feel free to take a look at the JCatapult MVC expression evaluator for > what I feel should be supported. > > -bp > > > On Oct 11, 2008, at 12:52 PM, Chris Brock wrote: > >> >> MVEL has a pluggable type-conversion API, just like OGNL. Since

Re: MVEL?

2008-10-11 Thread Chris Brock
attribute is missing? This is a different > case then if the type conversion fails. So, I created two distinct > checked exceptions to handle these two cases. This makes the type > conversion system more powerful and easy to interact with. Plus, it > reveals good exceptio

Re: MVEL?

2008-10-10 Thread Chris Brock
uld stuff the values into the String[] like this: > > {"value1,value2,value3"} > > rather than > > {"value1", "value2", "value3"} > > This was a while ago, so all of this might be fixed. > > -bp > > > On Oct

Re: MVEL?

2008-10-09 Thread Chris Brock
MVEL 2.0 has full support for generics (and static typing): http://mvel.codehaus.org/Strong+Typing+Mode Brian Pontarelli wrote: > > > On Oct 7, 2008, at 3:08 PM, Dave Newton wrote: > >> Just to muddy the EL/templating waters: >> >> http://mvel.codehaus.org/Performance+of+MVEL >> >> (v. OGNL)

Re: [s2] extras-lib (was JUEL plugin (was Roadmap for the core taglib))

2007-11-07 Thread Chris Brock
For the record, I still maintain that it's better :) Tom Schneider wrote: > > Putting down my work would only motivate me more. :) That's exactly > how this was started back in February--Chris Brock was bragging about > how superior MVEL was and how slow OGNL was. Well,

Re: OGNL performance detrimental to Struts 2

2006-12-18 Thread Chris Brock
ke that happen, I would consider it my early > Christmas present :) > > Don > > Chris Brock wrote: >> Why do you think it would be so terribly difficult? What does MVEL not >> support that is currently supported by OGNL that would not be fixable by >> a >>

Re: OGNL performance detrimental to Struts 2

2006-12-18 Thread Chris Brock
d to see it. :) > > Don > > Chris Brock wrote: >> I think the problem is that the Tapestry solution is simply a property >> accessor package, which doesn't really meet the needs of the established >> WebWork community which relies on "expressions" in additi

Re: OGNL performance detrimental to Struts 2

2006-12-18 Thread Chris Brock
I think the problem is that the Tapestry solution is simply a property accessor package, which doesn't really meet the needs of the established WebWork community which relies on "expressions" in addition to properties to accomplish tasks. That being said, my project (MVEL) stands willing to step