Search Discussions

192 discussions - 1,019 posts

  • Instaparse is an easy-to-use, feature-rich parser generator for Clojure. The two stand-out features: 1. Converts standard EBNF notation for context-free grammars into an executable parser. Makes the ...
    Mark EngelbergMark Engelberg
    Apr 9, 2013 at 5:18 am
    May 2, 2013 at 6:37 pm
  • https://en.wikipedia.org/wiki/Intel_MIC 50+ cores?! Clojure will leave every other language in the dust on something like that, thanks to its inherently scaleable concurrency constructs. Try writing ...
    Cedric GreeveyCedric Greevey
    Apr 28, 2013 at 2:51 am
    Apr 30, 2013 at 5:33 am
  • So, page 143 of Clojure Programming has an implementation of Conway's Life: (defn step "Yields the next state of the world" [cells] (set (for [[loc n] (frequencies (mapcat neighbours cells)) :when ...
    Apr 10, 2013 at 5:28 pm
    Apr 15, 2013 at 10:37 am
  • Month after month there are more and more people who announce their open source Clojure projects. This is great and we can't get enough of this. What is not great is how easy it often is to get ...
    Michael KlishinMichael Klishin
    Apr 19, 2013 at 10:10 pm
    Apr 29, 2013 at 12:10 pm
  • I create many small methods in java without worrying about the performance since it's usually the target of inline optimization. For example, public class Foo { public static long inc(long l) { ...
    Apr 25, 2013 at 1:25 pm
    Apr 28, 2013 at 9:10 am
  • Nobel Clojurians, I am pleased to announce the alpha version of *Garden*<https://github.com/noprompt/garden , a new library for writing CSS in Clojure. The project weds the best ideas from Hiccup, ...
    Joel HoldbrooksJoel Holdbrooks
    Apr 9, 2013 at 8:02 pm
    Jul 7, 2013 at 2:46 pm
  • Hello! I have a problem, I will try to explain.. I want to write a game with Clojure and JMonkeyEngine (http://jmonkeyengine.com/). So I take their latest nightie set of jars ...
    Alex FowlerAlex Fowler
    Apr 29, 2013 at 7:09 pm
    May 5, 2013 at 5:27 pm
  • How do you guys handle the cases when the var is unbound? I mean specifically in the cases where you just test if the var is nil. = (def a) #'clojurewerkz.titanium.graph-test/a = a #<Unbound ...
    Apr 29, 2013 at 3:32 pm
    Apr 30, 2013 at 9:30 am
  • Hi all, I came up across the project idea for a Program analysis suite based on Codeq [1] a week ago and have been working on it since. The idea appealed to me instantly, since I had just started to ...
    Navgeet AgrawalNavgeet Agrawal
    Apr 12, 2013 at 8:41 pm
    May 1, 2013 at 3:43 pm
  • I'm reading Clojure Programming book by O'Reilly.. I came over an example of head retention. First example retains reference to d (I presume), so it doesnt get garbage collected: (let [[t d] ...
    Apr 14, 2013 at 12:59 am
    Apr 24, 2013 at 1:37 am
  • Currently Clojure exists on the JVM, the CLR, and the JSVM. Why not put it on top of ObjC too? Then we could create stand-alone executables written in Clojure! Or it could be used as an embedded ...
    Steven DegutisSteven Degutis
    Apr 23, 2013 at 7:38 pm
    Mar 6, 2014 at 1:28 am
  • I'm wondering how two things fit together (and I suspect they don't). First, if I define a record type, e.g. (defrecord Foo [x y z]) I can access fields using keywords as functions: (:x (- Foo 1 2 ...
    Simon KatzSimon Katz
    Apr 10, 2013 at 1:03 pm
    Apr 11, 2013 at 10:00 am
  • I've been working a lot with core.logic and pldb ( https://github.com/threatgrid/pldb), and I've been troubled by the lack of an assertion operation that would allow addition of facts to a database ...
    Apr 5, 2013 at 1:21 am
    Apr 5, 2013 at 6:53 pm
  • Hello, I am trying to get a login form to work in Compojure. I had originally written this app in Noir, but now I'm trying to move it off of Noir. I am now using Lib-Noir and the (noir.session) ...
    David ToomeyDavid Toomey
    Apr 30, 2013 at 9:04 am
    May 3, 2013 at 5:57 am
  • (defn foo [^long l cb] (cb l)) (time (dotimes [n 1000000] (foo n (fn [l] nil)))) (time (dotimes [n 1000000] (foo n (fn [^long l] nil)))) "Elapsed time: 7.861 msecs" "Elapsed time: 11.770973 msecs" ...
    Apr 24, 2013 at 3:35 pm
    Apr 25, 2013 at 10:10 am
  • I was all excited when I was able to consolidate a lot of try/catch logic behind a macro earlier this morning. All was good. I felt like I could do a better job of communicating my intentions in the ...
    Bill RobertsonBill Robertson
    Apr 1, 2013 at 3:21 pm
    Apr 3, 2013 at 7:27 pm
  • Hi, I'm writing map-reduce job with Clojure, yet to find that it seems to be much slower than a Jave job. So I write a simple test case, and upload to gist: https://gist.github.com/jizhang/5466149 At ...
    Ji ZhangJi Zhang
    Apr 26, 2013 at 11:00 am
    Apr 28, 2013 at 2:46 pm
  • Hi, there. I have a question about the memoization in clojure. I compare two functions to test the performance improvement of memoization: (defn fib [n] (if (or (zero? n) (= n 1)) 1 (+ (fib (dec n) ) ...
    Liao PengyuLiao Pengyu
    Apr 13, 2013 at 6:41 am
    Apr 14, 2013 at 10:16 pm
  • Hi all, I was wondering if something in core (or new contrib) like this exists already... (defn segregate "Takes a predicate, p, and a collection, coll, and separates the items in coll into matching ...
    Christian RomneyChristian Romney
    Apr 4, 2013 at 12:17 pm
    Apr 5, 2013 at 2:44 pm
  • Hi list, I was searching for an "easy" way to combined nested maps, e.g. as in (combine {:foo {:bar "baz"}} {:foo {:x "y"}}) = {:foo {:bar "baz", :x "y"}} I would expect that there is some core map ...
    Joachim De BeuleJoachim De Beule
    Apr 25, 2013 at 8:41 pm
    Jul 18, 2013 at 1:01 pm
  • https://github.com/sdegutis/stories It looks and works a lot like cucumber. But more clojure-y. Write tests at a super-high level. Test by observing side-effects. -Steven -- -- You received this ...
    Steven DegutisSteven Degutis
    Apr 28, 2013 at 4:20 am
    May 3, 2013 at 7:19 am
  • Hi I am just setting out to learn Clojure (my 2nd attempt) and am starting to feel more comfortable with the language (and very excited about the possibilities). However, I'm reading Clojure ...
    David SimmonsDavid Simmons
    Apr 29, 2013 at 12:52 pm
    Apr 30, 2013 at 2:38 pm
  • Hi! Let me introduce myself. I'm a second-year student of Computer Science at the University of Białystok in Poland. I've had some exposure to Prolog and programmed in functional style in several ...
    Radosław PiliszekRadosław Piliszek
    Apr 23, 2013 at 8:32 pm
    Apr 26, 2013 at 8:19 am
  • Old thread but what the heck... it doesn't work in my REPL user= (defn key-pattern #_= "Create a regex Pattern of the form '<key1 |<key2 ', the key names #_= will be quoted in case they contain ...
    Mond RayMond Ray
    Apr 20, 2013 at 12:18 am
    Apr 23, 2013 at 7:53 pm
  • Hi there Is it correct to say that - operator is a kind of monad in Clojure? Thank you in advance. Plínio Balduino -- -- You received this message because you are subscribed to the Google Groups ...
    Plínio BalduinoPlínio Balduino
    Apr 3, 2013 at 7:27 pm
    Apr 17, 2013 at 2:14 pm
  • I'm in the process of trying to work out how I want to use namespaces when implementing libraries or subsystems. I'm aware of several approaches: - Use a single namespace, making only the API public ...
    Simon KatzSimon Katz
    Apr 14, 2013 at 5:21 pm
    Apr 16, 2013 at 9:38 am
  • Hi, Today I encountered a, to me, slightly surprising behaviour seemingly related clojure records. The setup is as follows: 1. One namespace defines a record type: (ns defrecordissue.arecord) ...
    Ragnar DahlénRagnar Dahlén
    Apr 16, 2013 at 8:33 am
    Apr 12, 2014 at 9:19 pm
  • Although I've announced vim-redl in the past, now you can reap the benefits of all of its features without leaving fireplace behind! Just go to https://github.com/dgrnbrg/vim-redl for installation ...
    David GreenbergDavid Greenberg
    Apr 3, 2013 at 8:08 pm
    May 4, 2013 at 1:27 am
  • (Disclaimer: I post this aware that read-string is considered dangerous for untrusted code and having starred tools.reader) I was writing some code using read-string and encountered the following ...
    Apr 29, 2013 at 8:26 pm
    Apr 29, 2013 at 10:23 pm
  • I was assuming that following code will fold in parallel, but it is reduced sequentially (require '[clojure.core.reducers :as r]) (defn test1 [x] (Thread/sleep 1000) (println (str "Finished:" x)) x) ...
    Stanislav YurinStanislav Yurin
    Apr 26, 2013 at 2:46 pm
    Apr 27, 2013 at 1:27 pm
  • Today Linode announced that their database was attacked[1]. Clojars is hosted on Linode, and while we have no evidence that the attackers used their access to break into the VPS instance which hosts ...
    Phil HagelbergPhil Hagelberg
    Apr 16, 2013 at 6:38 pm
    Apr 18, 2013 at 3:20 am
  • Hello, I'm a new clojure programmer--but after learning a bit of clojure including iteration, some core high order functions, and a little bit about state management I decided to try my hand on a ...
    Andrew SpanoAndrew Spano
    Apr 6, 2013 at 11:51 pm
    Apr 9, 2013 at 12:27 am
  • If Clojure is suppose to emphasize immutability, why can I do this: kiosks-clojure.core= (let [ #_= mega (+ 1 1) #_= mega (+ 1 mega) #_= mega (+ 1 mega) #_= mega (+ 1 mega) #_= mega (+ 1 mega)] #_= ...
    Larry google groupsLarry google groups
    Apr 2, 2013 at 7:09 pm
    Apr 3, 2013 at 1:39 pm
  • andrei, can you please the solution you came up after all? -- -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to <span ...
    Apr 2, 2013 at 9:02 pm
    Apr 3, 2013 at 12:23 pm
  • Hi there, I'm getting started with Clojure, and found myself really missing Scala-style pattern matching. Now I know about Matchure and core.match, but all I really needed was a cond using test ...
    Ken ScamblerKen Scambler
    Apr 20, 2013 at 4:04 pm
    May 1, 2013 at 12:48 am
  • Hi, I started a library called memorize-clj https://github.com/jorgeu/memorize-clj It provides a function "memorize" that take a function and cache its results using guava cache. Of course the ...
    Jorge UrdanetaJorge Urdaneta
    Apr 29, 2013 at 3:51 am
    Apr 30, 2013 at 4:06 pm
  • Hi, I would like to do some image analysis with clojure. So I am looking for good libraries for that. Most important would be a good support for image segmentation. Tresholding, histogram based ...
    Nils Blum-OesteNils Blum-Oeste
    Apr 23, 2013 at 6:54 pm
    Apr 29, 2013 at 1:52 pm
  • Introducing Clochure: a better Clojure. Quoting project's README: Clochure (http://clochure.org) is an educated attempt to solve Clojure's number one problem and first obstacle that puts away ...
    Michael KlishinMichael Klishin
    Apr 1, 2013 at 2:28 pm
    Apr 1, 2013 at 4:47 pm
  • I have tried putting (friend/authenticate) at the beginning and end of this block: (def app (- app-routes (wrap-session {:cookie-name "timeout-session" :cookie-attrs {:max-age 90}}) (wrap-cookies) ...
    Larry google groupsLarry google groups
    Apr 26, 2013 at 6:16 pm
    Apr 30, 2013 at 5:44 pm
  • I wrote a simple app that gets my data out of an old mysql database and puts it into mongodb. I have this function: (defn add-this-record-to-mongo [db record item-type] (println (str (:user db))) ...
    Larry google groupsLarry google groups
    Apr 26, 2013 at 3:01 pm
    Apr 27, 2013 at 8:04 am
  • TL;DR: Major API overhaul to make it more idiomatic; old API deprecated High-level changes described here: http://corfield.org/blog/post.cfm/clojure-java-jdbc-0-3-0-alpha-1 The README says: Release ...
    Sean CorfieldSean Corfield
    Apr 8, 2013 at 12:48 am
    Apr 19, 2013 at 6:58 pm
  • Hi everyone, I was very surprised to find out that it is practically impossible to subclass some Class Foo and override only 1 overload of some method bar() via proxy...especially, if there are more ...
    Jim - FooBar();Jim - FooBar();
    Apr 15, 2013 at 7:05 pm
    Apr 15, 2013 at 9:22 pm
  • Hello! My name is Junseok Lee, and I'm studying CS at UC Berkeley. I was lead to Clojure through my interest in the Lisp family of languages, initiated by my studies of Scheme in my coursework. I've ...
    Junseok LeeJunseok Lee
    Apr 10, 2013 at 7:07 pm
    Apr 11, 2013 at 2:24 pm
  • This is just an idle curiosity up for discussion, but in Clojure, if (= a b) is true, then given some function f, it is not necessarily true that (= (f a) (f b)) For instance: (defn check-eq [f a b] ...
    Apr 8, 2013 at 11:02 pm
    Apr 9, 2013 at 10:34 am
  • Hi All, I was recently looking at how to make better use of parallelisation for simple tasks in my compojure app, I had a construction similar to the following: (views/some-view (api/api-call-1) ...
    Glen MailerGlen Mailer
    Apr 27, 2013 at 1:56 pm
    Apr 28, 2013 at 1:23 pm
  • Howdy, I'm a clojure fan but quite new to writing clojure. I'm writing my first app and had a few style questions. I'm doing a web service call to the lastfm api. It returns some json like: { ...
    Huey PetersenHuey Petersen
    Apr 23, 2013 at 9:12 pm
    Apr 26, 2013 at 8:49 am
  • Hello, all, I am happy to report that Clojure has been accepted as a mentoring organization for Google Summer of Code 2013. Now is the time for sudents to start researching their projects and ...
    Daniel Solano GómezDaniel Solano Gómez
    Apr 8, 2013 at 7:33 pm
    Apr 22, 2013 at 6:10 pm
  • I have some Java classes generated elsewhere (not by the lein proto plugin) and I'm wanting to use them as the basis for the [protobuf "0.6.2"] code interactions (for interdependency with an existing ...
    David PidcockDavid Pidcock
    Apr 11, 2013 at 3:48 pm
    Apr 21, 2013 at 4:03 am
  • Hello, When defining a record with defrecord and calling from Java a method of the record which is implemented by calling the function of another namespace, the exception IllegalStateException is ...
    Pierre AllixPierre Allix
    Apr 15, 2013 at 9:46 am
    Apr 16, 2013 at 9:47 am
  • (keyword "m" "7") ;;= :m/7 :m/7 ;;= #<RuntimeException java.lang.RuntimeException: Invalid token: :m/7 a bug right? -- -- You received this message because you are subscribed to the Google Groups ...
    Apr 14, 2013 at 4:35 pm
    Apr 15, 2013 at 11:19 am
Group Navigation
period‹ prev | Apr 2013 | next ›
Group Overview
groupclojure @

272 users for April 2013

Michael Klishin: 34 posts Cedric Greevey: 32 posts Jim - FooBar();: 29 posts AtKaaZ: 22 posts Mark Engelberg: 21 posts Sean Corfield: 20 posts Steven Degutis: 20 posts Ben Wolfson: 19 posts David Nolen: 19 posts Marko Topolnik: 17 posts Gary Trakhman: 16 posts Softaddicts: 16 posts Tassilo Horn: 16 posts Larry google groups: 15 posts Simon Katz: 15 posts Gary Verhaegen: 13 posts Alice: 12 posts Michał Marczyk: 12 posts Phil Hagelberg: 12 posts Andy Fingerhut: 11 posts
show more