Re: [HEADS UP] - A prototype of an improved Simple language for Apache Camel

2011-09-04 Thread Claus Ibsen
Hi Just an update on the status. I discovered an issue in the scala DSL, which I managed to fix yesterday. The problem was the scala DSL would cause all languages to be evaluated as Expression, and then converted to Predicate if applicable. This was wrong, as the DSL indicate whether it should

Re: [HEADS UP] - A prototype of an improved Simple language for Apache Camel

2011-09-04 Thread Taariq Levack
Well spotted, I was gonna mention this problem once I understood it better, a couple of tests I brought over from the main patch were failing. All tests pass after the update, so it's backwards compatible alright. Taariq On Sun, Sep 4, 2011 at 10:10 AM, Claus Ibsen claus.ib...@gmail.com wrote:

[HEADS UP] - A prototype of an improved Simple language for Apache Camel

2011-08-29 Thread Claus Ibsen
Hi The current Simple language in camel-core has reached its potential in terms of maintenance and how easy it would be, for example to add new functions and operators. Likewise the current error reporting is not precise to point out where in the expression String the problem is. The

Re: [HEADS UP] - A prototype of an improved Simple language for Apache Camel

2011-08-29 Thread Christian Schneider
Hi Claus, the parser looks quite good as far as I looked into it. In any case much better than regex. Before we replace the old parser we should also think about tooling though. Some longer time ago I thought about using Xtext for the camel DSL and also the languages. The advantage would be

Re: [HEADS UP] - A prototype of an improved Simple language for Apache Camel

2011-08-29 Thread Claus Ibsen
On Mon, Aug 29, 2011 at 11:14 AM, Christian Schneider ch...@die-schneider.net wrote: Hi Claus, the parser looks quite good as far as I looked into it. In any case much better than regex. Before we replace the old parser we should also think about tooling though. Some longer time ago I thought

Re: [HEADS UP] - A prototype of an improved Simple language for Apache Camel

2011-08-29 Thread Zbarcea Hadrian
The principle of not having *unnecessary* extra dependencies is good. However this looks to me more like reinventing the wheel. If we write all the code in Camel we won't have dependencies, but we get a bloated code base, hard to maintain and taking forever to test. Reusing code (and having

Re: [HEADS UP] - A prototype of an improved Simple language for Apache Camel

2011-08-29 Thread Willem Jiang
It could be handy if we leverage the other lib in the other camel-module. If the user need the module, it will not be a burden for him to include a third part lib. On 8/29/11 8:19 PM, Claus Ibsen wrote: On Mon, Aug 29, 2011 at 11:14 AM, Christian Schneider ch...@die-schneider.net wrote: Hi

Re: [HEADS UP] - A prototype of an improved Simple language for Apache Camel

2011-08-29 Thread Claus Ibsen
On Mon, Aug 29, 2011 at 10:18 AM, Claus Ibsen claus.ib...@gmail.com wrote: Hi The current Simple language in camel-core has reached its potential in terms of maintenance and how easy it would be, for example to add new functions and operators. Likewise the current error reporting is not

Re: [HEADS UP] - A prototype of an improved Simple language for Apache Camel

2011-08-29 Thread Claus Ibsen
On Mon, Aug 29, 2011 at 3:52 PM, Willem Jiang willem.ji...@gmail.com wrote: It could be handy if we leverage the other lib in the other camel-module. If the user need the module, it will not be a burden for him to include a third part lib. There is already other scripting languages you can