On Jun 20, 2013 3:53 AM, "S. Dale Morrey" <sdalemor...@gmail.com> wrote: ... > I want to give users the ability to custom code their own strategies in an > interpreted scripting language. I do not want to write my own language for > doing this. There are too many hazards in creating an entirely new > language and the learning curve would be steep, plus I'm not sure I really > have anything to contribute to language development here. In short, I > really just want to expose the signals and the trading api i.e. the > applications innards, via an interpreter of some sort. > > I have been looking at the Java "scripting" API > http://docs.oracle.com/javase/6/docs/technotes/guides/scripting/programmer_guide/and > it seems perfect for the job. > > It defaults to Javascript which I do consider as a potential candidate for > this, but I'm curious to know what other languages have been implemented on > top of JSR-223 that would be adequate for the job. The link to the other > languages provided on that page is dead. > > So the questions I have are as follows. > > Is it wise to force one language over another or should I leave this a > configurable option? > If you were trying to give this kind of power to an end user, what language > would you pick assuming the restriction that it must have a JSR-223 > binding? >
If java is your comfortable language, groovy would be a good choice: java is valid groovy, good community, lots of docs I found this: http://stackoverflow.com/questions/11838369/where-can-i-find-a-list-of-available-jsr-223-scripting-languages Hope it helps Spencer /* PLUG: http://plug.org, #utah on irc.freenode.net Unsubscribe: http://plug.org/mailman/options/plug Don't fear the penguin. */