Scala.js

Posted on Leave a commentPosted in AngularJS, Javascript

When I heard about Scala.js a couple of years ago, I thought to myself: “Well, that’s an interesting project, but sure it’s bound to fail”. Only it didn’t. The other day I’ve stumbled over an impressive technology demo. You can write a ray tracer in object-oriented and functional Scala, compile it to Javascript an run […]

Blazing Fast Pure Java Mixins Using Advanced Javassist

Posted on Leave a commentPosted in Concepts of programming languages

Last week I showed you how to utilize the Javassist library to mix up several Java classes into one. That’s more or less the concept of “mixins” most modern programming languages offer. The most important disadvantage of my approach is it mixes the classes at run time. Your compiler can’t help you. Neither can your […]

Using Javassist To Implement Mixins or Traits in Java

Posted on 1 CommentPosted in AngularFaces, Concepts of programming languages

Many components of the AngularFaces library share common properties and methods. Some of these methods are simple, some of them are complex. I’d like to move them to another class instead of implementing them multiple times. Unfortunately, the component classes don’t derive from a common base class. That’s nothing I can fix. That’s just the […]