Search Discussions
-
Hello All, I encountered the following behavior in Clojure 1.6 and wanted to check if it should be considered a bug or not. I would say yes but wanted to double check on the list first. Here's a ...
Michael O'Keefe
Jul 24, 2014 at 10:56 pm
Jul 27, 2014 at 4:25 am -
Development and support seem to have slowed down. Are there newer or better choices out there with momentum right now? -- You received this message because you are subscribed to the Google Groups ...
Jonathon McKitrick
Jul 22, 2014 at 12:10 pm
Jul 25, 2014 at 1:48 pm -
Hey guys, If you're like me while using clojure.repl/doc works for the most part there are just times that you need to send someone a link to the official docs and navigating the docstrings in the ...
Reid McKenzie
Jul 1, 2014 at 11:34 pm
Jul 12, 2014 at 6:27 pm -
Hey guys, I ran into this last night when trying to port some ancient JS in our project over to cljs. I was defining an om component called "users-typeahead", and in the (did-mount ...) ...
Sam Ritchie
Jul 31, 2014 at 1:42 pm
Aug 4, 2014 at 11:08 pm -
I'm very new to continuation passing style (CPS), and as part of the learning process I've done a CPS version of a "flatten" function. Ie, it does the same thing as the standard clojure "flatten", ...
Mark P
Jul 15, 2014 at 7:13 am
Jul 18, 2014 at 7:03 am -
= (empty [:foo 5]) [] = (first (mapv identity {:foo 5})) [:foo 5] = (empty (first (mapv identity {:foo 5}))) nil What just happened there? Is this expected? In the second and third cases the type of ...
Brian Craft
Jul 18, 2014 at 9:45 am
Jul 20, 2014 at 6:20 am -
ClojureScript, the Clojure compiler that emits JavaScript source code. README and source code: https://github.com/clojure/clojurescript New release version: 0.0-2277 Leiningen dependency ...
David Nolen
Jul 25, 2014 at 6:36 pm
Jul 30, 2014 at 9:31 pm -
When a function returns a true/false value you should end it with a '?'. Clojure Programming says that with side effects you should end the function name with a '!'. I have functions reset-game! and ...
Cecil Westerhof
Jul 10, 2014 at 3:28 pm
Jul 11, 2014 at 7:28 pm -
Hi, I tried to create the function below in a Lighttable instarepl. In lieu of any better idea for formatting, the < statements below indicate instarepl output. (defn avged ([x] ((def sumed (reduce + ...
Stephen Feyrer
Jul 10, 2014 at 12:48 am
Jul 13, 2014 at 12:05 am -
So I've got something strange happening. I have a function (play, see below) which I spin off in a separate thread: (future (play {:black black-strategy :white white-strategy} :black)) The weird ...
Edward
Jul 14, 2014 at 10:25 am
Jul 15, 2014 at 2:15 pm -
In Clojure you can define a local constant with let, but I need a variable (I think). I want to do the following. I have a function that checks several things. Every time an error is found I want to ...
Cecil Westerhof
Jul 8, 2014 at 1:40 pm
Jul 9, 2014 at 7:51 am -
Hi all, I'm using [com.taoensso/sente "0.15.1" <https://github.com/ptaoussanis/sente ], and having trouble connecting the client to the server. I'm sure it's something simple, but not obvious, as ...
Timothy Washington
Jul 26, 2014 at 4:34 am
Aug 1, 2014 at 10:25 pm -
Hi, I tried replacing a closure with a dynamically built and evaluated metafunction but discovered that it was actually slower. Here's a minimal example: (defn f1 [x] (fn [y ] (= x y ))) (defn f2 [x] ...
Pascal Germroth
Jul 2, 2014 at 10:19 pm
Jul 4, 2014 at 6:20 pm -
I received the book land of lisp as a gift. I am trying to translate it to Clojure. In chapter 5 there is a text game engine. In the attachment my translation. What do you think of it? There are a ...
Cecil Westerhof
Jul 8, 2014 at 11:49 pm
Jul 12, 2014 at 9:37 am -
If I call: (System/getenv "MY_VAR") ;= nil From bash set | grep MY_VAR ;= foo echo $MY_VAR' ;= foo I can do this from bash, as well as my tmux session. I use tmuxinator to launch a repl and vim, thus ...
Jarrod Swart
Jul 7, 2014 at 6:45 pm
Jul 8, 2014 at 3:38 pm -
Hi, it seems than clojars is down. Lein refuses to start, and apparently it won't download jars from maven central either... Am I the only one with this problem? -- You received this message because ...
Yves Parès
Jul 29, 2014 at 12:42 pm
Aug 5, 2014 at 7:20 pm -
Hi everyone, Announcing system, some candy built on top of component, the Reloaded pattern by Stuart Sierra. https://github.com/danielsz/system The idea behind this library is to serve as a ...
Daniel Szmulewicz
Jul 29, 2014 at 6:00 am
Aug 5, 2014 at 3:27 pm -
New to Clojure, how is this function that I wrote? Any suggestions for improvement; is it too complicated? It filters a sequence, leaving only the first occurrence of each item in the seq that has a ...
Christopher Elwell
Jul 25, 2014 at 9:46 pm
Jul 30, 2014 at 2:31 am -
When you have: (def object-locations { 'whiskey 'living-room 'bucket 'living-room 'chain 'garden 'frog 'garden 'dummy 'nowhere 'test 'nowhere }) You can retrieve the location of the bucket with ...
Cecil Westerhof
Jul 9, 2014 at 1:48 pm
Jul 9, 2014 at 3:58 pm -
my-fn takes a number and a string as argument and outputs a string. I am using map-indexed and my-fn to comprehend a list of items with numbered index as follows, (map-indexed (fn [idx itm] (my-fn ...
Glen Rubin
Jul 7, 2014 at 9:49 pm
Jul 9, 2014 at 4:44 am -
I have been deploying the same project to clojars for quite a while now(5 months?); for some reason it decided it no longer wanted to work. After giving my pass phrase I get "peer not ...
Jacob Goodson
Jul 2, 2014 at 6:55 pm
Jul 5, 2014 at 7:10 pm -
Hi all, just nit picking about Clojure's String API. I've been comparing it with Java's <http://www.tutorialspoint.com/java/java_strings.htm , and I noticed that (not surprisingly) they are very ...
Pierre Masci
Jul 19, 2014 at 10:58 am
Aug 1, 2014 at 10:39 am -
I'm trying to write a function that takes (up to) 4 arguments. I want to be able to supply every argument positionally, with a keyword or as a default, so that (f) (f 1) (f 1 2) (f 1 2 3) (f 1 2 3 4) ...
Sam Raker
Jul 20, 2014 at 11:13 pm
Jul 21, 2014 at 2:17 pm -
In need of a way to breakpoint in java code, I decided to look at intellij. I tried the directions here: http://wiki.jetbrains.net/intellij/Getting_started_with_La_Clojure which don't work. When ...
Brian Craft
Jul 14, 2014 at 1:35 am
Jul 15, 2014 at 12:29 am -
Hi, I have various general questions about how one can perform simple and flexible graph query/update. If we start by a structure being nested maps then I know about get-in/update-in/assoc-in. The ...
Bertrand Dechoux
Jul 10, 2014 at 8:26 am
Jul 11, 2014 at 3:15 pm -
I am new to clojure and finding it great.. :) I came across a paper - Why functional programming matters ? at www.cs.kent.ac.uk/people/staff/dat/miranda/whyfp90.pdf to quote it : "This paper is also ...
Ashish Negi
Jul 8, 2014 at 1:14 pm
Jul 9, 2014 at 10:32 am -
I had code that looked like this: (let [{count :count data :data} (fetch-data) real-count (count data)]) As you can see, I was inadvertently redefining the 'count' symbol, and then tried to use the ...
Meel Velliste
Jul 30, 2014 at 4:48 pm
Jul 31, 2014 at 8:41 am -
I'm attempting to proxy PersistentHashmap so that "get"ting an existing key or its reverse returns the same value. Here's the code that I have (defn sym-key-hash-map [] (proxy ...
Geoff Little
Jul 25, 2014 at 1:36 pm
Jul 26, 2014 at 12:11 am -
In my project.clj I include two jar files: :resource-paths ["resources/exterior_jars/forssj-optimization.jar" "resources/exterior_jars/umontreal-ssj-2.5.jar"] In my main.clj I import some objects ...
Yura Perov
Jul 23, 2014 at 2:53 pm
Jul 25, 2014 at 4:02 pm -
A new option for test purposes is included in JDK 1.7.0_40 and up and is called Java Mission Control. It is located in the JDK as /bin/jmc.exe. With it you can connect to a local java process, or ...
Niels van Klaveren
Jul 1, 2014 at 11:10 am
Jul 3, 2014 at 10:47 am -
Emacs users: I have put together a namespace browser which builds upon the existing functionality of Cider. It is in early stages of development but I find it quite useful. Check it out! ...
John Andrews
Jul 28, 2014 at 2:48 am
Aug 4, 2014 at 9:35 pm -
hi is there something similar to http://clojurescriptone.com/ that actually works? unfortunately one is failing on 3rd command from tutorial which is 'lein bootstrap'. id appreciate some good ...
Paweł Rozynek
Jul 31, 2014 at 10:27 am
Aug 1, 2014 at 9:57 am -
I've encountered two subtle but serious problems using om with core.async. The first one is illustrated by this code: https://github.com/akhudek/om-async-error First, one obvious solution here is to ...
Alexander Hudek
Jul 23, 2014 at 11:19 pm
Jul 28, 2014 at 5:11 pm -
Hi, I'm learning about tools to help me debug from the REPL, and I found these two with the same name: clojure.stacktrace/root-cause clojure.repl/root-cause For a very simple case (wrong arity), they ...
Pierre Masci
Jul 21, 2014 at 11:30 am
Jul 24, 2014 at 11:07 pm -
I’m looking to recruit a senior software engineer in London to work with Clojure, ClojureScript, React/Reagent, Docker, and a bunch of other equally interesting technologies. We’re not necessarily ...
Paul Butcher
Jul 24, 2014 at 9:45 am
Jul 24, 2014 at 12:42 pm -
Hello, I am living in Poland and i have a little problem there... totally 0 jobs for Clojure Programmers. I am also beginner in Clojure. More about my IT skills you can read on site ...
Krzysztof Władyka
Jul 20, 2014 at 3:33 pm
Jul 22, 2014 at 4:52 pm -
I'm trying to write a little macro that expands to a 'defn'. macroexpand-1 yields the following on the macro invocation: (clojure.core/defn foo [& args14168] (clojure.core/let [[x] ...
Dave Tenny
Jul 20, 2014 at 3:20 pm
Jul 22, 2014 at 9:17 am -
Hi, I would like to schedule updates to a state machine (eg. move each second to a new state and do something) and I will have potentially 10.000+ of these state machines. Ideally I would like to do ...
Thomas
Jul 17, 2014 at 10:40 am
Jul 22, 2014 at 12:56 am -
Trying to eliminate a reflection warning, I put a type hint on a function, like (defn foo ^PStatement [] ...) which compiles without the reflection warnings, but at run time I get ClassCastException ...
Brian Craft
Jul 16, 2014 at 11:21 pm
Jul 17, 2014 at 6:28 am -
Is there any documentation or do you have thoughts on choosing between using multimethods vs case? I assume they both do constant time dispatch. -- You received this message because you are ...
Elric Erkose
Jul 8, 2014 at 8:29 pm
Jul 10, 2014 at 8:14 pm -
when i run lein install lein install Compiling zilch.mq Exception in thread "main" java.io.FileNotFoundException: Could not locate zilch/mq__init.class or zilch/mq.clj on classpath: at ...
Zhenxuanpan
Jul 8, 2014 at 11:48 am
Jul 8, 2014 at 9:56 pm -
I'm reading "Cloujure in Action" as an introduction to Clojure and, although, I understand a keyword can be used as a function I don't understand the difference between: (ns ...
Gvim
Jul 3, 2014 at 5:11 pm
Jul 3, 2014 at 7:30 pm -
Hi all, Are there any good tools for measuring the health of a Clojure codebase? What is even useful to measure for Clojure? Afferent/efferent coupling, cyclomatic complexity and unit test coverage ...
Chris Ford
Jul 1, 2014 at 8:53 pm
Jul 2, 2014 at 5:41 pm -
Hello. I have a problems using code with futures. For example, if I run following code: java -jar clojure-1.6.0.jar -e "(println 1)" the process prints 1 and terminates. But when I'm trying to run ...
Serzh Nechyporchuk
Jul 30, 2014 at 7:33 pm
Aug 20, 2014 at 8:24 am -
I'm trying the latest *clojure* and *core.async* releases on a fresh project (lein new thing). (defproject thing "0.1.0-SNAPSHOT" :description "FIXME: write description" ... :dependencies ...
Timothy Washington
Jul 31, 2014 at 5:29 pm
Jul 31, 2014 at 10:59 pm -
Is there any good way to use timbre in a project with java libs, e.g. c3p0, that use java logging APIs? Java logging is such a hopeless muddle I don't pretend to understand it, but my impression is ...
Brian Craft
Jul 22, 2014 at 10:17 pm
Jul 30, 2014 at 5:08 pm -
Oops - I originally sent this to the ClojureScript group, which probably wasn’t the best place. Apologies to those who subscribe to both lists for the spam: I’m clearly misunderstanding something ...
Paul Butcher
Jul 28, 2014 at 1:45 pm
Jul 29, 2014 at 2:30 pm -
Hello, I am trying to tidy up a project and I have two actions that could be somehow be automatized. *1) Display the dependencies between the namespace of my project as a graph (text graph being good ...
Bertrand Dechoux
Jul 28, 2014 at 11:58 am
Jul 29, 2014 at 7:34 am -
Hi All, it's my pleasure to announce a new version of Gorilla REPL, v0.3.1. The focus of this release has been usability and taking off some of the rough edges. This version is now much friendlier to ...
Jony Hudson
Jul 23, 2014 at 8:10 pm
Jul 27, 2014 at 10:39 am -
Backstory: I modified the cljs.repl/repl to instead of pulling characters from *in*, but to use core.async channels, and to <!! on an input-channel. When an input is received, a StringReader with the ...
Brent Millare
Jul 19, 2014 at 2:40 pm
Jul 25, 2014 at 1:42 pm
Group Overview
group | clojure |
categories | clojure |
discussions | 140 |
posts | 689 |
users | 225 |
website | clojure.org |
irc | #clojure |
225 users for July 2014
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)