ndarray.scala icon indicating copy to clipboard operation
ndarray.scala copied to clipboard

Add a Java API

Open ryan-williams opened this issue 7 years ago • 3 comments

ryan-williams avatar Oct 17 '18 06:10 ryan-williams

Does this mean the library at the moment is not usable in java projects?

I am a committer to https://github.com/senbox-org/snap-engine. Therefore a new standard I/O format should be implemented based on zarr. see: https://senbox.atlassian.net/projects/SNAP/issues/SNAP-989

Sorry if this question look like a silly question ... I am not experienced with scala.

SabineEmbacher avatar Jun 13 '19 13:06 SabineEmbacher

I'd call in @ryan-williams to state definitively. I'm not sure the state of the Scala impl at the moment. But I think this issue is more specifically geared at wrapping the Scala compiler-generated classes so you don't have the Scala cruft in the class names etc.

laserson avatar Jun 17 '19 16:06 laserson

Sorry for the delay here @SabineEmbacher, thanks for reaching out. Not a silly q at all!

The short answer is that this library is not very usable from Java at the moment.

It works in Scala for some basic things, and you can technically call those classes from Java, as @laserson mentioned, but an ergonomic Java API wrapping the Scala bits is what I meant to track here, and I've not started making that.

Contributions are of course welcome, though it might be more helpful to chat about your use-case. I see you're familiar with N5, Zarr and N5 are increasingly interoperable, so maybe exploring it would be quicker in the short term?

Otherwise, if you can afford to wait a bit, I do intend to continue developing this over the next 6mos or so.

ryan-williams avatar Jun 17 '19 23:06 ryan-williams