Home » JVM Languages » Page 18

JVM Languages

Reactive Database Access – Part 3 – Using jOOQ with Scala, Futures and Actors

We’re very happy to continue our a guest post series on the jOOQ blog by Manuel Bernhardt. In this blog series, Manuel will explain the motivation behind so-called reactive technologies and after introducing the concepts of Futures and Actors use them in order to access a relational database in combination with jOOQ. Manuel Bernhardt is an independent software consultant with ...

Read More »

Clojure VIM Environment

The Cursive plugin for Clojure is now out of its beta testing phase. I have been using it throughout its beta program and, I must say, it is pretty good. Sure, the refactoring capabilities are not quite on a par with those of IntelliJ for Java, but then Clojure is dynamic and asking for that kind of power is asking ...

Read More »

Reactive Database Access – Part 2 – Actors

We’re very happy to continue our a guest post series on the jOOQ blog by Manuel Bernhardt. In this blog series, Manuel will explain the motivation behind so-called reactive technologies and after introducing the concepts of Futures and Actors use them in order to access a relational database in combination with jOOQ. Manuel Bernhardt is an independent software consultant with ...

Read More »

Ceylon on Java 9 + Jigsaw

Everyone is talking about modules these days. New languages try to incorporate them, and older languages try to retrofit them in. Which is great news, because modules are essential. Java 9 is around the corner, because it’s supposed to come out next year, and the really big new feature is modularity, which it calls the Jigsaw project. Ceylon is a ...

Read More »

Modelling failure in Ceylon

In all programming languages, we need to deal with operations than can “fail”: a pure function might fail to produce a result, or an impure function might fail to produce its desired side-effect (create a new file, or whatever). In neither case can we just blindly continue with the rest of the computation. In the first case, the result of ...

Read More »

Dependency injection in Ceylon with Weld and Guice

I’m personally ambivalent about the benefits of dependency injection. On the one hand, I recognize its usefulness in certain container environments such as Java EE. (For the record, I was the author of the CDI 1.0 specification, with my JCP Expert Group.) On the other hand, given the nature of what I’ve been working on for the last few years, ...

Read More »

Reactive file system monitoring using Akka actors

In this article, we will discuss: File system monitoring using Java NIO.2 Common pitfalls of the default Java library Design a simple thread-based file system monitor Use the above to design a reactive file system monitor using the actor model Note: Although all the code samples here are in Scala, it can be rewritten in simple Java too. To quickly ...

Read More »

5 Scala Puzzlers That Will Make Your Brain Hurt

Hunting for non-intuitive cases of exceptions and errors in Scala For this post we got in touch with Nermin Serifovic and Andrew Phillips who you might know from Scala Puzzlers. Together, we’ve selected a few questions to explore errors and exceptions in Scala. Some of the questions might seem weird at first, but it all makes sense when you dig down ...

Read More »

Changing Scalatra and sbt default directories

Conventions are not always good. I recently started a new internal web project at Codurance and I decided to use Scala. As I’m not a fan of big frameworks, I chose Scalatra as a micro web framework. The first challenge was that I wanted to organise my application with a different directory structure. By default, sbt and Scalatra use the ...

Read More »