Monthly Archives: January 2010
Spread Thin
With the profusion of “community” web sites around today, it’s getting hard to keep track of where your “community” is. For example, the “Clojure community” exists in 7 places: clojure.org (main documentation) Github (source code) Assembla (bug tracking) Wikibooks (more … Continue reading
Keyword Arguments in Clojure, the Right Way
Update Feb. 10, 2010: I was wrong. Recent discussions indicate that placing optional arguments in-line, as in my first example, is preferred. In the future, Clojure may have destructuring support for this style. For now, this post remains a useful … Continue reading
clojure-hadoop 1.1.0 release
I’ve made a new version of my clojure-hadoop library. Downloads are on the main page. List of changes here. This fixes some missing pieces in the first release, and adds some more Hadoop configuration options.
Clojure-Hadoop 1.0.0
At long last, I have made a formal release of my clojure-hadoop library. Downloads and more information here. The 1.0.0 release is documented, but not in exhaustive detail. Other people have used this successfully, but it may not support all … Continue reading
Agents of Swing
The title of this post would make a good name for a band. Anyway, today I’m going to talk about Swing and concurrency and Clojure. The Swing framework is not thread-safe. That may sound strange at first, but there’s actually … Continue reading
Heating Up Clojure & Swing
Most Swing examples don’t translate well into Clojure because they are so thoroughly embedded in the object-oriented paradigm. A typical Swing example has a main class that extends a container class and implements some *Listener interface. Clojure beginners who try … Continue reading
Taming the GridBagLayout
GUI layout is hard. You’d be crazy to do it without a GUI designer like Netbeans. Well, I’m pretty crazy. So I’m going to do some GUI layout in Clojure. And I’m going to use the most intimidating of Java’s … Continue reading
doto Swing with Clojure
One of the great things about Clojure is how it can make Java programming easier and less verbose. Take Swing. It takes a ton of code to render even a simple GUI. Most tutorials don’t even tackle it without an … Continue reading
Swing Into Actions with Clojure
My previous post left you with a Clojure/Swing GUI consisting of one window and one button. Boring! Let’s make it do something. To catch up, start a Clojure REPL and type: (import ‘(javax.swing JFrame JPanel JButton)) (def button (JButton. “Click … Continue reading
First Steps With Clojure & Swing
Swing is the GUI standard for Java. Clojure is the awesomeness standard for Java. Let’s make an awesome GUI. Make a Window Interactive development is fun. Fire up a Clojure REPL, and type this: (import ‘javax.swing.JFrame) (def frame (JFrame. “Hello … Continue reading