Script Language for Humai Trader?

I’m considering the script language for Humai Trader, which will be used to define custom indicators, buy-sell signals etc. I took a look at the script world in Java now. There are some choices newer than several years ago, such as, groovy, beanshell etc.

There is an interesting article:  Choosing a Java scripting language: Round two in javaworld comparing these script languages, which is almost the same point as my view:

Here’s what he says:

Jython is one of the fastest scripting interpreters. From looking at the Website, it seems that Jython development is about to renew, which is good news. There are several good books on Jython. If you like the Python language, Jython is a solid choice.

BeanShell is not as fast as the quickest of the interpreters, but the 2.0 release supports loading of ordinary Java source, which is a strong selling point. I tried loading and running several Java source programs as scripts and found BeanShell to work fine, which is impressive. The libraries are well-organized and make integration simple. If performance is not the single most important criteria for your scripting interpreter and you want to write Java scripts, look at BeanShell.

Rhino is the winner of the performance benchmarking test and also supports Java-like syntax in its scripting. There are plenty of books on JavaScript available. Rhino appears to be well supported, and the distribution includes a useful debugger.

JRuby brings the feature set of Ruby to the table. It isn’t the fastest of the interpreters, but if Ruby syntax and functionality is important to you, take a look at this interpreter. I ran version 0.8, which seemed to work just fine for my simple tests.

Groovy has attracted quite a bit of attention and development effort in the Java community. It is one of the fastest interpreters on the benchmarking tests, even without compiling the scripts down to classfiles. The syntax is Java-like and supports some powerful features that Java doesn’t. This is an interesting addition to the programmer’s toolkit that has a lot of potential.

So, the choice may be JavaScipt, the major reasons are:

  • JavaScipt (JSR 223) will be integrated in Mustang (the next version of JDK)
  • JavaScipt is the winner of the performance benchmarking test
  • JavaScipt is one of the mostly used language in web world, it’s a familiar for many users
  • There are plenty of books on JavaScript available
  • The footprint

The only issue is: Is there a lightweight javascipts editor module available for NetBeans Platform?

  • Posted: 2005-12-22 08:00 (Updated: 2009-12-30 11:35)
  • Author: dcaoyuan
  • Categories: AIOTrade

Comments

4. discount perfume -- 2006-08-06 09:00

[Trackback] all discount perfume sites discount perfume and cologne perfume discount cheap

5. fireplace mantels -- 2006-08-06 09:00

[Trackback] cast stone fireplace mantels fireplace mantels wood log fireplace mantel fireplace marble mantel

6. wood fireplace mantels -- 2006-08-06 09:00

[Trackback] antique fireplace mantels custom wholesale fireplace mantels fireplace mantel design

7. Cheaptickets -- 2006-08-14 09:00

[Trackback] cheaptickets airline cheapticket

8. rolex watches -- 2006-08-15 09:00

[Trackback] replica rolex watches rolex presidential watch rolex replica watches rolex tudor advisor alarm watch

9. rolex watches -- 2006-08-15 09:00

[Trackback] replica rolex watches rolex presidential watch rolex replica watches rolex tudor advisor alarm watch

10. cialis -- 2006-08-15 09:00

[Trackback] buy cialis generic cialis. cheapest cialis.cialis forum

11. meridia -- 2006-08-15 09:00

[Trackback] order meridia does meridia work meridia drug side effects of meridia meridia success stories meridia coupons coupon discount meridia

12. ambien -- 2006-08-15 09:00

[Trackback] ambien without perscription ambien next day ambien withdrawal

13. ultram -- 2006-08-15 09:00

[Trackback] ultram side effects ultram addiction buy ultram

14. blowjob -- 2006-08-16 09:00

[Trackback] blowjob movie. young blowjobs. brutal blowjobs