Algebird Java API.

75 views
Skip to first unread message

Umanga Bista

unread,
May 9, 2015, 11:12:31 AM5/9/15
to alge...@googlegroups.com
 Is it possible to use algebird with java? Is it documented somewhere?
I currently require to use Semigroup, Monoid traits, CMS, CMSMonoid and Approximate class. Is it possible to use them with java?

Jonathan Coveney

unread,
May 9, 2015, 4:55:59 PM5/9/15
to Umanga Bista, alge...@googlegroups.com
It's definitely possible using the normal Java/Scala interop, though without implicit resolution it can just be a little tedious as you have to refer to all instances manually.

Oscar Boykin

unread,
May 10, 2015, 2:12:07 PM5/10/15
to Jonathan Coveney, Umanga Bista, alge...@googlegroups.com
Should be no problem. Can you try and post any problems you get.

PS: there is nothing *that* special about algebird when it comes to Java, so reading about normal scala-java interop will be helpful.

One problems will be making you will hit making your own instances in that you will want to use the abstract class AbstractSemigroup/Monoid/etc... to make subclasses since Java cannot add the default methods for you if you extend the trait (you need to implement all methods, even the ones that are defined by default).

But if you want to use CMS, CMSMonoid, etc... you should be fine.

On Sat, May 9, 2015 at 10:55 AM, Jonathan Coveney <jcov...@gmail.com> wrote:
It's definitely possible using the normal Java/Scala interop, though without implicit resolution it can just be a little tedious as you have to refer to all instances manually.

--
You received this message because you are subscribed to the Google Groups "algebird" group.
To unsubscribe from this group and stop receiving emails from it, send an email to algebird+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Oscar Boykin :: @posco :: http://twitter.com/posco
Reply all
Reply to author
Forward
0 new messages