fosstodon.org is one of the many independent Mastodon servers you can use to participate in the fediverse.
Fosstodon is an invite only Mastodon instance that is open to those who are interested in technology; particularly free & open source software. If you wish to join, contact us for an invite.

Administered by:

Server stats:

9.9K
active users

#jython

0 posts0 participants0 posts today

Imagine:
- small custom tool in #Python2 / #Jython, bundled to an .exe
- Last time bundled was a few years back
- executable used on CI server

Then:
- suddenly all builds across the Server fail 😳
- The CI server and your own PC fail executing your small tool, saying "This application needs #Java 8" 🤔
- But your CI Server and own PC _have_ Java 8 installed 🤨
- The fellas around you have seemingly the same tools installed and can execute the tool 🧐

True as always that the way to make software run faster is to make it do less operations. After all, CPUs can only execute a fixed number of operations per unit of time.

Here, I tweaked code for serial section registration that drops execution time from 27 seconds to 100 milliseconds: a 270x speed up.

All it had to do is to search for matching SIFT features in one image only within a predetermined radius centered on one SIFT feature in another image. Extremely effective for when e.g., the maximum translation is known.

The matching code using a KDTree:
github.com/acardona/scripts/bl

The test script:
github.com/acardona/scripts/bl

GitHubscripts/java/asm/my/PointMatchesFast.java at master · acardona/scriptsA collection of scripts related to neural circuit analysis and image processing for python, Fiji, TrakEM2, CATMAID, and others. - acardona/scripts
#FijiSc#java#jython
Replied in thread

@daieuxetdailleurs @Ettore_Rizza ah c'est intéressant que ça marche avec 3.6.2 et pas 3.7.2… peut-être qu'une mise à jour de #Jython a cassé quelque-chose ? Mais sinon pourquoi ne pas le faire via le service de réconciliation plutôt ? (en réconciliant les Qids, puis ajouter une colonne à partir des valeurs réconciliées, et utiliser la propriété "Sfrwiki" pour obtenir les titres dans fr.wiki)

Every time I need to run an image processing task, the open source software #FijiSc delivers.

The javadocs are up to date javadoc.scijava.org/ , the libraries just work – particularly #ImgLib2 imagej.net/libs/imglib2/

And the examples of my own tutorial syn.mrc-lmb.cam.ac.uk/acardona written in python 2.7 for the #JVM (#jython), despite some being a decade old, they all just work. Grateful every day for the outstanding backwards compatibility plus the new plugins and libraries that continue to grow fiji.sc

Many thanks to the many, many developers and maintainers, particularly Curtis Rueden, who is presently cutting out a new release: 2.11.0 forum.image.sc/t/plugin-mainta

javadoc.scijava.orgSciJava Javadoc
Replied to aegilops :github::microsoft:

@aegilops For a while appeared to be "stuck" in 2.7 just like , but in December they released version 3.4 and they've ported f-strings from 3.6.

I cannot imagine what goes into implementing Python in other programming languages, and for that they deserve my admiration. But it is indeed a shame Jython has not moved past 2.7 in almost eight years.

Maybe Inductive Automation will open their platform to other scripting languages, but until then I'm stuck in 2.7 too.

Replied to César Román :python:

@thecesrom Jythooooooooon! In my best Kirk voice.

:java: and :python: together is a great idea, but not having the Python 3 `main` branch working, and having no clear progress makes it feel like Perl 6 all over again.

They should rename their moribund Jython3 repo, that's just confusing!

It's such a shame, useful Java scripting interfaces languishing in a dying ecosystem.

There was a similar lag with things that embed CPython, but they have an escape route.

Replied in thread

@hynek Same here—my best online posts are notes to future self, for e.g., image processing code snippets I don’t want to relearn. Here, some in #jython driving #FijiSc’s #java libraries to register images, transform N-dimensional images, visualise them in 2d/3d/4d, make GUIs, and more: syn.mrc-lmb.cam.ac.uk/acardona I hear many found these useful.

syn.mrc-lmb.cam.ac.ukFiji Programming Tutorial