Follow up with yesterday:
you can get my Scala syntax gem extension here, and read below for the instructions on how to install it.
First here is the result:
class Auction(seller: Actor, minBid: Int, closing: Date) extends Actor {
val StringForFun = "hello"
val timeToShutdown = 36000000 val bidIncrement = 10
def act() {
var maxBid = minBid - bidIncrement
var maxBidder: Actor = null
var running = true
while (running) {
receiveWithin ((closing.getTime() - new Date().getTime())) {
case Offer(bid, client) =>
if (bid >= maxBid + bidIncrement) {
if (maxBid >= minBid) maxBidder ! BeatenOffer(bid)
maxBid = bid; maxBidder = client; client ! BestOffer
} else {
client ! BeatenOffer(maxBid)
}
case Inquire(client) =>
client ! Status(maxBid, closing)
case TIMEOUT =>
if (maxBid >= minBid) {
val reply = AuctionConcluded(seller, maxBidder)
maxBidder ! reply; seller ! reply
} else {
seller ! AuctionFailed
}
receiveWithin(timeToShutdown) {
case Offer(_, client) => client ! AuctionOver
case TIMEOUT => running = false
}
}
}
}
}
You will need to add those CSS elements to display things correctly:
pre {
background: #000000 repeat-x;
color: #00FF00;
font-family: arial, 'lucida console', sans-serif;
line-height: 160%;
font-size: 120%;
}
code {
color: #00EE00;
font-style: bold;
font-family: arial, 'lucida console', sans-serif;
}
.comment { color: #333; font-style: italic; }
.keyword { color: #eff; font-weight: bold; }
.punct { color: #444; font-weight: bold; }
.symbol { color: #0bb; }
.string { color: #6b4; }
.ident { color: #00b; }
.constant { color: #66f; }
.regex { color: #a82; }
.number { color: #a33; }
.expr { color: #227; }
Then on your machine, you will need ruby and rubygems installed, and install redcloth and syntax:
gem install syntax
gem install redcloth
Put your sample into a text file in the same folder as run.rb, then run:
ruby run.rb myscala.txt > output.html
That’s about it. It’d be great to develop the same things for Java and CSS. In the mean time, enjoy!
When creating the documentation for svn2rss, I fell on the awesome “newgem” gem that Rubyforge provides to help outputting a website and releasing gems.
It was really very helpful, and I liked the way the syntax gem just transformed my ruby code into a nice color block. (I am still looking for the right shade of grey for the comments though)
I would like to provide an extension of the syntax gem to do the same thing for scala. (I still have to learn the language first, hopefully the pdfs on the website will be entertaining).
I haven’t been able to find a previous work in this area. Feel free to comment if you happen to have something already working.
I started working for Intalio more than a year ago.
At the time I was a young software engineer with some skills regarding the Eclipse platform.
I grabbed a seat, and stayed there learning how to code with a team, parsing XML, understanding BPEL, hacking WSDL and groking Ruby.
Working for Intalio is fun. I personally feel like I am constantly rewarding myself. Every feature we bring in is a new skill, a new technology we master.
There is no forbidden path to achievement, we always take the shortest one, and that means slashing into code, rewriting, beautifying, migrating fearlessly.
In a small structure like this one, one thing continues to astonish me: we don’t discuss objectives. We all know where we fit and bend together to make it work.
For the last year we have been running a marathon, rewriting most of the Designer. I am proud of announcing to you that it is available for everyone and for free out there.
Ismael thanks all the persons that made it possible, and I’d like to thank them too, not only the team today, but the team I did not have the chance to know two or three years ago.
After this release, nothing has changed. We are still focused on the product and delivering the best experience to our customers.
We already started digging and have some finds for 5.1.
More on all this very soon.

Photo excerpted from Techcrunch fr.
Published on September 20, 2007
in Eclipse.
There is a particular point in Eclipse I dislike.
Importing projects.
Well actually that is not true, importing a project directly from an archive or a directory is awesome.
The thing is, sometimes you found the archive, you double-click on it, and then:
nothing.
The wizard detected that another project in your workspace was bearing the same name. So it just didn’t show it.
The current workaround consists of opening the archive and look at the same of the folder. Then it’s time to come back in Eclipse and delete the project to replace it.
This is rather a problem for me as our QA team at Intalio has a huge panel of tests, and attaches its processes to the bugs.
So I am confronted to this problem, if no quite everyday, at least two or three times a week. And as QA tests always have the same name, I have taken the (bad) habit to delete projects as soon as I suspect that I am experiencing the bug - sometimes I get it right, and the “Test” project was guilty, sometimes I just lose time…
If you are in the same case and feel compelled to see this bug closed, feel free to comment the bug 173994.
Scala is a Java based language that combines the best of Ruby with strong types.
Sean McDirmid just released a new beta version of the plugin.
It is available through an update site: http://lamp.epfl.ch/~mcdirmid/scala.update
Congratulations to Sean for this achievement ! I look forward to dive into Scala and help on this front.
The complete announcement is available here.