Search Discussions
-
106
clojure.spec
Introducing clojure.spec I'm happy to introduce today clojure.spec, a new core library and support for data and function specifications in Clojure. Better communication Clojure is a dynamic language, ...Rich Hickey
May 23, 2016 at 2:12 pm
May 29, 2016 at 6:41 am -
Clojure 1.9.0-alpha1 is now available. Try it via - Download: https://repo1.maven.org/maven2/org/clojure/clojure/1.9.0-alpha1 - Leiningen: [org.clojure/clojure "1.8.0-alpha2"] 1.9.0-alpha1 includes ...
Alex Miller
May 24, 2016 at 5:04 pm
May 26, 2016 at 5:54 pm -
I've been doing some performance tests on various floating point operations. In particular, I wanted to check what would be the fastest way to implement a 2-d floating point vector in clojure. Here's ...
JvJ
May 12, 2016 at 7:58 pm
May 13, 2016 at 8:50 pm -
I'm very much a fan of bailing out early in imperative programming as it helps to avoid a bunch of nested if conditions that are to follow and read. This typically comes up when checking arguments to ...
John Szakmeister
May 26, 2016 at 2:50 pm
May 27, 2016 at 8:09 pm -
Clojure 1.9.0-alpha4 is now available. Try it via - Download: https://repo1.maven.org/maven3/org/clojure/clojure/1.9.0-alpha4 - Leiningen: [org.clojure/clojure "1.9.0-alpha4"] 1.9.0-alpha4 includes ...
Stuart Halloway
May 31, 2016 at 3:41 pm
Jun 4, 2016 at 8:15 pm -
I've been doing some code profiling lately, and I made one small change that drastically improved performance. I had this function: (defn run-systems "Run the systems in the order specified over the ...
JvJ
May 8, 2016 at 10:03 pm
May 11, 2016 at 3:41 pm -
I'm encountering a very strange error in some tests. The details are a bit complex, but I'm using type-indexed maps. So, given an object o, the map would be {(type o) o}. When I try to lookup with ...
JvJ
May 18, 2016 at 5:31 pm
May 18, 2016 at 11:04 pm -
Hi! I have a function f- defined using a local function f which uses a local var v: user (def f- (let [v 1 f (fn [x] v)] f)) ;; = #'user/f- Putting f- in a map user {:d f-} ;; = {:d ...
Johannes
May 4, 2016 at 6:32 pm
May 8, 2016 at 2:56 pm -
My next problem with .cljc (which is going very very well overall!) has to do with macros. Should I mention that I am building under Figwheel? This toolchain stuff has this old Lisper's head ...
Hiskennyness
May 20, 2016 at 5:34 pm
May 27, 2016 at 3:33 pm -
Hello Everyone, Just wanted to let you know that we started a new podcast about Clojure: https://defn.audio We published our first episode and plan to release a new one every two weeks. It is ...
Vijay Kiran
May 19, 2016 at 5:43 am
May 23, 2016 at 10:15 am -
My copy of CCW 0.28.0_STABLE001 has mysteriously grown a bug. My guess is it's an incompatibility with the Java version I have. I've kept the latter up to date, but not the former. The problem occurs ...
Fluid Dynamics
May 4, 2016 at 4:26 am
May 5, 2016 at 3:54 am -
Anyone seriously working on deep learning with Clojure? I'm working with Torch at the day job, and have done work integrating Tensorflow into Clojure, so I'm fairly familiar with the challenges of ...
Kovas boguta
May 30, 2016 at 6:34 pm
May 31, 2016 at 3:11 pm -
Whenever I call do-at or do-at*, the result expression is executed immediately instead of at the specified time. specs.core (tm/do-at* (- 30 tm/seconds tm/from-now) (fn [] (println "SUP"))) SUP ;; = ...
JvJ
May 20, 2016 at 2:52 am
May 20, 2016 at 5:07 pm -
I'm implementing a data structure with persistent and transient implementations. (Code is here: https://github.com/JvJ/cross-map/blob/master/src/cross_map/core.cljc#L446). When I try to convert a ...
JvJ
May 9, 2016 at 2:21 am
May 9, 2016 at 8:28 pm -
Specter is a library for querying and transforming nested data structures concisely and efficiently. The 0.11.0 release is a huge milestone that implements something which for the better part of the ...
Nathan Marz
May 31, 2016 at 2:57 pm
Jun 2, 2016 at 8:51 am -
qooxdoo lets us supply oft-used widget parameters to the constructor. For example, a button can specify its label and icon at new time. And this works fine from cljs: (new qx.ui.mobile.form.Button ...
Hiskennyness
May 27, 2016 at 5:24 pm
May 31, 2016 at 6:26 pm -
Hello, I am getting a reflection warning in Java interop and don’t understand why: (import 'java.time.format.DateTimeFormatterBuilder 'java.time.temporal.ChronoField) (set! *warn-on-reflection* true) ...
676c7473
May 16, 2016 at 12:15 pm
May 16, 2016 at 6:29 pm -
I have some time constraints, and need to figure out why an import script is hogging so much memory and crapping out on Heroku. What tools would you recommend that would (a) give useful information ...
Jonathon McKitrick
May 3, 2016 at 6:20 pm
May 4, 2016 at 12:08 pm -
I just starting to try and teach myself Clojure. Kindly let me know if there is a more appropriate place I should post simple questions. (def s '(1 1 1 4 99) (take-while #(= (first s) %) s) ; works ...
Phil Virgo
May 24, 2016 at 1:10 am
May 24, 2016 at 2:13 am -
Hello, We are working on a new feature in CIDER which would parse a docstring and create hyperlinks that follow the functions/vars/interop-forms mentioned there. It is very similar to the "See Also" ...
Cskksc
May 15, 2016 at 5:42 pm
May 16, 2016 at 2:32 pm -
This does what I want but feels nooby-ish, as in "in a month I will do this without APPLY": (let [raw (list :a 1 :b 2 :c 3)] Am I being too hard on myself? Meta question: is there a better place to ...
Hiskennyness
May 12, 2016 at 7:46 am
May 13, 2016 at 1:10 am -
I'm trying to generate logical predicates in order to test a function that should return the predicate in DNF. The generation seems to be biased towards one of the predicates. What am I doing wrong? ...
Jeroen van Dijk
May 30, 2016 at 9:05 pm
Jun 1, 2016 at 3:04 pm -
I would expect the returned set to be #{1 2 3} but i get the following. Copied from repl user= (set [1 1 2 2 3 3]) #{1 3 2} user= (set '(1 1 2 3 2 4 5 5)) #{1 4 3 2 5} -- You received this message ...
James Naadjie
May 31, 2016 at 12:56 pm
May 31, 2016 at 3:18 pm -
Hey guys, First of all I would like to ask some thing. In clojure the following statements results in: (identical? "foo" (str "f" "oo")) ;;= false ;;= true Everything is ok with that. The next one on ...
Camilo Roca
May 27, 2016 at 11:30 am
May 29, 2016 at 12:57 am -
I do not understand something this example: https://clojuredocs.org/clojure.core/merge#example-54c7b859e4b0e2ac61831cdf Specifically: (defn baz [& options] IIANM, that throws away all but the first ...
Hiskennyness
May 12, 2016 at 6:45 am
May 13, 2016 at 5:59 pm -
I've noticed that, in Clojure, there is a MapEntry type that supports the operations "key" and "val", but in Clojurescript, MapEntry is replaced by simple 2-element vectors. Furthermore, 2-element ...
JvJ
May 4, 2016 at 4:44 pm
May 5, 2016 at 5:17 am -
Hi Everybody, I have tried to connect to infobrite server using clojure.java.jdbc . Infobrite server is supposed to be identical to mysql in terms of the protocol. I have successfully used ...
Sunil S Nandihalli
May 2, 2016 at 7:18 am
May 3, 2016 at 2:24 pm -
I am working on a Clojure/Java stack, where the Java layer uses Vert.x to manage a collection of embedded computers and the Clojure layer would allow interaction with this system dynamically. I am ...
Patrick Martin
May 2, 2016 at 12:28 am
May 2, 2016 at 11:55 am -
Hi folks, I just came across http://samsung.github.io/jerryscript/ , which Samsung apparently open-sourced last fall. Jerryscript is a bit of a misnomer, its not a language but a JS engine designed ...
Gregg Reynolds
May 27, 2016 at 4:33 pm
Jun 1, 2016 at 12:03 am -
run! can eagerly map a function over a coll. I think it would be nice to support multiple collections, making it an eager version of map. My particular use case is running a test over two colls ...
Claudius Nicolae
May 29, 2016 at 8:27 pm
May 29, 2016 at 9:05 pm -
Hi, I’m working on caesium[1], Clojure bindings for libsodium using jnr-ffi. Up until recently, I was able to stick to byte arrays for all APIs; but I’ve started writing new nonce-misuse resistant ...
Lvh
May 21, 2016 at 9:57 pm
May 23, 2016 at 1:26 pm -
For some time I've noticed that certain exception are not printing a stacktrace when they occur in 'lein repl'. They just print a oneliner like: ArityException Wrong number of args (3) passed to ...
Elric Erkose
May 19, 2016 at 9:18 pm
May 20, 2016 at 4:33 am -
I know it's a minor concern. This can be accomplished by a simple reader conditional and System/currentTimeMillis in cljc, but is there any reason that core/system-time is not in standard clojure? I ...
JvJ
May 19, 2016 at 6:23 pm
May 20, 2016 at 1:02 am -
Hi everybody, I am trying to call function "parquet" on the var "inp-rdr-s". From the following reflection output using clojure.reflect, it is clear that the method parquet exists. However I am ...
Sunil S Nandihalli
May 13, 2016 at 4:26 am
May 13, 2016 at 4:56 am -
At Clojurewest 2016, Matthias Felleisen gave a great keynote about the pragmatism of soundness for maintening large code bases. He mentioned that adding type gradually was useful, but only when the ...
Didier
May 9, 2016 at 9:36 pm
May 9, 2016 at 10:44 pm -
Hello, There is much I like about Clojure - from it being a Lisp dialect to functional programming. I know it runs on the JVM. My question is this: If one is not a guru with Java will that be a ...
Bruce Whealton
May 4, 2016 at 2:54 pm
May 4, 2016 at 7:36 pm -
Has anyone gotten it to work lately by building it from scratch? And by from scratch, I mean using the instructions on cljsrn.org? The natal how-to's end up with an error. And the Awesome project ...
Mark Stang
May 29, 2016 at 1:19 am
May 29, 2016 at 7:15 pm -
Hey all, I don't have a lot of experience with clojure but I did write a few small services in clojure. Until now the state of the services I wrote were static so I constructed a system map (more or ...
Babysnakes
May 28, 2016 at 6:16 pm
May 29, 2016 at 12:10 pm -
Last week was supposed to be a port from a Clojure version to a CLJS version but for the heck of it I did it all in CLJC and (OMG) I now have my cherished little project running either way ...
Hiskennyness
May 24, 2016 at 4:24 pm
May 27, 2016 at 12:15 am -
Clojure 1.9.0-alpha3 is now available. Try it via - Download: https://repo1.maven.org/maven3/org/clojure/clojure/1.9.0-alpha3 - Leiningen: [org.clojure/clojure "1.9.0-alpha3"] 1.9.0-alpha3 includes ...
Alex Miller
May 26, 2016 at 2:05 pm
May 26, 2016 at 3:11 pm -
Hello all, I have problem on handle many lazy sequence, (try (for [x [1 2 3 "b"]] (for [n [1 2 3 4]] (+ x n))) (catch Throwable e (pr-str e))) When i handle but error not in catch. Any solution ? ...
Khairul isan
May 19, 2016 at 11:50 am
May 25, 2016 at 1:39 am -
hi Everyone, es7 async/await makes javascript easily understandable, and avoid the callback hell. can clojure have one library like this? scala version is here https://github.com/scala/async ...
Xiangtao Zhou
May 23, 2016 at 1:07 pm
May 23, 2016 at 1:39 pm -
Hi, Suppose I have a namespace that has some ns-level side effect, e.g. `(def atom {})`. 1. When is that executed? How often? (I think, from observation, that the answer is “when it is first ...
Lvh
May 22, 2016 at 3:01 pm
May 22, 2016 at 3:48 pm -
I see here https://github.com/clojure/clojurescript/wiki/Differences-from-Clojure that "Atoms work as in Clojure.", but I think I see a difference: 1. I am using a custom type hierarchy in a ...
Hiskennyness
May 20, 2016 at 4:22 pm
May 20, 2016 at 4:56 pm -
2
[ANN] ClojureCL now supports Linux, Windows and OS X (GPGPU and high performance parallel computing)
http://clojurecl.uncomplicate.org https://www.reddit.com/r/Clojure/comments/4jtqhm/clojurecl_gpu_programming_now_works_on_linux/ ClojureCL is a library for OpenCL high-performance numerical computing ...Dragan Djuric
May 17, 2016 at 11:37 pm
May 20, 2016 at 7:48 am -
I'm having an issue where :default catch blocks are not working in clojurescript when in a go block. The following code prints "a str" as expected: (prn (try (throw "a str") (catch :default e e ))) ...
Cameron
May 15, 2016 at 4:31 am
May 16, 2016 at 9:18 pm -
Hi all, The next version of system 0.3.0 is ready and it is a matter of days before the official announcement. In the meantime, here is a summary of the research that has been carried around the ...
Daniel Szmulewicz
May 12, 2016 at 12:13 am
May 16, 2016 at 9:39 am -
Hi all. I am happy to announce the first public release of funcool/struct validation library. https://github.com/funcool/struct Why an other? I have started on my project using well know and very ...
Andrey Antukh
May 3, 2016 at 6:11 am
May 5, 2016 at 7:31 am -
I've been using cider test, and I think it's great. However, I would like to know if it's possible to report results so that they appear in cider's automatically-generated test report. Does anyone ...
JvJ
May 3, 2016 at 3:29 am
May 3, 2016 at 4:12 am -
I'm working through "Clojure for the Brave and True." Right now I'm focused on Java interop, in particular creating a simple Java package and accessing it from Clojure. My applicable directory ...
Michael Rice
May 16, 2016 at 2:51 pm
Jun 1, 2016 at 11:06 pm
Group Overview
group | clojure |
categories | clojure |
discussions | 97 |
posts | 503 |
users | 170 |
website | clojure.org |
irc | #clojure |
170 users for May 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)