This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-11-11
Channels
- # beginners (104)
- # boot (14)
- # cider (10)
- # clojure (38)
- # clojure-australia (3)
- # clojure-dev (11)
- # clojure-spec (8)
- # clojurebridge (2)
- # clojurescript (50)
- # core-async (118)
- # emacs (3)
- # expound (2)
- # fulcro (39)
- # jobs (3)
- # jobs-discuss (17)
- # kaocha (2)
- # lumo (1)
- # off-topic (16)
- # onyx (1)
- # re-frame (1)
- # reitit (24)
- # shadow-cljs (14)
- # sydney (1)
- # tools-deps (14)
- # yada (1)
You can now send unix signals between containers in a Kubernetes pod. I wrote a short post about how to do that with Clojure on JDK11. https://blog.codeabout.info/2018/11/unix-signals-with-clojure-110-beta5.html
I'm trying to do some repl based data visualization in clojure. I've tried gorilla repl, jutsu, and also oz. All of them seem to give me the following error message:
CompilerException java.lang.ClassNotFoundException: javax.xml.bind.DatatypeConverter, compiling:(aleph/http/client_middleware.clj:420:7)
is there any way i can get around this?
what jvm version are you using?
java version "11.0.1" 2018-10-16 LTS Java(TM) SE Runtime Environment 18.9 (build 11.0.1+13-LTS) Java HotSpot(TM) 64-Bit Server VM 18.9 (build 11.0.1+13-LTS, mixed mode)
if you use java 8 instead that error should go away
there's various libraries in the Clojure ecosystem that are not ready for Java's module stuff
I added [javax.xml.bind/jaxb-api "2.3.0"
and [http-kit "2.3.0"]
and now it seems to work, not sure which one of them fixed it
nice! ๐ thanks
how can i force a lazy seq like (range 0 2 0.1) to be evaluated. The output is getting truncated when i try to plot this.
ive tried (into [] (doall (range 0 1.6 0.01)))
but its not working
oh i see
that makes sense, thanks
that wasn't quite it, see if i try (spit "test.txt" (into [] (doall (range 0 200))))
and look at the file, this is the file I get
[0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 ...]
that changes the output to
(0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 ...)
using pr the text file is empty
i am in cider
http://Try.to run it outside of Cider. I think it will work
you're right, this works outside of cider
(`binding` is insufficient if the collection is then returned to be printed in the REPL after the binding unwinds)
Well, it isn't the fact that the seq is lazy, its that the scope of the binding is only during the time that the form is evaluated, not when it is later printed in the REPL