MathJax

SyntaxHighlighter

Highlight

Custom CSS

Thursday, May 8, 2008

Fun with the scala interactive shell

Instead of running irb as a calculator, I find myself using the scala interactive shell instead. With the J9 JVM, performance is better, plus you can automatically load files on startup (just like irb). You can also add your own jars to the classpath so they are available in the interactive shell, and automatically load files at startup. Add this to your .bash_profile for the goodness:

export CLASSPATH=$CLASSPATH:/path/to/my/lib.jar
alias iss='scala -i ~/.scalarc'
Post a Comment