Search Discussions
-
Recently, I found freedom of coding playing with Clojure with over 20 years’ experience on other program languages, Previously, I had several trials of learning Lisp, but never got traction. However ...
Louis Yu Lu
Dec 26, 2011 at 9:40 pm
Jan 1, 2012 at 5:23 pm -
(defn dist "Shortest distance between x,y and x2,y2 in toroidal space of dimensions w,h. Input coordinates should be in range (0,0)-(w,h). For instance, will give 1.414... if x,y = (0,0) and x2,y2 = ...
Cedric Greevey
Dec 15, 2011 at 10:54 pm
Dec 17, 2011 at 1:00 am -
I just pushed out version 1.3.4 of Swank Clojure. The main feature in this release is Derek Mansen's work integrating clj-stacktrace into the debugger frames, so now you can get stack traces with ...
Phil Hagelberg
Dec 28, 2011 at 1:03 am
Jan 4, 2012 at 7:27 am -
Hi Guys, I'm pretty new of clojure so sorry for the maybe stupid question... Anyway, i'm looking for read a file byte by byte, perfect would be get a lazy-seq of every byte in the file, it's looks, ...
Simone Mosciatti
Dec 12, 2011 at 3:11 am
Dec 15, 2011 at 6:38 pm -
Hi everyone, I was searching the web these days trying to find out more about these two macro systems and understand their differences, and why one is preferable over the other (or not). I'd like to ...
Razvan Rotaru
Dec 3, 2011 at 6:20 pm
Dec 8, 2011 at 3:56 am -
Allow colon as whitespace in map literals<http://dev.clojure.org/jira/browse/CLJ-899 That's a very subtle subtle change but with this it will be easier to experiment with JSON or Python data I want ...
Daniel Gagnon
Dec 20, 2011 at 4:43 am
Oct 10, 2012 at 2:26 pm -
Hi, I read that there's no such thing as lisp-like multiple values return in clojure. We can use vectors, and the destructuring feature helps also. However, for what I'm trying to do I need to ...
Razvan Rotaru
Dec 12, 2011 at 6:54 pm
Dec 24, 2011 at 1:20 pm -
Hello there, I want to write a function named "debug" which will print out "date- time msg + current source-line + etc. info", but I don't know how to get the current source and line number of the ...
Jaime
Dec 15, 2011 at 5:48 am
Dec 17, 2011 at 11:48 am -
Is there something like: (defn snoc[ col item ] (lazy-seq (if (seq col) (let[ [f & r] col ] (if (seq r) (cons f (snoc r item)) (cons f [item]))) [item]))) already here? (snoc (snoc (snoc [ 1 2 3] 4) ...
Michael Jaaka
Dec 10, 2011 at 11:13 am
Dec 14, 2011 at 10:23 am -
Hi guys, I've using Clooj and following the labrepl but I'm hitting a wall right now. How can I debug here? This the code I want to debug (defn min-1 [x & more] (loop [min x more (seq more)] (if-let ...
Erlis Vidal
Dec 29, 2011 at 9:23 pm
Jan 4, 2012 at 8:00 am -
A few months back I released 1.0 of deep-freeze, a binary serialization library for Clojure. Due to recent additions by Peter Taoussanis I thought it would be about time to let some more people know ...
Timothy Baldridge
Dec 30, 2011 at 6:00 am
Jan 1, 2012 at 2:09 pm -
Hello, While I am going through the Programming Clojure 2nd edition book, I am entering the code into a REPL. Sometimes when entering the code I enter a typo and hit enter and cannot get the REPL to ...
Jlhouchin
Dec 5, 2011 at 5:03 pm
Dec 9, 2011 at 8:41 pm -
11
letrec
Hi, Is there a reliable implementation of letrec in clojure? Anybody using it? I have found a post from 2008, with an implementation which I don't understand (and it's said to be slow), and which I ...Razvan Rotaru
Dec 14, 2011 at 7:09 pm
Dec 15, 2011 at 7:00 pm -
Is there any attempt to make distributed transactions? The usage scenario is the same like in JEE apps. I mean, there is a web service call, the transaction is started, there are some changes to db, ...
Michael Jaaka
Dec 31, 2011 at 4:26 pm
Jun 26, 2012 at 11:33 pm -
Hello, I am doing my dissertation project with Clojure and I am using Maven to build. It works on REPL and it build successfully, but the JAR file doesn't work, it says: "Java Exception" all the ...
Riccardo
Dec 7, 2011 at 2:15 am
Dec 8, 2011 at 2:22 pm -
Where is this file to be found?? (:require [clojure.contrib.sql :as sql])) I see it listed in the jar but?? I have the clojure.contrib-11.2.0.jar located in my classpath c:\opt\jars, as well as the ...
Jayvandal
Dec 24, 2011 at 6:17 am
Dec 28, 2011 at 8:02 pm -
Hi, I've just release Seesaw 1.3.0. Details of this release can be found in the release notes [1]. There are a few features I'm pretty happy about, so I'll mention them briefly here. Interactive ...
Dave Ray
Dec 21, 2011 at 3:25 am
Dec 21, 2011 at 2:38 pm -
I get the same thing on Windows XP with Leiningen 1.6.2 on Java 1.7.0 Java HotSpot(TM) Client VM - copied tools.jar manually to my lib/ just to see if it would work - it did, and still gave a warning ...
Andrew
Dec 6, 2011 at 4:51 pm
Dec 7, 2011 at 6:30 pm -
Is there a way for a macro m to expand into code that includes another "delayed" use of m such that this second use of m is only expanded if needed (and thus avoiding a stack overflow)? -- You ...
Andrew
Dec 2, 2011 at 11:19 pm
Dec 3, 2011 at 10:55 pm -
I was studying clojure for a while, and took a break to work on SICP in scheme. I found that they do numerous things that are against advice in Clojure having to do with the tail recursion. I got to ...
John.holland
Dec 1, 2011 at 10:04 pm
Dec 3, 2011 at 4:26 am -
Hi folks, In order to generate the documentation for Ring and Compojure, I created Codox after being unable to get Autodoc working. Codox is pretty simple, but should work out of the box, and ...
James Reeves
Dec 26, 2011 at 5:30 pm
Jan 4, 2012 at 6:31 pm -
Hi, I'm pretty new to functional languages but really love Clojure. My work typically involves multi-dimensional arrays of data. I'm an oceanographer and typically use things like sea surface height ...
Simon Holgate
Dec 22, 2011 at 10:11 am
Dec 26, 2011 at 9:38 pm -
Scheme, for instance, obeys the Law of Macro-Parsimony: "don't use defmacro," namely, "where defn will suffice;" Clojure, on the other hand, is macro-liberal. In other words, everyone seems to prefer ...
Peter Danenberg
Dec 22, 2011 at 9:54 pm
Dec 23, 2011 at 12:05 am -
I would like to use an alias to refer clojure.lang.RT/loadLibrary as lib. Instead to use: (clojure.lang.RT/loadLibrary "vtkCommonJava") I woul like to use this: (def lib ...
Antonio Recio
Dec 20, 2011 at 6:42 pm
Dec 21, 2011 at 4:29 am -
I have tried for two days to figure out what is causing the compiler to throw the following when compiling a macro: Caused by: java.lang.ClassCastException: java.lang.Long cannot be cast to ...
Brian Marick
Dec 20, 2011 at 1:34 am
Dec 21, 2011 at 12:47 am -
I've been going through the PLEAC web site, writing Clojure examples corresponding to the Perl code examples from the Perl Cookbook: http://pleac.sourceforge.net Michael Bacarella started a github ...
Andy Fingerhut
Dec 8, 2011 at 1:51 am
Dec 8, 2011 at 7:13 pm -
Hi, I have a use case where a daemon needs to read full namespaces from an external jar. I can successfuly access the namespace in the jar with tools.namespace/ find-namespaces-in-jarfile, then from ...
Pierre-Yves Ritschard
Dec 7, 2011 at 3:26 pm
Dec 8, 2011 at 4:20 pm -
Hi there, I'm using Clojure 1.3.0 and am running into what seems like an edge- case problem with extend-protocol (?)... Given (defprotocol MyProtocol (action [x])), (extend-protocol MyProtocol ...
Peter Taoussanis
Dec 27, 2011 at 6:21 am
Dec 31, 2011 at 5:01 pm -
Hello, we've finally got around to do a bug fix release for ClojureQL. This time pushing it to clojars too (sorry for that). I'm posting it here, because even though the increment is minor, it is an ...
Herwig Hochleitner
Dec 20, 2011 at 12:23 am
Dec 22, 2011 at 4:09 pm -
Despite Brian Carpenter's warning about torches and pitchforks [1], I've decided to release a reader-macros package; may Zeus forgive me for opening this pithos: ...
Peter Danenberg
Dec 21, 2011 at 5:27 pm
Dec 21, 2011 at 6:34 pm -
Hi, The data.priority-map has been a nice library. I have used it quiet often. Recently, when I used it, I discovered the following unexpected behaviour.. can somebody throw some light on it? (- ...
Sunil S Nandihalli
Dec 16, 2011 at 9:16 am
Dec 17, 2011 at 3:41 pm -
I think I found a bug user= (bean "hi") {:empty false, :class java.lang.String, :bytes #<byte[] [[email protected] } user= (clojure.walk/stringify-keys (bean "hi")) AbstractMethodError ...
Jay Fields
Dec 13, 2011 at 5:07 pm
Dec 16, 2011 at 2:56 pm -
Hello everyone, I would like to announce the first release of Clarity (v0.5.1), a Swing-based GUI library. It's available on github and through clojars: https://github.com/stathissideris/clarity ...
Stathis Sideris
Dec 2, 2011 at 5:56 pm
Dec 6, 2011 at 7:21 pm -
Hi, Is it possible to give the class as value at runtime to proxy? (defn create-proxy [clazz] (proxy [clazz] ....)) I know this can be done with a macro, but my question is whether it can be done as ...
Razvan Rotaru
Dec 25, 2011 at 8:46 am
Jan 28, 2012 at 9:18 pm -
Hi, I wrote a simple SAT solver macro on top of core.logic today (code at http://peteriserins.com/2011/12/23/sat-in-clojure-core-logic.html). Is it possible to write a similar SAT solver that would ...
Peteris
Dec 23, 2011 at 9:10 pm
Dec 23, 2011 at 11:16 pm -
Hi, I am idly thinging on how to create types with special restraints on them, like being only in the range 1-1000 or only even numbers etc and all normal operations like + and - still being valid. ...
Marek Kubica
Dec 21, 2011 at 5:56 am
Dec 21, 2011 at 3:00 pm -
I think I understand namespace and then I don't! I try to run this example (ns examples.core (use [clarity.component :as c])) (make :button "The Button") I have programs stored in ...
Jayvandal
Dec 13, 2011 at 9:50 pm
Dec 15, 2011 at 3:48 pm -
I try to do multiplication where overflowing is expected and the result should be handled "modulo" ie the multiplication results in a truncated long. user (unchecked-multiply (Long/MAX_VALUE) ...
Linus Ericsson
Dec 4, 2011 at 10:14 pm
Dec 5, 2011 at 9:03 pm -
Here are some things I've run across in Clojure that seem asymmetric to me -- I looked through Jira for issues related to these, but I didn't find any (of course, I might have just missed them). Some ...
Joegallo
Dec 1, 2011 at 6:00 pm
Dec 5, 2011 at 4:19 pm -
I was using defrecord for the first time, to create a type that I wanted to throw+ via slingshot to signal errors from a library. I'd seen an example of this in another library, and I pretty much ...
Don Jackson
Dec 2, 2011 at 9:44 am
Dec 4, 2011 at 8:09 pm -
Hey Everyone: I'm working on a project in Clojure that involves parsing binary data files. Specifically, I'm building a tool for analyzing Redis (http:// redis.io) dump files (.rdb format). The very ...
Mrb_bk
Dec 26, 2011 at 9:41 pm
Dec 29, 2011 at 5:43 pm -
Hi, I want to match vectors of the form [(some expr) :as :label], but #(match [%] [[expr :as (label :when keyword)]] {:expr expr :label label}) throws a compiler exception: Unable to resolve symbol ...
Herwig Hochleitner
Dec 23, 2011 at 3:54 am
Dec 25, 2011 at 2:24 pm -
I would like to have a macro to do the following, is this possible? (getm javascript-map "key") expands to: (.key javascript-map) This is to manage situations where a javascript map/object is ...
Dave Sann
Dec 20, 2011 at 1:58 am
Dec 20, 2011 at 4:32 am -
Hi, This may sound a bit weird, but can I "unquote-splice" something when calling a macro. Here's an attempt to do this with hiccup: (defn get-header [[:link {:type "text/css" ...}] [:script {:type ...
Razvan Rotaru
Dec 17, 2011 at 2:06 pm
Dec 17, 2011 at 10:15 pm -
So I recently went to clojure.blip.tv to download a video, and I noticed my account had been deleted. Apparently they are requiring all logins to go through facebook. Is there a way we could provide ...
Phil Hagelberg
Dec 14, 2011 at 11:30 pm
Dec 16, 2011 at 2:24 pm -
Hello, I'm porting a scientific application written in SBCL to Clojure. I'd like to do the right thing by setting up tests to ensure my functions are correct, and package up the project correctly ...
Adam Getchell
Dec 1, 2011 at 10:02 pm
Dec 8, 2011 at 9:23 pm -
Is there something build in for getting multiple vals out of the map? {:keys [...]} woks in destructuring forms. It is quite easy to build something with filter and map but I suspect these is a ...
Vitalyper
Dec 1, 2011 at 8:23 pm
Dec 7, 2011 at 5:39 pm -
I noticed in my code that I often nest a let inside an if-let, or vice- versa, so I wrote a macro let-else that expands into nested lets, except where there's an :else <expr after a binding, in which ...
Evan Gamble
Dec 7, 2011 at 2:15 am
Dec 7, 2011 at 3:55 pm -
Hi, I have a public function foo that uses two private functions bar and baz. So foo calls bar which calls baz. Two of the parameters passed to foo aren't used by bar, only baz. Though the ...
Jim Crossley
Dec 3, 2011 at 3:34 am
Dec 3, 2011 at 10:54 pm -
Hi All, I am currently considering an approach similar to the following for periodically sending an update to an agent and I'm looking for feedback on whether there is anything wrong with it, whether ...
Bill Caputo
Dec 1, 2011 at 5:17 pm
Dec 2, 2011 at 3:58 pm
Group Overview
group | clojure |
categories | clojure |
discussions | 195 |
posts | 983 |
users | 235 |
website | clojure.org |
irc | #clojure |
235 users for December 2011
Archives
- June 2016 (304)
- May 2016 (520)
- April 2016 (426)
- March 2016 (421)
- February 2016 (464)
- January 2016 (422)
- December 2015 (359)
- November 2015 (490)
- October 2015 (573)
- September 2015 (476)
- August 2015 (618)
- July 2015 (628)
- June 2015 (700)
- May 2015 (858)
- April 2015 (573)
- March 2015 (751)
- February 2015 (676)
- January 2015 (607)
- December 2014 (677)
- November 2014 (606)
- October 2014 (910)
- September 2014 (733)
- August 2014 (652)
- July 2014 (689)
- June 2014 (66)
- May 2014 (699)
- April 2014 (1,151)
- March 2014 (1,010)
- February 2014 (1,111)
- January 2014 (1,291)
- December 2013 (938)
- November 2013 (1,242)
- October 2013 (874)
- September 2013 (934)
- August 2013 (1,130)
- July 2013 (1,301)
- June 2013 (1,139)
- May 2013 (1,215)
- April 2013 (1,019)
- March 2013 (1,502)
- February 2013 (1,330)
- January 2013 (1,191)
- December 2012 (1,082)
- November 2012 (994)
- October 2012 (1,366)
- September 2012 (946)
- August 2012 (957)
- July 2012 (957)
- June 2012 (1,149)
- May 2012 (1,092)
- April 2012 (1,012)
- March 2012 (1,075)
- February 2012 (859)
- January 2012 (1,077)
- December 2011 (983)
- November 2011 (1,063)
- October 2011 (1,180)
- September 2011 (595)