Re: [ANN] Clojure 1.7.0-beta1 released

2015-04-19 Thread vrakade
Possible issue with doseq in 1.7.0-beta1? Was working in 1.7.0-alpha5. (Found with clj-jgit) Leiningen 2.5.1 on Java 1.8.0_31 Java HotSpot(TM) 64-Bit Server VM Error: #error{:cause Unable to resolve symbol: private-key in this context, :via [{:type clojure.lang.Compiler$CompilerException, :me

citing Clojure and EDN?

2014-04-22 Thread vrakade
For the purposes of academic publications (in areas well outside of SIGPLAN and such), are there any preferred citations for Clojure and EDN? Or could a recommendation for a citation for both (especially EDN) be proposed if there isn't one currently? -- You received this message because you ar

Re: Do web apps need Clojure?

2013-11-14 Thread vrakade
Attaching nREPL to debug a live application is pretty cool. -- -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your

Re: assoc / dissoc consistency, maps and vectors

2013-11-02 Thread vrakade
On Saturday, November 2, 2013 4:56:13 PM UTC-5, Jozef Wagner wrote: > > Problem is, when your proposed dissoc removes value from a vector, it > shifts all larger keys. So dissoc would not only remove value at index > position, but also change keys for pther values. And this is not what > disso

Re: assoc / dissoc consistency, maps and vectors

2013-11-02 Thread vrakade
On Saturday, November 2, 2013 2:38:57 PM UTC-5, vra...@gmail.com wrote: > > (assoc some-vector 2 'x) > ;=> [a b x d e] > (dissoc some-vector 3) ;; proposed > ;=> [a b d e] > Typo: (assoc some-vector 2 'x) ;=> [a b x d e] (dissoc some-vector 2) ;; proposed ;=> [a b d e] -- -- You received thi

Re: assoc / dissoc consistency, maps and vectors

2013-11-02 Thread vrakade
On Saturday, November 2, 2013 2:20:40 PM UTC-5, Ben wrote: > > So then (get (dissoc some-vector i) i) would be equivalent to (get > some-vector (inc i))? > (def some-vector ['a 'b 'c 'd 'e]) (assoc some-vector 0 'x) ;=> [x b c d e] (dissoc some-vector 0) ;; proposed ;=> [b c d e] (assoc some

Re: assoc / dissoc consistency, maps and vectors

2013-11-02 Thread vrakade
On Saturday, November 2, 2013 1:16:42 PM UTC-5, Andy Fingerhut wrote: > > What would you expect the return value of (dissoc ['a 'b 'c] 1) to be? > Hi Andy, Thanks for your interest! This is the "ideal" behavior I would expect from dissoc, for consistency with assoc: (assoc ['a 'b 'c] 1 'x) ;

assoc / dissoc consistency, maps and vectors

2013-11-02 Thread vrakade
I realize `dissoc` isn't implemented to work on vectors for technical reasons (such as explained on 1/13/11 here https://groups.google.com/forum/#!msg/clojure/Lx9ysZ4ndfw/E52rVTvclMoJ ). "It'd be nice" if it did as I still get surprised by this on occasion, it feels like an inconsistency when u

Re: .length vs. count for string length

2013-11-01 Thread vrakade
On Thursday, October 31, 2013 10:37:33 PM UTC-5, Mikera wrote: > > OTOH, count is much more generic since it can handle arbitrary sequences > etc. Also count doesn't require type hints. You should definitely prefer > count when writing most high level code. > Yes, I'd prefer count in higher le

Re: Documentation / usage --- Array vs. Vector

2013-07-15 Thread vrakade
Very helpful, thanks for the explanation Mikera! On Thursday, July 11, 2013 6:45:35 AM UTC-5, Mikera wrote: > > This is a heavily overloaded naming space - especially when you consider > code.matrix as well, and usage of these words in mathematical / scientific > communities. > > Data scientis

Re: vectorz doesn't handle scalars?

2013-07-10 Thread vrakade
Confirmed: % cat project.clj (defproject abc "0.1.0-SNAPSHOT" :dependencies [ [org.clojure/clojure "1.5.1"] [net.mikera/core.matrix "0.8.0"] [net.mikera/vectorz-clj "0.10.0"]]) % lein ancient [..none..] % lein repl user=> (u

Re: edn-format parsers (eg, Common Lisp)?

2013-07-10 Thread vrakade
This is an aside, but I wanted to add about translations... An EDN "generator" is somewhat redundant from Clojure, but I usually use fipp for standard formatting: https://github.com/brandonbloom/fipp Also clj-yaml for YAML output, and Chesire or data.json for JSON. (Note data.json has trouble w

Documentation / usage --- Array vs. Vector

2013-07-10 Thread vrakade
I see that Lists and Vectors are similar, but have different uses and for logical reasons. My question may be more about language of datatypes in Clojure than usage. Is it appropriate to use the term Array and Vector interchangeably when writing documentation about Clojure/EDN for non-Clojure p

Re: leiningen checkout dependencies

2013-06-03 Thread vrakade
On Tuesday, February 5, 2013 1:35:50 PM UTC-6, Phil Hagelberg wrote: > > > This is the correct way to do it, but you need to run `lein install` in > the sub project first. > It appears it's possible to update source changes to sub-projects loaded via checkouts/ by restarting the JVM,[1] howev