Another alternative would be to freeze one Drools version as "last one for Java 5", and proceed undauntedly to new shores. But there is also the issue of suppor - don't know whether you buy a guarantee of unlimited progress towards new features while standing still at some Java version.<br>
<br>Also: Providing DRL features that are only available with Java 6/7/8... will make documentation even more of a maze as it is now.<br><br>-W<br><br><div class="gmail_quote">On 20 October 2011 13:49, Geoffrey De Smet <span dir="ltr"><<a href="mailto:ge0ffrey.spam@gmail.com">ge0ffrey.spam@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><u></u>
<div text="#000000" bgcolor="#ffffff">
The minimum java version we require (currently java 5)<br>
need not be the same as the maximum java version language features
we support.<br>
<br>
For example, drools 6 could require at least java 5 to run, but<br>
- if source>=7 and target>=7 you can use switch(String) and
other coin stuff in DRL functions<br>
- if source>=8 and target>=8 you can use closures in DRL
functions<br>
The point is... drools-core source code itself can't use that stuff
(unless it's in the extension module drools-core-jdk7).<br>
<br>
Spring 2.0.0 did something similar IIRC: it required at least JDK
1.4, but if it detected JDK 1.5 you could use annotations too.<br>
<br>
Note: despite all that, I still wish we move the minimum java
version to 6 :)<br>
<br>
Op 20-10-11 13:26, Wolfgang Laun schreef:
<blockquote type="cite">Last time Mark asked, there was a huge outcry - some
people using some Java that's standing still at Java 5.<br>
-W<br>
<br>
<div class="gmail_quote">On 20 October 2011 13:21, Toni Rikkola <span dir="ltr"><<a href="mailto:toni.rikkola@gmail.com" target="_blank">toni.rikkola@gmail.com</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div style="word-wrap: break-word;">I would also like to keep
it as close to Java as possible.
<div>
<br>
<div>There are few problems here:</div>
<div>* It could never go beyond Java</div>
<div>* We are using Java 5 and just considering Java 6,
this would be a huge leap :-)</div>
<div>
<div><br>
</div>
<div>But then again if we don't use the Java way, then
what will we do when Drools reaches Java 8, support
both?</div>
<div><br>
</div>
<font color="#888888">
<div>Toni</div>
</font>
<div>
<div>
<div><br>
<div>
<div>On Oct 20, 2011, at 11:08 AM, Geoffrey De
Smet wrote:</div>
<br>
<blockquote type="cite">
<div text="#000000" bgcolor="#ffffff">
Interesting stuff.<br>
This is basically<br>
"closures" which will be available in JDK
8<br>
+ LHS closure pattern support<br>
<br>
1) About "closures" which will be available
in JDK 8:<br>
Since functions contain Java code, which is
imperative, not declarative, I don't
consider that DRL turf any more.<br>
<b>Our closure syntax should there should be
exactly the same as Java 8.</b><br>
Here's their syntax, which looks the same on
first sight, but the devil is in the details
(= unreleased spec):<br>
<a href="http://mail.openjdk.java.net/pipermail/lambda-dev/2011-September/003936.html" target="_blank">http://mail.openjdk.java.net/pipermail/lambda-dev/2011-September/003936.html</a><br>
Either we wait for JDK 8 to be released to
support closures (current release date is
2012 according to Mark R.'s "plan B" that
released JDK 7 in 2011)<br>
or we implement it just like the JDK8 with
the exact same syntax (which is a LOT of
work).<br>
<br>
2) About LHS closure pattern support.<br>
This builds on top of 1) to allow usage of
closures in the LHS.<br>
Cool stuff, I like the piping idea.<br>
<br>
Op 19-10-11 23:12, Mauricio Salatino
schreef:
<blockquote type="cite">Hi Mario, that
document looks great.. I will take some
time to read it and I will try to give
some feedback.
<div>I was playing with cypher (from
neo4j, a graph oriented DB) (total
newbie on that) but looking at your in
line acc functions I think that we can
take some concepts from cypher and apply
them in DRL. </div>
<div>Cheers<br>
<br>
<div class="gmail_quote">On Wed, Oct 19,
2011 at 5:59 PM, Mario Fusco <span dir="ltr"><<a href="mailto:mario.fusco@gmail.com" target="_blank">mario.fusco@gmail.com</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"> Hi
all,<br>
<br>
as anticipated by Mark, I put down
some ideas on how we could start
introducing some functional
programming features in the DRL.<br>
<br>
<a href="http://community.jboss.org/wiki/FunctionalProgrammingInDrools" target="_blank">http://community.jboss.org/wiki/FunctionalProgrammingInDrools</a><br>
<br>
It's needless to say that the
document has to been considered just
a draft in its very first stage and
any feedback or suggestion to
improve or clarify it is welcome.<br>
<font color="#888888"><br>
Mario<br>
</font><br>
_______________________________________________<br>
rules-dev mailing list<br>
<a href="mailto:rules-dev@lists.jboss.org" target="_blank">rules-dev@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/rules-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-dev</a><br>
<br>
</blockquote>
</div>
<br>
<br clear="all">
<div><br>
</div>
-- <br>
- CTO @ <a href="http://www.plugtree.com/" target="_blank">http://www.plugtree.com</a>
<br>
- MyJourney @ <a href="http://salaboy.wordpress.com/" target="_blank">http://salaboy.wordpress.com</a>
<div> - Co-Founder @ <a href="http://www.jugargentina.org/" target="_blank">http://www.jugargentina.org</a><br>
- Co-Founder @ <a href="http://www.jbug.com.ar/" target="_blank">http://www.jbug.com.ar</a><br>
<br>
- Salatino "Salaboy" Mauricio -</div>
<br>
</div>
<pre><fieldset></fieldset>
_______________________________________________
rules-dev mailing list
<a href="mailto:rules-dev@lists.jboss.org" target="_blank">rules-dev@lists.jboss.org</a>
<a href="https://lists.jboss.org/mailman/listinfo/rules-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-dev</a>
</pre>
</blockquote>
<br>
<pre cols="72">--
With kind regards,
Geoffrey De Smet</pre>
</div>
_______________________________________________<br>
rules-dev mailing list<br>
<a href="mailto:rules-dev@lists.jboss.org" target="_blank">rules-dev@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/rules-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-dev</a><br>
</blockquote>
</div>
<br>
</div>
</div>
</div>
</div>
</div>
</div>
<br>
_______________________________________________<br>
rules-dev mailing list<br>
<a href="mailto:rules-dev@lists.jboss.org" target="_blank">rules-dev@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/rules-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-dev</a><br>
<br>
</blockquote>
</div>
<br>
<pre><fieldset></fieldset>
_______________________________________________
rules-dev mailing list
<a href="mailto:rules-dev@lists.jboss.org" target="_blank">rules-dev@lists.jboss.org</a>
<a href="https://lists.jboss.org/mailman/listinfo/rules-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-dev</a>
</pre>
</blockquote><font color="#888888">
<br>
<pre cols="72">--
With kind regards,
Geoffrey De Smet</pre>
</font></div>
<br>_______________________________________________<br>
rules-dev mailing list<br>
<a href="mailto:rules-dev@lists.jboss.org">rules-dev@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/rules-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-dev</a><br>
<br></blockquote></div><br>