Re: Validation Benchmark

2016-04-18 Thread Jason Wolfe
Thanks for putting this together! For schema, I think using `s/validate` is not a fair comparison with the other libraries -- as you mention, it throws an exception on error, and it also has to parse the schema each time. I think `s/checker` is the correct construct to use here -- it return

Re: [ANN] CIDER 0.12 (Seattle)

2016-04-18 Thread Artur Malabarba
Sounds like you've installed some aggressive completion engine like helm or avy. Cheers Artur On Mon, 18 Apr 2016 7:10 pm hiskennyness, wrote: > > Pardon a noob question, but I just installed 0.12 and when I did C-x C-f > intending to visit a new file Emacs insisted on opening an existing file >

[ANN] Kern 1.0 parsing library

2016-04-18 Thread Armando Blancas
Release 1.0 updates dependencies and gets rid of a name collision with cat. These functions will let you write code that resembles the grammar you're parsing. I've found it useful for interpreters, translators and DSL's. repo: https://github.com/blancas/kern docs: https://github.com/blancas/kern

[ANN] Arachne, a new rapid web development framework for Clojure

2016-04-18 Thread Luke VanderHart
Just realized I forgot to post about this here, which is kind of important. :) It is still under development - I am raising funds via Kickstarter in order to get the opportunity to work on it full time and make sure it gets off to a really solid start. It's a pretty ambitious project, but I've

Re: Possible to override assoc-in or update-in?

2016-04-18 Thread Timothy Baldridge
Core.logic has one such implementation: https://github.com/clojure/core.logic/blob/master/src/main/clojure/clojure/core/logic/pldb.clj might be a place to start. On Mon, Apr 18, 2016 at 5:35 PM, JvJ wrote: > Can you point me to a working example of one of these structures? > > On Monday, 18 Apri

Re: Possible to override assoc-in or update-in?

2016-04-18 Thread JvJ
Can you point me to a working example of one of these structures? On Monday, 18 April 2016 16:30:17 UTC-7, tbc++ wrote: > > And by "fairly common these days", I mean that I run into this sort of > structure a lot in clojure with anything that is trying to logic or query > operations. Probably is

Re: Possible to override assoc-in or update-in?

2016-04-18 Thread Timothy Baldridge
And by "fairly common these days", I mean that I run into this sort of structure a lot in clojure with anything that is trying to logic or query operations. Probably isn't that common outside of projects in that domain. On Mon, Apr 18, 2016 at 5:28 PM, Timothy Baldridge wrote: > assoc-in is defi

Re: Possible to override assoc-in or update-in?

2016-04-18 Thread Timothy Baldridge
assoc-in is defined in terms of assoc: https://github.com/clojure/clojure/blob/clojure-1.7.0/src/clj/clojure/core.clj#L5901 And this structure is fairly common these days, it's basically a index of tuples [e a v], and you're creating a eav index and then an av index. Datomic does this same sort of

Possible to override assoc-in or update-in?

2016-04-18 Thread JvJ
I'm implementing a map data structure where most of the values are maps or sets, and these values can be cross-indexed by the keys they contain. I don't know if it already has a name, but I'm calling it a cross-map. It's similar to a two-way map, but they're not the same thing. For instance,

Re: [ANN] CIDER 0.12 (Seattle)

2016-04-18 Thread hiskennyness
Pardon a noob question, but I just installed 0.12 and when I did C-x C-f intending to visit a new file Emacs insisted on opening an existing file that did not even match. eg, I typed a.clj and it opened evaluate.clj. I was trying to create cells_test.clj, typed that, and it opened (and showed

Re: Recur in an overloaded function does not work?

2016-04-18 Thread James Elliott
And the reason for this is to be able to simulate tail-call optimization even though the Java VM doesn’t natively support that; recur can allow you to express things in a style that looks recursive, but does not suffer from stack space limitations that actual recursive calls do. If you actually

Re: Recur in an overloaded function does not work?

2016-04-18 Thread adrian . medina
Each arity defined for a particular Clojure function is actually a separate "method" under the hood for that particular functional instance. `recur` in Clojure should be thought of as more like a primitive looping construct than a recursive call to some named function. The documentation for the

Recur in an overloaded function does not work?

2016-04-18 Thread andmed
Hello I am just a beginner Clojure programmer and I am unhappy with the way recur behaves in Clojure I have implemented kata from here https://github.com/alvarogarcia7/kata-formulation-find-comments/pull/3 What it does: it outputs 'comments' (sequences starting with "#" or "//") and ignores 'c

Validation Benchmark

2016-04-18 Thread Atamert Ölçgen
Hi All, I have been working a benchmark for (runtime) validation libraries. I think it is mature enough to share the results with the group. The repo is here: https://github.com/muhuk/validation-benchmark Raw benchmark output as EDN is here: https://gist.github.com/muhuk/93d7d9e46bf5191310aaa455

Re: [ANN] CIDER 0.12 (Seattle)

2016-04-18 Thread Bozhidar Batsov
On 18 April 2016 at 03:22, Leon Grapenthin wrote: > Is there still a one page version of the manual so that I can use full > text search like on the old README? > Nope, there's not a single page version of the manual anymore. > Asking beacuse the readthedocs search function returns 0 results

Re: Pmap on hash maps

2016-04-18 Thread myriam abramson
I like pmap too. I've set the number of processors call with a defonce to minimize the calls to this function to speed up pmap. What do ya think? (defn rt-num-processors [] (.availableProcessors (Runtime/getRuntime))) (defonce num-processors (rt-num-processors)) On Mon, Apr 18, 2016 at 1:31 A

Re: [ANN] CIDER 0.12 (Seattle)

2016-04-18 Thread Leon Grapenthin
Is there still a one page version of the manual so that I can use full text search like on the old README? Asking beacuse the readthedocs search function returns 0 results for "shortcut" or "shortcuts". Besides thank you very much. On Sunday, April 17, 2016 at 4:54:44 AM UTC+2, Bozhidar Batsov

Re: [ANN] CIDER 0.12 (Seattle)

2016-04-18 Thread Mimmo Cosenza
a thousand thanks for the Clojure Interactive Development Environement that Rocks! mimmo > On 18 Apr 2016, at 08:17, Andrea Russo wrote: > > Awesome! Thank you very much! > > Il 18/apr/2016 03:50, "Timothy Washington" > ha scritto: > +1. Great work :) > > > Tim >