24 Jun '12, 6pm

Clojure & Java Interop

About a year ago I got a phone call asking if I wanted to join another team at DRW . The team supports a (primarily) Java application, but the performance requirements would also allow it to be written in a higher level language. I'd been writing Clojure (basically) full-time at that point - so my response was simple: I'd love to join, but I'm going to want to do future development using Clojure. A year later we still have plenty of Java, but the vast majority of the new code I add is Clojure. One of the big reasons I'm able to use Clojure so freely is the seamless interop with Java. Execute Clojure from Java Calling Clojure from Java is as simple as loading the .clj file and invoking a method from that file. I used the same example years ago, but I'll inline it here for simplicity. ; interop/core.clj (ns interop.core) (defn print-string [arg] (println arg)) // Java callin...

Full article: http://blog.jayfields.com/2011/12/clojure-java-interop.html

Tweets

Jay Fields' Thoughts: Reading Clojure Stacktraces

blog.jayfields.com 26 Jun '12, 11am

Clojure stacktraces are not incredibly user friendly. Once I got used to the status quo, I forgot how much noise lives wit...

Using Java to deal with multicore programming complexity: Part 1

Using Java to deal with multicore programming c...

eetimes.com 25 Jun '12, 1am

Developers of embedded software are being forced to figure out ways to exploit the complexity of multicore platforms with ...

Reading Clojure Stacktraces

blog.jayfields.com 26 Jun '12, 12pm

Clojure stacktraces are not incredibly user friendly. Once I got used to the status quo, I forgot how much noise lives wit...

Sec: Making Sure Java Web Applications Are Secure: Coverity's Web Application Security Analysis is a development...

Sec: Making Sure Java Web Applications Are Secu...

electronicdesign.com 26 Jun '12, 7pm

Coverity is well known in the enterprise and high reliability space that includes avionics and military applications. They...

Clojure: Production Web REPL

blog.jayfields.com 21 Jun '12, 12pm

is a powerful tool. I use the REPL extensively in development, and I recently added a web REPL to each of our production a...

Using Java to deal with multicore programming c...

eetimes.com 28 Jun '12, 9am

Editor’s Note: In this final part in a three-part series, Atego’s Kelvin Nilsen provides guidelines on how to use the comb...

To Ruby From Java:

ruby-lang.org 07 Jul '12, 1pm

Java is mature. It’s tested. And it’s fast (contrary to what the anti-Java crowd may still claim). It’s also quite verbose...

Jay Fields' Thoughts: Clojure: Production Web REPL

blog.jayfields.com 21 Jun '12, 11am

is a powerful tool. I use the REPL extensively in development, and I recently added a web REPL to each of our production a...