BMW recently started an advertisement on Facebook with a little riddle (oh my god it …)
Tag Archives: Clojure
Agents in Clojure are functions that are applied “in the background” — a thread. Any function in Clojure implements java.lang.Runnable. To see what happens when an agent calls another agent, I set up two agents agt1 and agt2, their state … Continue reading
Leiningen is a Clojure build system. I like using it because you don’t have to maintain huge XML files, just a project definition with all its settings and dependencies in one place.
This is a tutorial for setting up an Clojure development environment using Clojure, Emacs, SLIME, Swank, swank-clojure, paredit mode, Leiningen and the Clojure Debugging Toolkit, CDT. SLIME is the Superior Lisp Interaction Mode for Emacs. Swank is the SLIME server … Continue reading
Non-shared Data In Part I I talked about shared data. The opposite should also be taken into account when planning a concurrent program. Languages like Clojure, Erlang or Scala provide a non-shared, immutable data model which is integrated right into … Continue reading
Executor Framework Java 5 aids us with more convenient tools for concurrent programming, one of them is the Executor Framework. You can define a fixed thread pool which executes a maximum, pre-defined number of threads at a time, regardless how … Continue reading
Today I needed all elements of a list without the last one. In Clojure I am used to having a butLast function: (butlast [1 2 3]) (1 2) In this case this is used to change file names for substitution … Continue reading