To create a step in Gremlin you write a closure in Groovy and include it as the third argument to the Gremlin.defineStep() method:
Gremlin.defineStep("myCustomStep", [Vertex,Pipe], myCustomClosure)
But what if instead of rewriting all of Gremlin, you were able to just write your custom steps in whatever JVM language you want?
I am not a JVM expert so I don't yet know if you can do this for every language, but it would be way cool if you could.
Hopefully some of the JVM gurus around here can provide more insight.
- James