Re: Clojure on Android

2012-05-26 Thread thomas kalbe
On 25.05.2012 23:45, HelmutKian wrote: I've recently been on board a project that will targeting Android, and I've been given pretty much free reign chose my tools. I'm an experienced Common Lisper and a fairly new Clojure user, but I'd like to know about the feasibility of writing real-world

Re: clojurescript error

2012-05-26 Thread Alexander Kellett
A clean of temp files (namely, rm -rf resources/public/cljs) source tree should have fixed it. Just worked for me after upgrading to latest ClojureScript. On Monday, May 14, 2012 3:29:16 AM UTC+2, Murtaza Husain wrote: I am using Chris Ganger's noir-cljs. Any leads on how I could debug

Re:Selecting subsets of maps

2012-05-26 Thread Moritz Ulrich
Interesting problem. This is my (first iteration) of a solution: --8---cut here---start-8--- (defn select-in [m keyseq] (loop [acc {} [k ks] (seq keyseq)] (if k (recur (if (sequential? k) (let [[k ks] k] (assoc acc k

Re: Lambda: A lniux distro for clojurists

2012-05-26 Thread Denis Labaye
Hi, This is a very interesting idea. It would have been of great use when I did a Clojure workshop with complete beginners, with all kinds of OSes (Windows, OSX, ...). I took the Completely packaged VirtualBox image approach, but it is still a big mess: Not everyone have VirtualBox installed (or

Re: Do you leave a Swank / nREPL in your production servers?

2012-05-26 Thread Denis Labaye
Note also that I could be interesting to plug a swank server in a regular Java app (mainly for dev). This would allow to manipulate you live app, and use all the Clojure goodness from the confort of your REPL: http://denilab.blogspot.fr/2012/04/injecting-clojure-repl-into-your.html On Fri, May

Re: Clojure Pretty Printing with Blogger

2012-05-26 Thread Denis Labaye
Hi, I don't know google-code-prettify. I am using Emacs with org-mode, it has native support for prettifying Clojure code when exporting to HTML. You could also use GitHub's gist https://gist.github.com/, and embed it in your blog. Denis On Fri, May 25, 2012 at 12:07 PM, Jake Johnson

Re: Midje 1.4 released

2012-05-26 Thread Denis Labaye
Great! On Thu, May 24, 2012 at 9:10 AM, CA java10c...@gmail.com wrote: Yeah! On May 24, 12:29 am, Brian Marick mar...@exampler.com wrote: Midje is a test framework for Clojure. It supports top-down as well as bottom-up testing, encourages readable tests, provides a smooth migration path

Re: Clojure and the Anti-If Campaign

2012-05-26 Thread Mimmo Cosenza
Hi Dominikus, and thanks for sharing your valuable thought. I did not read the antiifcampaign, but I remember very well the number of ifs code lines were present in java window toolkit (1995), just because they did not add NullLayout class to polymorphically manage the absence of a layout

Re: Lambda: A lniux distro for clojurists

2012-05-26 Thread Islon Scherer
Why not create a shell script? On May 26, 9:32 am, Denis Labaye denis.lab...@gmail.com wrote: Hi, This is a very interesting idea. It would have been of great use when I did a Clojure workshop with complete beginners, with all kinds of OSes (Windows, OSX, ...). I took the Completely

Re: Lambda: A lniux distro for clojurists

2012-05-26 Thread Sergey Didenko
What about packaging Emacs with a few different configs? For example Ergoemacs + dark background settings. -- You received this message because you are subscribed to the Google Groups Clojure group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members

Re: Clojure Pretty Printing with Blogger

2012-05-26 Thread Jake Johnson
Thanks! I didn't realize org-mode would prettify Clojure code when exported to html (I generally use org-mode without exporting). Using org-mode, would my best option just be to type it up, export to html, then copy and paste the resulting html into my blog post? On Sat, May 26, 2012 at 10:46 AM,

Re: Clojure Pretty Printing with Blogger

2012-05-26 Thread eniotna
Hi C-c C-e b for the HTML export and open into the browser to display the result. Then copy paste the html source yes. Antoine On May 26, 2012 11:42 PM, Jake Johnson kognizant@gmail.com wrote: Thanks! I didn't realize org-mode would prettify Clojure code when exported to html (I

Re: Clojure Pretty Printing with Blogger

2012-05-26 Thread Moritz Ulrich
If you don't want to create a whole org-document just for a single export, you can use htmlize-{region,buffer} directly. That's the same command org uses. On Sat, May 26, 2012 at 11:46 PM, eniotna eniotn...@gmail.com wrote: Hi C-c C-e b for the HTML export and open into the browser to display

Why does (send a f) hang in this code, if f returns an agent?

2012-05-26 Thread Alex Coventry
I was messing with the example at clojure.org/agents to get it to log which agents called which, and finally came up with (use 'clojure.pprint) (defn relay [x i agidx] (when (:next x) (send (:next x) relay i (:idx x))) (when (and (zero? i) (:report-queue x)) (.put

Re: Clojure Pretty Printing with Blogger

2012-05-26 Thread Jake Johnson
Thanks again, guys! Much appreciated. On Sat, May 26, 2012 at 6:07 PM, Moritz Ulrich ulrich.mor...@googlemail.com wrote: If you don't want to create a whole org-document just for a single export, you can use htmlize-{region,buffer} directly. That's the same command org uses. On Sat, May

Deserialization of a Record

2012-05-26 Thread ChrisR
I have a problem deserializing a record from within a swing application. I wrote the minimal amount of code required to highlight the problem i'm having below. (if unfamiliar with seesaw, this is just creating a JButton which deserializes the record in the file /tmp/point on-click) (ns

Re: Deserialization of a Record

2012-05-26 Thread ChrisR
As an update to this, I can get deserialization working, so long as I (compile 'babel.records) within the file itself. It seems to me that having a raw (compile 'babel.records) type form at the start of each namespace containing defrecords I need to serialize would not be ideal, are there

[PATCH] RFC: Add Functions `tabify` And `untabify`

2012-05-26 Thread OGINO Masanori
Hello. I wrote functions for converting tabs from/to spaces. They are not used anytime, so they may be irrelevant to include core. Anyway I'd like to show them and hear your opinions. I want to use untabify in clojure.repl for formatting docstrings correctly (I'll post about that later), so

Re: [PATCH] RFC: Add Functions `tabify` And `untabify`

2012-05-26 Thread OGINO Masanori
What I mean in they are not used anytime is they are _not always_ used I'm sorry. -- OGINO Masanori masanori.og...@gmail.com http://twitter.com/omasanori -- You received this message because you are subscribed to the Google Groups Clojure group. To post to this group, send email to