Today I was writing an AspectJ aspect for a Scala trait and was wondering why my constructor pointcut definition didn’t work. Having a closer look at the Scala byte code together with my colleague Johan solved the puzzle. Here is what I did (using AspectJ 1.6.8 and Scala 2.8.Beta1): To start with here’s a simplified [...]
Intercepting Scala trait constructors
April 28th, 2010 by Michael Kober — Java
Extending the JDT
April 20th, 2010 by Michael Kober — Android
A couple of weeks ago I had a look at the Motodevstudio for Android developers and I think it has some quite nice features like code snippets or wizards for Android activities, services and more. Actually it’s is quite easy to extend the eclipse JDT and provide such useful plugins. This blog post is about [...]
Tags: Android, eclipse, programming, scala, tutorial
Building OSGi Bundles with Scala and Gradle
February 9th, 2010 by Michael Kober — Java
There already some good blog posts about how to build OSGi bundles in Scala, among others “An OSGi Bundle… built in Scala” of Neil Bartlett and “OSGi, Maven and Scala” of Gavin Bong using pax-construct. Here is another alternative using Gradle. Gradle is an open-source build system providing the expressiveness of a Groovy based DSL [...]
Tags: build systems, programming, scala
Getting around static typing in Scala
January 23rd, 2010 by Jan Kronquist — Java
I really like static typing, but sometimes it can get in your way. For instance if you have a collection of objects and you want to perform an operation on the objects of a certain subclass you can run into problems.
Tags: collections, programming, scala
The Golden Ratio
October 24th, 2009 by Ulrik Sandberg — Tips & Tricks
Also known as the “Divine Quotient”, the Golden Ratio was given an almost magical meaning during the renaissance, but it’s actually much older than that. Leonardo DaVinci used it. Euclid used it. It was supposedly discovered by Pythagoras. So, what is it? It’s very simple. Take a length and divide it into two parts: a [...]
Tags: goldenratio, mathematics, programming, scala, scripting
Scala IDE support
March 12th, 2009 by Michael Kober — Java
Today we wanted to test the scala java interoperabilty in different IDEs. We used the Scala plugin for Eclipse, Netbeans and IntelliJ. The intellij plugin worked out of the box. We managed to get the eclipse plugin working after some trouble as well. Although the netbeans plugin seems promising the interoperability between java and scala [...]
Tags: ide, programming, scala
Azul
October 20th, 2008 by Jan Kronquist — Architecture
We have got the privilege to borrow an Azul Vega 1 which is the smallest of Azul‘s monster machines. This evening a bunch of us Jaywayers gathered to try it out. Installing the Azul JVM was painless and all of us were up and running very quickly. Read more…
Tags: concurrency, hardware, programming, scala
