Anyone used Clojure as Scripting language? Why not?

Yes, but Java has standard APIs for almost all of them, not sure bb covers them all. Also JNI is a part of Java, so I mean, going through JNI is like saying you need to use ProcessBuilder, in that it is still true that Java exposes a mechanism to do native syscalls.

I don’t know if bb allows you to use JNI or JNA or something similar. I think that actually be a nice feature, if it added support for one of the easy dynamic JNA libs like https://github.com/Chouser/clojure-jna or https://github.com/techascent/tech.jna

For example, if Java didn’t have JNI, you’d need to wait for the runtime itself to add native implementations of each syscall and expose some API for them. Since it has JNI, in theory you can build those native extensions yourself.

I’m just not sure when it comes to this if bb allows to build those native extensions over it yet, or if it already exposes enough of its own APIs to cover most syscalls.

Which is what I meant by, in case it doesn’t cover a syscall, or lets you leverage some native functionality of the OS, you can delegate to another process that does it for you.