Chapter 12. Java.next

This chapter covers

  • Generating objects on the fly with proxy
  • Clojure gen-class and GUI programming
  • Clojure’s relationship to Java arrays
  • Interfaces that all Clojure functions implement
  • Using Clojure data structures in Java APIs
  • Using definterface
  • Exceptions

Regardless of your views on the Java language, it’s difficult to deny that the JVM is a stellar piece of software. The confluence of the just-in-time (JIT) compiler, garbage collection, HotSpot, and the flexible bytecode have created an environment in which many programmers have chosen to grow their alternative programming languages. Additionally, the deluge of library options hosted on the JVM further makes the JVM the language target of choice. From Clojure ...

Get The Joy of Clojure, Second Edition 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.