egonw / bacting

Bacting is an open-source platform for chemo- and bioinformatics based on Bioclipse that defines a number of common domain objects and wraps common functionality, providing a toolkit independent, scriptable solution to handle data from the life sciences.
Other
13 stars 5 forks source link

ponder about JPython and JavaScript examples #24

Closed egonw closed 3 years ago

egonw commented 3 years ago

As asked about in https://github.com/egonw/bacting/issues/11

egonw commented 3 years ago

I explored this option. I do not see an easy way in which JPython can dynamically download content from Maven Central (which is what the Groovy @Grab does). This will need a Java archive will needed modules. Same for JavaScript.

Bioclipse does this differently. It uses the Java JSR for scripting languages and when Bioclipse starts, it dynamically creates "consoles" for each programming language, while injecting the OSGi-loaded managers along the process. Basically, Bioclipse is a custom runtime environment, whereas Bacting uses a default runtime engine (currently Groovy).

egonw commented 3 years ago

I have added a Python example.

egonw commented 3 years ago

I'll create a separate one for JavaScript.

egonw commented 3 years ago

https://github.com/egonw/bacting/issues/46

Closing this issue now.