Hacker News new | past | comments | ask | show | jobs | submit login

Hmmm, nothing big here either but I was learning anyway so I didn't set the par too high. Since you asked, let me see:

A bunch of various throwaway programs or clones of small utilities I had already written in other languages. An utility to update metadata in my oggs, a command that finds similar files, a little solver to answer questions about a given set of different relations (I actually needed such a solver to make some decisions at work so I programmed myself one), bunch of other file/text based unixish tools. Conclusion: 1) Java's I/O APIs are from hell. 2) Clojure can do a lot in only a few words of code.

Some GTK applications via libjava-gnome-java. Works much better than AWT/Swing used in many sample applications, and is much Linux friendly. Lots of Java interop training there :) Will try out LWJGL soon, in an attempt to port a small OpenGL game to Clojure: the game is mostly about experimenting some gameplay ideas so the OpenGL implementation is rather straight-forward and anything but time-critical, thus, the OpenGL backend is great candidate for porting to a new language. I've already learned that Clojure is a great help in transforming my thoughts into code so I prefer to do any prototyping in it these days.

A simple gravity simulation: a friendly way for experimenting with parallel features and transactional memory, agents etc. as you have lots of dependent things moving independently, and I got to "optimize" some Clojure number-crunching as well. And there's ants.clj and other parallel sample programs already so I could compare myself to others.

An evolutionary algorithm aimed at the travelling salesman problem, one of the very first Clojure programs I wrote that introduced me nicely to basic data structures and abstractions in Clojure such as the ubiquitous seqs. I used Swing for the GUI -- crap.

A small Reddit clone. I actually wanted to prototype a few nice ideas I had with regard to news aggregators like HN and Reddit in general so it was mostly not about Clojure. But it offered me a very welcome chance to experiment maintaining global state in an efficient and functional way (server application), got to think about how would I create a live disk-backed database hopefully mostly in Clojure, wrote some basic html generator macros in Clojure, and got some taste of Java interop by hooking the thing up to Java's http server. Excellent project and still ongoing whenever I feel like it.

A simple attempt at Casino (the card game) AI. I probably wrote a sudoku solver too although the most recent I can recall was in Haskell. But I always write a sudoku solver in a new language so I probably did one in Clojure as well.

Oh, and a small layout library for GUIs. I have a thing for those. It's rather incomplete as it was one of the very first Clojure programs I ever wrote; I could rewrite it now and make it much more shorter, faster and idiomatic should I actually come up with a _need_ to have a layout library of my own :)

That's about it, more or less. Might have forgotten something.




Thanks for sharing.

I've been investing quite a bit of time into Clojure and to motivate me to go further I'd like to find some software (not code snippets) I can download and see the power Clojure provides (that other tools like Ruby or C don't) in a real application.

Similar to what Rails did for Ruby.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: