Discussions

News: MVEL 1.2 Final Preview Released

  1. MVEL 1.2 Final Preview Released (13 messages)

    The follow-up to the fastest general purpose expression language has finally reached a milestone. After months of work, the new and even more powerful MVEL contains many new language features, including a new JIT compiler. Integration of MVEL is straight forward, and easy. Use of the new optimizing JIT compiler does not require the use of a special API. Instead, MVEL's JIT is completely transparent, and like HotSpot, compiles code on the fly for near-native performance. In addition to the JIT, MVEL's new and improved parser-interpreter and reflection-optimizers provide high performance for memory constrained environments. MVEL 1.2 now includes optional static typing and dynamic type inferencing, and casting, allowing you to write type-safe expressions. MVEL is the hands down performance leader in the land of expression languages. In fact, MVEL is now the premier scripting language for the performance sensitive JBoss Rules Engine. Check it out: http://mvel.codehaus.org

    Threaded Messages (13)

  2. Templating?[ Go to top ]

    How would you use this as a templating machanism e.g. replacement for Velocity? The home page mentions this but I could not find any examples.
    In addition to being an expression language, MVEL also comes packaged with an equally high-performance templating system similar to Velocity and FreeMarker.
    Thanks David
  3. JSR 223[ Go to top ]

    When will the Maven pom for the JSR 223 get done Best Regards, Richard L. Burton III
  4. We will be updating the documentation in the interim as we approach final release. But the templating system remains from previous versions, with many improvements, and performance enhancements. Most of the old documentation for templating at http://wiki.mvflex.org for templating still applies, aside from some minor refactoring. ie. org.mvel.Interpreter is now org.mvel.TemplateInterpreter
  5. Re: Templating?[ Go to top ]

    How would you use this as a templating machanism e.g. replacement for Velocity? The home page mentions this but I could not find any examples.

    In addition to being an expression language, MVEL also comes packaged with an equally high-performance templating system similar to Velocity and FreeMarker.


    Thanks
    David
    We are using MVEL's templating system in Drools, works well for us. You can see one of our templates here: http://anonsvn.labs.jboss.com/labs/jbossrules/trunk/drools-compiler/src/main/resources/org/drools/rule/builder/dialect/java/javaInvokers.mvel One of the nice things about the language is the dual iterators, optional seperator chars (borrowed from StringTemplate): methodDeclaration(@foreach{declarationTypes, declarations as type, declr} @{type} @{declr.identifier} @end{","}) And of course you get access to the full MVEL expression language in the templating system. Mark http://markproctor.blogspot.com/
  6. MVEL is the hands down performance leader in the land of expression languages.
    On compiled expression yes, even if instantj should not be so far (OK, it needs type declaration for the objects involved in the expression). I would not be so sure in interpreted mode. Guido.
  7. Are there licensing issues? There is a directory in the repository, /org/codehaus/mvel, but it is empty.
  8. We'll be sure to get MVEL 1.2 POM'd before final release.
  9. is it faces el compatible?[ Go to top ]

    can we use it as a replacement of the faces el?it may be very usefull to have a fast el as the framework take a considerable amount of time evaluating expressions(up to 35 %)
  10. Richard Burton has done some stand up work writing the JSR233 compatability layer, which we'll get properly documented before final release.
  11. Why MVEL[ Go to top ]

    I did a blog on Why MVEL for Drools http://markproctor.blogspot.com/2007/05/why-mvel-scipting-language-for-jboss.html The summary of which is: * Reflection/bytecode(JIT) compilation and execution modes. * Fast reflection mode. * Pluggeable resolvers. * Size. * Custom language extensions with macro's and interceptors * Static/Inferred typed or dynamic modes. * Configurable language feature support. Mark http://markproctor.blogspot.com
  12. Congrats ! It has come a long way very very quickly. And interpreted mode is blisteringly fast. A nice handy shell (for those who are weird enough to use a shell to try out things !).
  13. I followed the links to the MVEL performance page here: http://mvel.codehaus.org/Performance+of+MVEL ...but its not clear what version of OGNL you're comparing to. Given that OGNL 2.7 was just released claiming big performance improvements based on a new "OGNL bytecode compiler enhancements" feature: http://www.theserverside.com/news/thread.tss?thread_id=45954 ...I'm wondering whether your claim to be the "hands down performance leader in the land of expression language" is based on old figures - or have you re-tested against OGNL 2.7? Also if the only EL you've tested against is OGNL, then seems a baseless claim anyway.
  14. OK forget that - just seen http://www.theserverside.com/news/thread.tss?thread_id=46083