5 ms·
Run you groovy/scala/js code on Twitter via @jvmbot
- vorg 12y agoThe code runner first tries evaluation as a Groovy image, if groovy fails then tries it as a Scala image, if scala fails then tries it as a Nashorn image. Given that Javascript is more common than Scala and Scala more common than Groovy (http://www.tiobe.com/index.php/content/paperinfo/tpci/index.html http://www.tiobe.com/index.php/content/paperinfo/tpci/index....), perhaps you should reorder the evaluation attempts to get the most probable language first. Heck, Groovy's only really used in Grails nowadays so you could even drop it completely or swap it for Clojure.
- szimano 12y agoas a matter of fact I code a lot in groovy, with no grails, but spring, but I hear you. There's a request to add support for hashtags with language choice https://github.com/softwaremill/jvmbot/issues/1 https://github.com/softwaremill/jvmbot/issues/1 so it might solve your issue. Adding support for Clojure is more then welcome ;-)
- szimano 12y agoi have changed the order of execution as you've suggested. also i've added possibility to force the language using hashtag