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">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><div class="h5"><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">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>