Search Discussions

195 discussions - 983 posts

  • 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 LuLouis 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 GreeveyCedric 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 HagelbergPhil 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 MosciattiSimone 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 RotaruRazvan 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 GagnonDaniel 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 RotaruRazvan 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 ...
    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 JaakaMichael 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 VidalErlis 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 BaldridgeTimothy 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 ...
    Dec 5, 2011 at 5:03 pm
    Dec 9, 2011 at 8:41 pm
  • 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 RotaruRazvan 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 JaakaMichael 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 ...
    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 ...
    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 RayDave 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 ...
    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 ...
    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 ...
    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 ReevesJames 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 HolgateSimon 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 DanenbergPeter 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 RecioAntonio 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 MarickBrian 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 FingerhutAndy 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 RitschardPierre-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 TaoussanisPeter 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 HochleitnerHerwig 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 DanenbergPeter 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 NandihalliSunil 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 FieldsJay 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 SiderisStathis 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 RotaruRazvan 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 ...
    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 KubicaMarek 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 ...
    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 EricssonLinus 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 ...
    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 JacksonDon 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 ...
    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 HochleitnerHerwig 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 SannDave 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 RotaruRazvan 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 HagelbergPhil 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 GetchellAdam 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 ...
    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 GambleEvan 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 CrossleyJim 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 CaputoBill Caputo
    Dec 1, 2011 at 5:17 pm
    Dec 2, 2011 at 3:58 pm
Group Navigation
period‹ prev | Dec 2011 | next ›
Group Overview
groupclojure @

235 users for December 2011

Cedric Greevey: 44 posts David Nolen: 38 posts Alan Malloy: 33 posts Stuart Sierra: 33 posts Meikel Brandmeyer (kotarak): 27 posts Razvan Rotaru: 23 posts Sean Corfield: 21 posts Tassilo Horn: 21 posts Antonio Recio: 16 posts Phil Hagelberg: 16 posts Stephen Compall: 16 posts Softaddicts: 14 posts Andy Fingerhut: 13 posts Dave Sann: 13 posts Linus Ericsson: 13 posts Peter Danenberg: 13 posts Andrew: 12 posts Ambrose Bonnaire-Sergeant: 11 posts Jayvandal: 11 posts Sam Aaron: 11 posts
show more