Search Discussions
-
Clojure 1.9.0-alpha5 is now available. Try it via - Download: https://repo1.maven.org/maven2/org/clojure/clojure/1.9.0-alpha5 <https://repo1.maven.org/maven2/org/clojure/clojure/1.9.0-alpha5 - ...
Alex Miller
Jun 7, 2016 at 5:38 pm
Jun 14, 2016 at 4:30 am -
I started learning clojure recently, and I am annoyed at the way to run it (aka. lein run). why clojure script can't be run like python,ruby or scala, like python <file .py -- You received this ...
Jiacai Liu
Jun 9, 2016 at 4:08 pm
Jun 15, 2016 at 3:13 pm -
Is there an effort to write specs for Clojure's core namespaces? Apologies if this has already been addressed. I've been tinkering with trivial (and probably wrong) fdefs on clojure.core/map and ...
Ryan Fowler
Jun 12, 2016 at 1:52 pm
Jun 14, 2016 at 1:11 pm -
Hi all! I'm current working on a project where I am ingesting events off a stream and processing them. There are many many steps involved in the processing component, so I am choosing to write the ...
Travis Daudelin
Jun 10, 2016 at 6:07 pm
Jun 11, 2016 at 9:35 am -
= (pop '(1 2 3)) (2 3) = (pop (seq '(1 2 3))) (2 3) = ((fn [& xs] (pop xs)) '(1 2 3)) ClassCastException clojure.lang.ArraySeq cannot be cast to clojure.lang.IPersistentStack = (pop (map inc (take 5 ...
Fluid Dynamics
Jun 11, 2016 at 6:37 pm
Jun 12, 2016 at 3:24 pm -
Hi - Just noticed that the :ret function in fdef seems to be ignored in 1.9.0-alpha6: user= (require '[clojure.spec :as s]) user= (defn dummy [x] (if x "yes" "no")) user= (s/fdef dummy #_= :args ...
Alan Thompson
Jun 15, 2016 at 12:01 am
Jun 17, 2016 at 6:11 pm -
Hi, I’m happy to announce a new release of Flake, the decentralized, k-ordered unique ID generator. Flake 0.4.0 includes a number of important breaking changes, but by far the most important is ...
Max Countryman
Jun 3, 2016 at 1:03 am
Jun 17, 2016 at 2:31 pm -
"Warning: ** not declared dynamic and thus is not dynamically rebindable, but its name suggests otherwise. Please either indicate ^:dynamic ** or change the name." *foo* is earmuffed, but ** has ...
Fluid Dynamics
Jun 4, 2016 at 10:25 pm
Jun 7, 2016 at 5:46 am -
Clojure 1.9.0-alpha6 is now available. Try it via - Download: https://repo1.maven.org/maven2/org/clojure/clojure/1.9.0-alpha6 - Leiningen: [org.clojure/clojure "1.9.0-alpha6"] 1.9.0-alpha6 includes ...
Alex Miller
Jun 14, 2016 at 5:31 pm
Jun 16, 2016 at 1:29 pm -
Hello Everyone! We published the third episode of defn yesterday in which we take a tour of REPLs in Clojure Land. We are very grateful to Mike Fikes <https://twitter.com/mfikes (Planck/Replete/Ambly ...
Vijay Kiran
Jun 14, 2016 at 8:12 am
Jun 16, 2016 at 11:28 am -
The following lines are copied straight from tryclj.com (2 4 16 256 65536 4294967296) I'm wondering if this behavior is known, because I was really surprised by this. Couldn't this lead to some ...
Sebastian Oberhoff
Jun 13, 2016 at 8:27 pm
Jun 13, 2016 at 9:10 pm -
Hello, I'm playing around Instaparse library, starting very simple. For input like : { player } I created the following parser: (def ast (ist/parser "TEST = OBJECT <WHITESPACE = <#'\\s+' <CURLY_OPEN ...
Hussein B.
Jun 12, 2016 at 7:52 pm
Jun 13, 2016 at 10:17 am -
Hi, I have added spec to validation-benchmark[1]. The results are here: http://muhuk.github.io/validation-benchmark/ Could you please take check if the implementation is correct and reasonable? Also, ...
Atamert Ölçgen
Jun 6, 2016 at 6:37 am
Jun 11, 2016 at 5:54 pm -
Let's say I have an object represented by a series of nested maps: {:a {:b 1} :c {:d 2}} and now I'm going to be making a whole slew of edits to the submaps. To do this efficiently, I need to make ...
Mark Engelberg
Jun 3, 2016 at 2:43 am
Jun 3, 2016 at 5:42 am -
ClojureScript, the Clojure compiler that emits JavaScript source code. README and source code: https://github.com/clojure/clojurescript Leiningen dependency information: [org.clojure/clojurescript ...
David Nolen
Jun 1, 2016 at 6:02 pm
Jun 2, 2016 at 1:32 pm -
I'd like to be able to use clojure.spec for input validation where the specs are stored in a database using a data structure to represent them. s/keys and its requirement to use the registry makes ...
Brian Platz
Jun 17, 2016 at 7:46 pm
Jun 18, 2016 at 10:50 am -
Just discovered a cool Chrome extension so that you can get proper syntax highlighting when pasting code into your email. It turns plain-old code into something nice to read: *Plain:* (defn truthy? ...
Alan Thompson
Jun 15, 2016 at 12:28 am
Jun 16, 2016 at 10:44 pm -
Can`t grok how to deffine exclusive groups of :req keys with spec/keys. For а doc sample (s/keys :req [(or ::secret (and ::user ::pwd))]) I expected, that valid combination is a ::secret *either* ...
Den Semenenko
Jun 15, 2016 at 12:13 pm
Jun 15, 2016 at 3:27 pm -
Hi, I am playing around with spec, and really like it so far, but have a problem using fdef with maps. I am obviously missing something trivial, but the following example gives a, to me, weird error ...
Steen Larsen
Jun 10, 2016 at 12:58 pm
Jun 10, 2016 at 1:37 pm -
Good morning (at least from my part of the globe), I spent a good chunk of time last night wondering why this chunk of code kept exiting about a minute after being run ...
Nathaniel Young
Jun 8, 2016 at 2:53 pm
Jun 9, 2016 at 3:03 pm -
It seems that protocol fns don't participate in s/fdef specfications. It would be nice they were. Sample: (ns sample (:require [clojure.spec :as s])) (s/instrument-all) ;; Spec a fn (s/fdef f :args ...
Claudius Nicolae
Jun 5, 2016 at 4:57 pm
Jun 7, 2016 at 2:23 am -
Is it possible to write down a function do the following? (defn foo [input] .... ) (def x "Hello") (def y "Clojure") (foo [x y]) = {:x "Hello" :y "Clojure"} Regards, -Steven -- You received this ...
Steven Zhou
Jun 3, 2016 at 10:06 pm
Jun 6, 2016 at 2:25 pm -
Hi, I have a riddle I am not sure how to solve: ``` user= (defn just-a-demo-seq[] (println "in just-a-demo-seq") [1 2 3 4 5 6 7 8 9]) #'user/just-a-demo-seq user= (def do-not-print-it (apply concat ...
Andy L
Jun 2, 2016 at 6:26 pm
Jun 4, 2016 at 5:09 am -
Assume I parse with conform. Then I have functions that operate on the value returned by conform. I want to spec them. But I can't get a spec for the value returned by conform (so that I can spec ...
Leon Grapenthin
Jun 18, 2016 at 12:37 pm
Jun 18, 2016 at 5:35 pm -
I know that Spec and the changes coming to Clojure 1.9 I see that namespace qualified keys have gained some focus. I understand the motivations for this and support it. The one barrier that is coming ...
Mike Rodriguez
Jun 11, 2016 at 4:03 pm
Jun 14, 2016 at 11:13 pm -
https://github.com/aengelberg/cljsee Cljsee is a Leiningen plugin that applies the idea of cljx to the new cljc reader conditional format. In other words, as a build step, it parses .cljc files and ...
Alex Engelberg
Jun 14, 2016 at 6:05 am
Jun 14, 2016 at 9:34 pm -
Recently I switched my local cdn from http to https with letsencrypt. I had to provide a trust store ( :jvm-opts ["-Djavax.net.ssl.trustStore=...) because java won't support letsencrypt until "JDK ...
Elric Erkose
Jun 13, 2016 at 4:57 pm
Jun 13, 2016 at 10:02 pm -
Hi, I'm currently playing around with clojure spec trying to write a spec for an old program I wrote and stumbled upon the following: Whenever I try to generate something that is both sequential and ...
Frank Versnel
Jun 10, 2016 at 3:01 pm
Jun 10, 2016 at 3:47 pm -
Hi everyone, After the release of pedestal 0.5.0 I have updated pedestal-api <https://github.com/oliyh/pedestal-api to make it compatible with the breaking changes. Also in this release: - Better ...
Oliver Hine
Jun 9, 2016 at 6:37 pm
Jun 9, 2016 at 7:56 pm -
Hi there, I have been playing a little bit with clojure.spec and I find it a very nice addition to the core language. One thing I am particularly interested in is the spec of recursive structures, ...
Frederic Peschanski
Jun 9, 2016 at 12:26 pm
Jun 9, 2016 at 3:09 pm -
Hi! I'd like to share a project I've been working on this year. Advenjure is a text adventure (or interactive fiction) game engine. Some of its distinctive features are: - Unix-like prompt with smart ...
Facundo Olano
Jun 8, 2016 at 12:32 pm
Jun 9, 2016 at 3:01 am -
Hi, I'm doing something like: (def valid-email (gen/fmap (fn [[name domain]] (str name "@" domain)) (gen/tuple (gen/not-empty gen/string) gen/uuid))) (defspec test-email 100 (for-all [email ...
Tom
Jun 2, 2016 at 2:51 pm
Jun 3, 2016 at 3:07 pm -
Am I right that the following reflects a difference in Clojure macros from Common Lisp macros, and if so, am I missing a workaround? The context is my trying to create a cljs wrapper for the qooxdoo ...
Hiskennyness
Jun 1, 2016 at 8:20 pm
Jun 1, 2016 at 8:50 pm -
Ogre [1] is a Clojure dialect of Gremlin, a DSL for querying and otherwise working with Apache TinkerPop [2] graphs. Over the last 6 months or so Ogre maintainers have moved it to target TinkerPop ...
Michael Klishin
Jun 15, 2016 at 9:47 pm
Jun 18, 2016 at 2:14 am -
I’m having fun playing with clojure.spec, and I’ve written specs for most fns in clojure.core and 1/3rd of the macros (WIP). Here they are in case you want to play along ...
Leif
Jun 16, 2016 at 11:11 pm
Jun 17, 2016 at 4:14 am -
The reagent template uses compojure server sider routing and secretary/accountant on the client (cljs) ...
Joakim Mohn
Jun 15, 2016 at 8:36 pm
Jun 16, 2016 at 10:33 pm -
From https://clojure.org/guides/spec#_collections: *One important aspect of coll-of and map-of is that they both sample their inputs, checking only a subset of the values for performance reasons. Due ...
Oded Badt
Jun 15, 2016 at 6:36 pm
Jun 15, 2016 at 6:53 pm -
Just saw a tweet from Stuart Halloway pointing to the function which generates ramsom uri's, https://github.com/clojure/clojure/commit/1109dd4eafd95c169add38dd0051be413d9e49d0 I would argue that this ...
Erik Assum
Jun 15, 2016 at 5:20 am
Jun 15, 2016 at 12:44 pm -
Is this the expected return value? = (gen/sample (s/gen (s/alt :s string? :b boolean?))) I am not expecting a vector to wrap each of the sample return values. Best regards, Joe N. -- You received ...
Joseph Wayne Norton
Jun 15, 2016 at 4:15 am
Jun 15, 2016 at 4:53 am -
core.async 0.2.382 is now available. Try it via: [org.clojure/core.async "0.2.382"] 0.2.382 includes the following changes: - Change default dispatch thread pool max size to 8. - Add Java system ...
Alex Miller
Jun 13, 2016 at 8:14 pm
Jun 13, 2016 at 9:10 pm -
Rich's session on the Cognicast brought up interesting questions for me. - Is Clojure.spec being applied within clojure.core and other parts of the language? - Has the test.check capability led to ...
Philip Markgraf
Jun 13, 2016 at 6:18 am
Jun 13, 2016 at 8:45 am -
At 2016-06-13 00:00:00 UTC[1], we'll be taking down the Clojars web interface to do database maintenance and deploy some features/fixes. The biggest change in this deploy will be the introduction of ...
Toby Crawley
Jun 10, 2016 at 8:01 pm
Jun 13, 2016 at 1:07 am -
I need to build more complex package using boot-cl. I have cited my request put on the StackOverflow: Copy of What is replacement to maven-assembly-plugin in boot-clj environment? ...
Jacek Grzebyta
Jun 9, 2016 at 3:46 pm
Jun 9, 2016 at 6:33 pm -
Hi! I noticed there’s no conform variant that throws instead of returning keyword in clojure.spec. Is it intentional? I’m asking because it seems repetitive to check return value, then call ...
Nikita Prokopov
Jun 8, 2016 at 1:19 pm
Jun 8, 2016 at 1:33 pm -
The Cognicast that was just released is Rich talking about clojure.spec so some people might be interested: http://blog.cognitect.com/cognicast/103 -- You received this message because you are ...
Alex Miller
Jun 7, 2016 at 3:27 pm
Jun 7, 2016 at 4:18 pm -
I think the tradition is more general: abstract process which need missing process passed in(seems all high order functions under this category) should have missing process comes first as it's ...
Shark Xu
Jun 1, 2016 at 11:56 am
Jun 1, 2016 at 12:13 pm -
Parts 1 & 2 of a three-part series introducing Qxia, a framework for programming qooxdoo mobile <http://manual.qooxdoo.org/5.0.1/pages/mobile.html via ClojureScript (with dataflow/reactive Cells ...
Hiskennyness
Jun 18, 2016 at 12:11 pm
Jun 18, 2016 at 12:11 pm -
ClojureScript, the Clojure compiler that emits JavaScript source code. README and source code: https://github.com/clojure/clojurescript Leiningen dependency information: [org.clojure/clojurescript ...
David Nolen
Jun 17, 2016 at 8:33 pm
Jun 17, 2016 at 8:33 pm -
core.async 0.2.385 is now available. Try it via: [org.clojure/core.async "0.2.385"] 0.2.385 includes the following changes: - bump dependency on clojure.tools.analyzer.jvm to latest -- You received ...
Alex Miller
Jun 17, 2016 at 4:48 pm
Jun 17, 2016 at 4:48 pm -
Guys, I've just got round to pushing some ideas I have about Event Stream Processing in a Clojure World to GitHub. Please have a look at the README.md https://github.com/JulesGosnell/killer If anyone ...
Jules
Jun 16, 2016 at 7:52 pm
Jun 16, 2016 at 7:52 pm
Group Overview
group | clojure |
categories | clojure |
discussions | 69 |
posts | 298 |
users | 128 |
website | clojure.org |
irc | #clojure |
128 users for June 2016
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)