java:jinterface-implementation: multiple interfaces?
steve_nunez at yahoo.com
Thu Jul 30 11:26:32 UTC 2020
Sorry, meant to send to the ABCL-dev list the first time.
The use case is Spark lambda functions. I couldn't do a better job than the Spark RDD Programming Guide does at explaining the use case. It starts on the Basics heading. The ideal case would be the ability to take Java code like this:JavaRDD<Integer> lineLengths = lines.map(s -> s.length());and write it in ABCL like this:
(let ((line-lengths (#"map" *lines* (lambda (s) (length s)))))
This uses the ABCL length function, which would be a huge win if we can use Lisp functions to map across data structure. I've already got abcl.jar accessible to Spark on all the nodes of a cluster. I'd probably shadow the cl:lambda with a spark:lambda to make the syntax natural.
On Thursday, July 30, 2020, 7:08:35 PM GMT+8, Alessio Stalla <alessiostalla at gmail.com> wrote:
Somewhere in between.I could give a shot at it. It would be useful if Steven detailed his use case a bit more.
On Thu, Jul 30, 2020, 13:04 Mark Evenson <evenson at panix.com> wrote:
> On Jul 30, 2020, at 10:00, Alessio Stalla <alessiostalla at gmail.com> wrote:
> Correction: indeed it was merged, but I didn't go as far as to make closures serializable.
Any idea how much work for someone (i.e. me)to be able to serialize closures?
Just a bit of elbow-grease, or major implementation?
"A screaming comes across the sky. It has happened before but there is nothing
to compare to it now."
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the armedbear-devel