jvm-batching: Provides batched marshalling of values between Java and Haskell.

[ bsd3, ffi, java, jvm, library ] [ Propose Tags ]

Please see README.md.

[Skip to Readme]
Versions [faq] 0.1, 0.1.1, 0.1.2, 0.2.0 (info)
Dependencies base (>=4.7 && <5), bytestring, distributed-closure (>=0.3.5), inline-java (==0.10.*), jni (>=0.8.0 && <0.9), jvm (>=0.6.0 && <0.7), singletons (>=2.2), text, vector [details]
License BSD-3-Clause
Copyright 2017 LeapYear Technologies
Author Tweag I/O
Maintainer facundo.dominguez@tweag.io
Category FFI, JVM, Java
Home page http://github.com/tweag/inline-java/tree/master/jvm-batching#readme
Source repo head: git clone https://github.com/tweag/inline-java(jvm-batching)
Uploaded by FacundoDominguez at 2020-11-30T14:50:36Z
Distributions NixOS:0.2.0
Downloads 976 total (71 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Hackage Matrix CI
Docs not available [build log]
All reported builds failed as of 2020-11-30 [all 3 reports]


  • Language
    • Java
      • Language.Java.Batching
        • Language.Java.Batching.Jars


Maintainer's Corner

For package maintainers and hackage trustees

Readme for jvm-batching-0.2.0

[back to package description]


Provides batched marshalling of values between Java and Haskell.

It provides reify and reflect instances for vectors, which marshal values in batches, which is more efficient than marshalling values one at a time.

instance (Interpretation a, BatchReify a) => Reify (V.Vector a) where

instance (Interpretation a, BatchReflect a) => Reflect (V.Vector a) where

See the documentation in Language.Hava.Batching for an overview on how the implementation works.

Using it as a dependency

Add jvm-batching to the list of dependencies in your .cabal file. Then edit the Setup.hs file to add the jvm-batching.jar to the classpath.

import Distribution.Simple
import Language.Java.Inline.Cabal
import qualified Language.Java.Batching.Jars

main = do
    jars <- Language.Java.Batching.Jars.getJars
    defaultMainWithHooks (addJarsToClasspath jars simpleUserHooks)

Add a custom-setup stanza to your .cabal file.


Layout of source directories

This is a multi-language package. We use Maven's standard directory layout to organize source code in multiple languages side-by-side.