This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-10-26
Channels
- # 100-days-of-code (1)
- # aleph (4)
- # beginners (112)
- # boot (2)
- # business (4)
- # calva (3)
- # cider (37)
- # clara (26)
- # cljs-dev (6)
- # cljsrn (1)
- # clojars (4)
- # clojure (89)
- # clojure-brasil (1)
- # clojure-conj (1)
- # clojure-dev (81)
- # clojure-dusseldorf (8)
- # clojure-italy (41)
- # clojure-nl (3)
- # clojure-spec (11)
- # clojure-uk (14)
- # clojurescript (73)
- # cursive (1)
- # data-science (3)
- # datomic (2)
- # dirac (9)
- # duct (6)
- # emacs (4)
- # figwheel-main (1)
- # fulcro (47)
- # incanter (3)
- # jobs-discuss (43)
- # leiningen (18)
- # luminus (6)
- # lumo (4)
- # mount (4)
- # off-topic (31)
- # portkey (8)
- # protorepl (5)
- # re-frame (9)
- # reagent (15)
- # reitit (2)
- # ring-swagger (7)
- # shadow-cljs (28)
- # specter (4)
- # tools-deps (8)
- # uncomplicate (1)
hey @alexmiller, back in April you mentioned that there would be a powershell script for enabling the clj tooling on windows. I was wondering if that was available to test out some place?
No, sorry. I haven’t had time to work on it since
I have a patch you could apply locally to the source of that library that causes it to change Java Boolean constructed values to the ones that work more as expected in Clojure (and Java)
I don't know if it causes any new troubles that the original doesn't have.
I have attached it to the ticket. I can point you at instructions for applying the patch and locally installing the newer one on your system if you are interested in trying it out.
When I start 'lein repl' in project root, am I able to use the app's namespaces in repl?
Depending on the contents of the project.clj file, there might be a :main namespace already require'd, but for many projects no project namespaces are loaded by default when you do 'lein repl'
You should be able to run require commands at the REPL like (require '[my.app.namespace :as m])
Hi, after an update of org.clojure/tools.reader
1.3.0 to 1.3.1 I get warnings:
WARNING: Use of undeclared Var cljs.tools.reader/reader at line 947 resources/public/js/dev/cljs/tools/reader.cljs
and more like this, all pointing to read+string
in cljs.tools.reader
.
Do I report this and if so where?
@andy.fingerhut Thanks, I had the boolean multimethod in my code but "underiving" something i don't know how to do
so say I have a vector of strings in a certain order, i.e. ["first type" "second type" "third type" ...]
and a sequence of maps with :type
keys like ({:type "third type"}{:type "first type"})
how can I sort the map on the :type
key with respect to the ordering of types seen in the vector?
the sequence of maps sorted in the same order as the vector wrt. the type variable, i.e. ({:type "first type"}{:type "second type"}{:type "third type"} ...)
you could do something like:
(def order (zipmap vec-of-strings (range)))
(sort-by #(get order (:type %)) vec-of-maps)
are there printing libraries that can do a *print-length*
but only apply it to sequential collections?
I think you could roll your own with fipp, going to look into that one of these days 😉
nevermind, I realized preprocessing with clojure.walk
is pretty easy
Is there a sense (even vague) of when Clojure 1.10 is going to land? Is it somewhat tied at the hip to Java 1.11?
oh, silly me. Java 1.11 is already a thing.
wow, so we skipped Java 2.0 - 10.0 😉
No relation between clojure version and java version. (Actually they skipped from Java 1.8 -> 9)
I bet you can guess what version I’ve been living in
According to semantic versioning, does 1.8 -> 9 jump mean that they intended to break lots of things? 🙂
(LinearGradient. 0.0 0.0 0.0 1.0 true CycleMethod/NO_CYCLE (Stop. 0 (Color/web "0xAEBBCC")) (Stop. 1 (Color/web "0x6D84A3")) )
it's the varargs Stops, you have to put them in an array - or use the ctor that takes a list
Do this:
(set! *warn-on-reflection* true)
Then evaluate the thing with a vector of stop instances
serendipitously, I'm giving a talk at Clojure/conj this november about Java for Clojurists
especially in this tricky case where there is a var-args and version and a List version.
sorry, just had to. However, I’d think clojure.data.xml is a bit more feature-loaded than the built-in clj ns. It is weird though that the built-in one exists and makes it confusing
clojure.xml is a ns in clojure.core clojure.data.xml is a separate project, but it is managed via the main clj org in github still it seems
The built-in one clojure.xml
is pretty basic and hasn't evolved much over the years. The Contrib one clojure.data.xml
has become pretty sophisticated over the years (including XML namespace support, I believe).
If your needs are really simple in terms of XML parsing or emitting, the core version should be sufficient. If you need more than that, you'll need to add org.clojure/data.xml
as a dependency to your project and use its more powerful API.
Hi Sean, thanks for response! Well, the case is the following: Open xlsx -> map over 'XML' column -> get :tag "RNR" which is buried 2-3 level deep -> parse -> throw values to a corresponding columns.
I'm stuck on a :tag selection, have been working in Python pandas for a while and trying things out in Clojure now out of the frustration and bitter taste the boilerplate brought in.
Is dispatching a multimethod on count
totally bonkers, or should I just use condp
for the different logic? I have a set of vectors with two different sizes that I want to process with the same call.