It’s easy to use and update the git version of Configgy and other code hosted at github. If you don’t have git, you can use MacPorts to install it:
$ sudo port install git
Then clone the Configgy repository with
$ git clone git://github.com/robey/configgy.git
Then cd into the top-level directory and build as described below.
When you want [...]
Continue reading about Using git to update Configgy and other github-hosted code
Configgy is a great configuration and logging library for Scala. You can read info/examples on the release page or git the current repository.
To install, just download and, in its directory, type
$ant package
( The ‘$’ is your terminal command-line prompt. Don’t type it.)
If you see the following errors:
[scalac] Compiling 16 source files to /Users/Gary/Development/scala/configgy/target/classes [scalac] [...]
Nice talk about alternatives to shared-state concurrency on the JVM. Notice the gradual acceptance by the community that shared-state concurrency is too hard to get right and must be abandoned. Alternatives are being sought; this talk discusses STM, Actors, and Dataflow. I also hear more death knells for Java. Due to the required language integration [...]
Continue reading about Think Java shared-state concurrency is hard? That’s ok; it’s dead.
The Scala Eclipse plugin is in development, so we can forgive little issues. One I keep running into is that programs sometimes can’t find themselves upon start. On the canonical hello-world program, I see:
Exception in thread “main” java.lang.NoClassDefFoundError: HelloWorldCaused by: java.lang.ClassNotFoundException: HelloWorld
So far, the only explanation I’ve found from searching the web is that the [...]
For completeness, here’s the manual Scala installation. It’s also quite simple:
1. Download Scala from http://www.scala-lang.org/downloads, picking the IzPack Installer2. Run the Installer: java -jar scala-2.7.5.final-installer.jar
I haven’t tried it, as I use the MacPorts method described below. MacPorts automates the switching of paths to new versions, updates, removals, etc in a consistent way for many software [...]
MacPorts is an easy way to install and manage Scala on the Mac. Once MacPorts is installed, you can install Scala using:
sudo port install scala
Sudo will ask for your password. Wait. Done.
Once installed, you may want to know where it was installed. For example, you may need to set the SCALA_HOME environment variable. Just do
port [...]
Continue reading about Installing Scala on Macs via MacPorts
This is a great talk that intros Scala, describing the features of the language and showing the feel of the language through examples.
Parleys: The Feel Of Scala
It’s also a very well-done web presentation.
var addthis_pub = ‘garyboone’;
var addthis_language = ‘en’;var addthis_options = ‘email, favorites, digg, delicious, twitter, google, facebook, reddit, live, more’;
Programming in Scala is the first of the recent set of Scala books that marks the coming of age of the language. It’s comprehensive, but readable.
var addthis_pub = ‘garyboone’;
var addthis_language = ‘en’;var addthis_options = ‘email, favorites, digg, delicious, twitter, google, facebook, reddit, live, more’;