|
|
|
|
|
by neilellis
4344 days ago
|
|
At (insert swear word here) last! "The classpath can also include Maven coordinates, and Gosu will automatically resolve and download them at runtime: #! /path/to/gosu
classpath "../src,org.gosu-lang.gosu:sparkgs:0.1.0"
print( "Here is a library object: ${new SweetLibraryObject()}")
"Been writing java for 14 years and I've never had a nice way to run scripts. Now if you can work natively (tougher than folk think) with JSON I'd be very happy indeed. That would include supporting fully de-typed data not nasty schema based data binding. I've switched to NodeJS/JS because they speak the language of the web (not JS, but JSON). But I can't see why other languages can't learn to. |
|
Nashorn has shell extensions that helps you write shell scripts https://wiki.openjdk.java.net/display/Nashorn/Nashorn+extens...
It's also a great way to bootstrap your Java app with some JSON config http://benjiweber.co.uk/blog/2014/05/08/json-to-java-interfa...