[ANN] clj-cbor - Concise Binary Object Representation

2016-12-28 Thread Gregory Look
mvxcvi/clj-cbor is a native Clojure implementation of the Concise Binary Object Representation format specified in RFC 7049 . CBOR is a binary encoding with the goal of small code size, compact messa

[ANN] lein-codeindex 0.1.0 - Easy code indexing and referencing for Emacs, Vim and other editors

2016-12-28 Thread Sanel Zukan
Hi everyone, I'm happy to announce first version of lein-codeindex, source code indexer that will scan and reference your project files and all dependencies used by the project. This is Leiningen plugin that can generate references for Emacs (with etags) or Vim and other editors (with ctags). Yo

core.logic: faking sets and "sufficient" results

2016-12-28 Thread Nathan Smutz
Hi All, I work for a university and I've been commissioned to write a program that proves whether majors can be reasonably completed in 4 years. core.logic has seemed the obvious tool. The output should be a set of scheduled course-offerings satisfying major requirements, course-prereqs, etc.

Re: Order preservation and duplicate removal policy in `distinct`

2016-12-28 Thread Timothy Baldridge
This is one of those odd questions where the answer of what "could" happen and what "will most likely happen" are completely different. There is no reason why `distinct` should reorder or which item will be preserved. However there's really only one logical way to implement this (the way it's curre

Re: [moderated] I don't understand what (:t :t) means

2016-12-28 Thread John Gabriele
> > hello,everyOne,i'm a new clojure learner. > I don't know what the structure of (:t :t)! > when i use coll? list? vector? set? map? seq? they all return false!! > what is the structure of (:t :t)? thank you very much! > Couple other things to note: * `:t` is just a keyword, like `:foo` or

Re: Order preservation and duplicate removal policy in `distinct`

2016-12-28 Thread Michael Blume
Also, I'm assuming distinct uses .equals semantics which might be worth calling out in the doc On Wed, Dec 28, 2016, 11:22 AM Mike Rodriguez wrote: > The doc for `distinct` is: > "Returns a lazy sequence of the elements of coll with duplicates removed. > Returns a stateful transducer when no c

Order preservation and duplicate removal policy in `distinct`

2016-12-28 Thread Mike Rodriguez
The doc for `distinct` is: "Returns a lazy sequence of the elements of coll with duplicates removed. Returns a stateful transducer when no collection is provided." (1) In the lazy sequence case, I've thought that maybe it is assuemd there is a guarantee that the order of the input seq is preser

The Micro Monolith architecture

2016-12-28 Thread Joakim Tengstrand
I have just released a new architecture that fits really nice with Clojure and its REPL. Start the REPL once and continue working! https://medium.com/@joakimtengstrand/the-micro-monolith-architecture-d135d9cafbe#.v934khjni -- You received this message because you are subscribed to the Google Gro

Re: maven-shade-plugin issues with Clojure core (or any clj) AOT compilation

2016-12-28 Thread Mike Rodriguez
I also forgot to include the error message from my example GitHub project, in case it is easier than actually running it. I understand this issue for the most part. It has still been a bit tricky for me to fully understand how this AOT class interface/class is being referred to by any Clojure

Re: maven-shade-plugin issues with Clojure core (or any clj) AOT compilation

2016-12-28 Thread Mike Rodriguez
I appreciate your input. When we have controlled the Maven shade projects, we have been able to workaround the issue as well. We actually add a org.codehaus.mojo/exec-maven-plugin step where we re-open the shaded jar, create a new jar, and re-add every file into the new jar via a script. Whi

Re: maven-shade-plugin issues with Clojure core (or any clj) AOT compilation

2016-12-28 Thread Gary Trakhman
My workaround in a multi-module maven shaded java project with a clojure module was to strip out CLJ files in the top-level build (shipped with clojure.core jar). I had also stripped CLJ files from my project artifact, but AOT compiles classfiles from all referenced namespaces, so I attempted to s

maven-shade-plugin issues with Clojure core (or any clj) AOT compilation

2016-12-28 Thread Mike Rodriguez
Background: This problem is specific to building jars that contain AOT (Ahead Of Time) compiled Clojure code using Maven and the maven-shade-plugin. Clojure AOT compilation depends on timestamps of .class files vs .clj files being accurate. When both .class files and their associated .clj file