Chapter 5. Clojure and Java interop

 

This chapter covers

  • Introduction to Clojure’s Java Interop functionality
  • Calling Java from Clojure
  • Compiling Clojure down to byte code
  • Calling Clojure from Java

 

Java is the new COBOL. This pronouncement has been made year after year for a few years now, but hasn’t quite come to pass. Java was originally designed in the early nineties, was officially released in the mid-nineties, and went on to become one of the most significant technologies of its time. Today, the Java stack is probably one of the most popular in the industry. It isn’t going away anytime soon.

With the sheer amount of Java code in production (and more being written every day), no modern programming language can hope to succeed without ...

Get Clojure in Action now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.