News

Stack Overflow

Groups

Hi all, I have the following function to list all the files recursively under a directory. (defn list-all-files2 [path] (let [basepath (java.io.File. path)] (loop [origlist [basepath] finallist []] (if-let [cur (first origlist)] ;This line is not required (if (.isDirectory cur) (recur (concat (rest origlist) (.listFiles cur)) (conj finallist

Hi guys, At the risk of being redundant (I am thinking Garden<[link]>) I have released some libraries to generate css from clojure data structures. Take a look at my github <[link]> if you are interested. It's one my first clojure project and I'd really be happy to hear any

enlive-partials ([link]) adds support for wrapping and including enlive templates. It is convenient when you want to give designers a sandbox to work with html templates without having to learn enlive/Clojure. New in version 0.2.0 is support for replace-vars: [link]

Hi guys. I just stumbled upon something [1] and the editor is quite similar to what I was hoping/focusing on having(these days) for editing/writing (not just) clojure code. What are your thoughts on this? (just don't think too much of it in that is for java and ignore the 3D thing) To see what I mean, please see the second video on that [1] page (it's 12

Hi all, I'm trying to find a Clojure solution for auto-compiling HAML and SCSS code. I came across [link], but that fails when I try to compile with "*lein haml once*" or "*lein haml auto*". Has anyone gotten this setup working? Or is there otherwise any other

Here are some functional programming job opportunities that were posted recently: Clojure and Clojurians at Factual Needed at Factual [link] Cheers, Sean Murphy FunctionalJobs.com

ClojureHomePage is a Compojure based web framework that allows you to write the backend and frontend with Clojure. � Here's a small tutorial <[link]> Here's the documentation <[link]> � You can * Embed Clojure into a HTML file with the <clj></clj> tags

Hello, I am trying to structure the game loop for a simple game in clojure, trying to keep things pure as far as possible to get a feel for how this would work in a functional environment. Currently, I am working with a message-based system, whereby various events create "messages" which I then act on to change state. For example:

There's now a library that allows you to retrieve the source body of bound symbols. [link]

grojure 0.7.1 is out at [link] Grojure is a Javalike syntactic shell for Clojure using Kern, Amando Blancas' port of Haskell's Parsec, a monadic parser combinator library. Because Grojure's grammar will expand and change, it's probably of most use to Clojure/Kern developers as an example of Kern usage for now. The one

Blogs

Vor Kurzem wurde im Bundestag ein Antrag gegen Softwarepatente vorgestellt, der sich ganz vielversprechend anhört.Zu diesem Thema bin ich heute als Sachverständiger zur öffentlichen Anhörung des Rechtsausschusses geladen.Ich denke, das ist ein guter Anlass, eine ganz persönliche Geschichte zum Thema Softwarepatente zu erzählen, die sich schon vor einiger Zeit zugetragen hat.Am 31. August 2007 erhielt einer unserer Kunden ein Schreiben der Firma Siemens. Gegenstand des Schreibens war der Hinweis auf die Verletzung eines Siemens-Patentes durch die eCommerce-Site unseres Kunden.WTF?! ...

with all apologies to Philip Greenspun Any sufficiently complicated Clojure program contains an ad hoc, informally-specified, bug-ridden, slow implementation of half of OPS5. :F

Yak sweat·er Noun /yak swet·er/ A framework that you created before a better framework came out but that you still use because you know it intimately. as in the line from Shakespeare’s play Much Ado About nil “Indeed thou did invent the wheel, alas t’is an oblong wheel thou hast creat’d. Avast and no longer [...]

Although I hoped to wait another day or two to talk about this on my blog, circumstances have force my hand. Therefore, I would like to take a few of your spare moments to talk about a new project that I’m working on called underscore-contrib — an extensions library / proving ground for Underscore.js.1 TLDR; [...]

In my core.contracts code I’ve experimented with using unification to aide read- and re-readability in my macros. Often I’ve found that I’ll hit a wall when returning to a macro that I wrote long ago. A mass of documentation often helps, but I wanted something more. I think I’ve found it… or at least the [...]

Recently there was a wonderful post call “The joys of having a forever project” that was very motivational and got a lot of people excited. Due to that post I went searching around and found a whole under-culture of forever projects on the Internet including a SubReddit devoted to the topic. While I can understand [...]

How can you tell that someone is not a scientist? They’ll have the word “scientist” in their title. This seems harsh right? The truth is that if you look at most of the fields defining science you’ll see that the practitioners rarely call themselves scientists: Biologist Chemist Physicist Geologist Astronomer Botanist So why not call [...]

Using Underscore and Lemonad, how could you write a run-length encoder/decoder without ever referencing a function parameter? One way: var S = ['a', 'a', 'a', 'a', 'b', 'c', 'c', 'a', 'a', 'd', 'e', 'e', 'e', 'e']; var pack = L.partial1(L.partitionBy, _.identity); pack(S); //=> [['a', 'a', 'a', 'a'], ['b'] ...] var rle = _.compose( L.partial1(L.flip(_.map), L.juxt(L.plucker('length'), [...]

At various times I’ve needed something very similar to python -m SimpleHTTPServer <port> readily accessible in my Clojure projects. Most of the time I just used Python but recently I’ve wanted to rework some examples from The Joy of Clojure and thought a simple Lein plugin would make a nice addition. The result: lein-simpleton — [...]

A few years ago I got the idea that it would be fun to implement a variant of Scheme targeting the JVM. During my search for different ways to implement numerics I looked deeply at the implementation of two languages: JScheme and a little-known language Clojure. During my explorations with these two languages and the [...]

About

Website by Matthias Schneider (@dermatthias) - What is planned for this site? (aka todo)