Progress of Migrating AIOTrade to Scala

Well, I've done most parts of migrating AIOTrade to Scala, not all features return yet. I gain lots of experiences of inter-op between Scala and Java, since AIOTrade has to be integrated into an existed Java framework  NetBeans Platform. And also, whole project is now managed by Maven instead of Ant, which reduces lots of pain of dependencies upon crossing sub-projects.

This project is now hosted on  kenai.com  http://sf.net/projects/humaitrader, you can check out the code to get an overview of how to integrated Maven + Scala + NetBeans Modules. Of course, all were done with NetBeans Scala plugin.

LOC of this project so far:

$ ./cloc.pl --read-lang-def=lang_defs.txt ~/myprjs/aiotrade.kn/opensource/
     677 text files.
     617 unique files.                                          
     154 files ignored.

http://cloc.sourceforge.net v 1.08  T=3.0 s (167.7 files/s, 21373.7 lines/s)
-------------------------------------------------------------------------------
Language          files     blank   comment      code    scale   3rd gen. equiv
-------------------------------------------------------------------------------
Scala               353      7981     16301     27180 x   1.36 =       36964.80
Java                 43      1148       833      6946 x   1.36 =        9446.56
XML                 104       231       389      2414 x   1.90 =        4586.60
Bourne Shell          2        81        81       488 x   3.81 =        1859.28
HTML                  1         7        15        26 x   1.90 =          49.40
-------------------------------------------------------------------------------
SUM:                503      9448     17619     37054 x   1.43 =       52906.64
-------------------------------------------------------------------------------

A screen snapshot:

AIOTrade-100117.png

Comments

1. ijuma -- 2010-01-17 16:33

Hey Caoyuan,

Did you create a cloc language definition for Scala? If so, would you mind sharing it? It would be nice to submit it upstream too.

Ismael

2. dcaoyuan -- 2010-01-18 00:45

Hi Ismael:

$ ./cloc.pl cloc --write-lang-def=lang_defs.txt
$ vi lang_defs.txt # add following lines:
Scala
    filter remove_matches ^\s*//
    filter call_regexp_common C
    extension scala
    3rd_gen_scale 1.36
$ ./cloc.pl --read-lang-def=lang_defs.txt project_dir/files
3. ijuma -- 2010-01-21 00:25

Thanks, Ismael

4. szabihernyo -- 2010-04-21 13:47

Hi Caoyuan,

Am I correct that the project is now hosted on kenai.com and not on sf.net? It's the other way around in your blog entry.

Do you have instructions on how to import and set up AIOTrade in NetBeans so that I can try it out?

Szabi

5. dcaoyuan -- 2010-04-23 09:04

I has been moved back to sourceforge.net:  http://sf.net/projects/humaitrader