Dear Bioformats community,
Just a thought.
As you know, integrating bioformats into python projects can be challenging
because of the annoying Java-Python impedance mismatch. Bindings exist
(python-bioformats , etc…) but there is unfortunately some clunkiness there.
And of course, a rewrite is just out of the question.
There might be a possible radical solution, and I wanted to check with the
community here to see if someone tried it, or considered it, and what the
consensus and thoughts are about it:
Compile the bioformats Java code to a binary shared lib using either:
ii) Better: use GraalVM from Oracle:
(See section 8: 'Java code as a native library’ )
If we could do this, compile Bioformats to a native library,
then this would be incredible in terms of making integration
of Bioformats super easy for all sorts of languages (Python, Julia, etc…)
without having to ship a JVM or have a ‘good’ one already installed.
In fact, microscope manufacturers would have little excuse to
not start using it too… Speed of native code is another benefit.
What do you think?