Re: ExceptionInInitialization error

2016-05-31 Thread Punit Naik
Nice explanation. On Thursday, February 25, 2016 at 8:46:46 PM UTC+5:30, Gary Verhaegen wrote: > > The lein deps :tree message (on stderr, which may be why it was not > included in your mail?) said: > > > Possibly confusing dependencies found: > [cheshire "5.3.1"] > overrides > [riemann

Re: ANN: Specter 0.11.0, performance without the tradeoffs

2016-05-31 Thread Mark Engelberg
I'm glad it helped! -- 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 first post. To unsubscribe from this

Re: ANN: Specter 0.11.0, performance without the tradeoffs

2016-05-31 Thread Nathan Marz
Great idea on interning a var at macro-time and then using it later! I did something similar for the ClojureScript implementation of inline caching but for some odd reason didn't think of doing it for the Clojure version. I'm seeing a big performance improvement for the [:a :b :c] benchmark

Re: ANN: Specter 0.11.0, performance without the tradeoffs

2016-05-31 Thread Mark Engelberg
I think this is an interesting problem, so here are some additional brainstorms on the issue that may or may not be useful... One strategy to create a global mutable variable from inside the function would be to use def at macroexpansion time to create a var, and then just refer to it in the

Re: IoT: Clojurescript -> Jerryscript?

2016-05-31 Thread Paul deGrandis
Hi Gregg, I've previously used ClojureScript to target other JavaScript engines (on small devices and on Android), without any issue. You shouldn't need to do anything special, but if something comes up and you hit a snag, just post here. Good luck and have fun! Cheers, Paul -- You

Re: Making my own functions visible to the clojurescript.io REPL

2016-05-31 Thread 'Lee' via Clojure
Thanks Andrea. I think I wasn't clear. I'm already hosting it on my own server. But I'm starting with a copy of the cljs-repl-web-devel project and I don't know where to put my code to make it callable in the REPL. I'll take it to slack, as you suggest. Thanks, -Lee On Tuesday, May 31,

Re: Making my own functions visible to the clojurescript.io REPL

2016-05-31 Thread Andrea Richiardi
On Tuesday, May 31, 2016 at 1:51:19 PM UTC-7, Lee wrote: ... > Thanks, > > -Lee Sorry for the typos I was on mobile. -- 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

Making my own functions visible to the clojurescript.io REPL

2016-05-31 Thread Andrea Richiardi
Hello Lee, thanks for using clojurescript.io first of all. At the moment what you try to accomplish is not possible unfortunately. It would mean to host arbitrary code on out servers. I was thinking about a simple collaborative platform so that you and someone else could share the "current

Re: IoT: Clojurescript -> Jerryscript?

2016-05-31 Thread Gregg Reynolds
Hi Christopher, Thanks for the feedback. If things go approximately as planned I'll be hacking at this over the next few weeks. You'll be hearing g from me. thanks! gregg On May 27, 2016 5:15 PM, "Christopher Small" wrote: > I imagine this should be possible, as long

Making my own functions visible to the clojurescript.io REPL

2016-05-31 Thread 'Lee' via Clojure
I'm trying to hack a copy of the http://clojurescript.io REPL so that I can use it to allow people to run some of my code in a REPL in a web page. But I can't figure out where to put my functions in the cljs-repl-web-devel project so that the user can call them in the REPL. The REPL is in the

Re: ANN: Specter 0.11.0, performance without the tradeoffs

2016-05-31 Thread Nathan Marz
No, because that global mutable variable would need to be specifiable by Specter on usage of the library. For example, if you wrote: (defn foo [] (select [:a :b] {:a {:b 1}})) `select` has no ability to control anything outside the context of its form. It certainly can't wrap `foo` to put a

Re: ANN: Specter 0.11.0, performance without the tradeoffs

2016-05-31 Thread Mark Engelberg
In your writeup, you say that there would be further speed benefits if you could have a global mutable variable within the context of a function (like a static field). Can't you effectively accomplish that already in Clojure like this?: (let [mycache (volatile! nil)] (defn foo [] ...)))

Re: Is there an apply-able new?

2016-05-31 Thread Kenneth Tilton
It woiks! This game never gets old. I am going to be unreasonably happy for the rest of the day. For noobs like me that stumble across this... 1. I added a script element to my index.html: > var MyTerop = {}; > MyTerop.make = function(cls) { > return new

Re: clojure.spec generation question

2016-05-31 Thread Rich Hickey
You are not labeling your preds, so ::not-predicate is taken as the label for ::and-predicate etc. Also, tuples are not labeled: (require '[clojure.spec :as s]) (require '[clojure.spec.gen :as gen]) (s/def ::atom string?) (s/def ::predicate (s/or :not ::not-predicate

[ANN] Clojure 1.9.0-alpha4

2016-05-31 Thread Stuart Halloway
Clojure 1.9.0-alpha4 is now available. Try it via - Download: https://repo1.maven.org/maven3/org/clojure/clojure/1.9.0-alpha4 - Leiningen: [org.clojure/clojure "1.9.0-alpha4"] 1.9.0-alpha4 includes the following changes since 1.9.0-alpha3: - fix describe empty cat - improve update-in perf -

Re: clojure.spec generation question

2016-05-31 Thread Jeroen van Dijk
Hi Gary, Thanks for the feedback. I've tried it with test.check itself and I get better results (see below). So I'm guessing clojure.spec needs different input or it works differently underneath. Thanks, Jeroen (require '[clojure.test.check :as tc]) (require '[clojure.test.check.generators :as

Re: set return value is unordered, is that a bug or by design?

2016-05-31 Thread James Reeves
Sets are unordered data structures, so it's by design. - James On 31 May 2016 at 13:54, wrote: > I would expect the returned set to be > > #{1 2 3} but i get the following. Copied from repl > > > user=> (set [1 1 2 2 3 3]) > > #{1 3 2} > > > user=> (set '(1 1 2 3 2 4 5

Re: set return value is unordered, is that a bug or by design?

2016-05-31 Thread Alan Thompson
sets & maps make no guarantee about the order of their entries. In fact, they deliberately use hash functions to keep simple keys like 1,2,3 "spread out" in their hash-codes. This causes the "random" ordering when printed. If you want a set to print in order (often worth the trouble, I think), use

Re: set return value is unordered, is that a bug or by design?

2016-05-31 Thread Alan Thompson
I believe you may have meant sorted-set On Tue, May 31, 2016 at 6:10 AM, vandr0iy wrote: > You could use sorted-map, if you wish to have them ordered: > > https://clojuredocs.org/clojure.core/sorted-map > > there is

Re: Clojure with Tensorflow, Torch etc (call for participation, brainstorming etc)

2016-05-31 Thread kovas boguta
On Tue, May 31, 2016 at 9:36 AM, atucker wrote: > Given that the TensorFlow website invites people to build interfaces from > other languages using SWIG, I guess they feel that access to the C++ > component is the major thing. So while I agree with Christian about >

Re: Clojure with Tensorflow, Torch etc (call for participation, brainstorming etc)

2016-05-31 Thread kovas boguta
On Tue, May 31, 2016 at 7:51 AM, Christian Weilbach < whitesp...@polyc0l0r.net> wrote: > > Almost all of the development in deep learning is done in Python, so > having to reproduce this work on a different runtime (and language) > seems non-Clojure-like for me (compared to being hosted on the

ANN: Specter 0.11.0, performance without the tradeoffs

2016-05-31 Thread Nathan Marz
Specter is a library for querying and transforming nested data structures concisely and efficiently. The 0.11.0 release is a huge milestone that implements something which for the better part of the past year I wasn't sure was possible. In summary: now you don't have to do anything special to

Re: Clojure with Tensorflow, Torch etc (call for participation, brainstorming etc)

2016-05-31 Thread kovas boguta
On Tue, May 31, 2016 at 1:17 AM, Mikera wrote: > I've been working with a number of collaborators on a deep learning > library for Clojure. > > Some key features: > - An abstract API for key machine learning functionality > - Ability to declare graphs / stacks of

Re: Clojure with Tensorflow, Torch etc (call for participation, brainstorming etc)

2016-05-31 Thread atucker
Given that the TensorFlow website invites people to build interfaces from other languages using SWIG, I guess they feel that access to the C++ component is the major thing. So while I agree with Christian about reinventing the wheel, it may be that to interface at that level would involve

Re: set return value is unordered, is that a bug or by design?

2016-05-31 Thread vandr0iy
You could use sorted-map, if you wish to have them ordered: https://clojuredocs.org/clojure.core/sorted-map there is also sorted-map-by, which lets you define the comparator based on which the values have to be sorted On 05/31/2016 02:54 PM, james.naad...@gmail.com wrote: > > I would expect

set return value is unordered, is that a bug or by design?

2016-05-31 Thread james . naadjie
I would expect the returned set to be #{1 2 3} but i get the following. Copied from repl user=> (set [1 1 2 2 3 3]) #{1 3 2} user=> (set '(1 1 2 3 2 4 5 5)) #{1 4 3 2 5} -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this

Re: Clojure with Tensorflow, Torch etc (call for participation, brainstorming etc)

2016-05-31 Thread Bobby Bobble
> - Ability to declare graphs / stacks of operations (somewhat analogous to > tensorflow) > I'd be interested to know more as I've been working with factor graphs in Clojure with core.matrix, and it sounds related -- have you done anything like message-passing on graphs ? -- You received

Re: Is there an apply-able new?

2016-05-31 Thread hiskennyness
On Friday, May 27, 2016 at 10:57:05 PM UTC-4, Brandon Bloom wrote: > > The new operation intentionally demands a statically knowable type to > construct. While this is true of Java as well, it's not true of JavaScript. > However, it is true of the Google Closure compiler's "type system" for >

Re: Idea: standardised way of packaging docs inside jar

2016-05-31 Thread Andrew Oberstar
Not very familiar with it, but is the Grenada/datadoc project along the lines you were thinking? I think that was a Google Summer of Code project last year. Andrew Oberstar On Tue, May 31, 2016, 5:37 AM Arnout Roemers wrote: > Hi all, > > This is a copy from the

Re: Clojure with Tensorflow, Torch etc (call for participation, brainstorming etc)

2016-05-31 Thread Christian Weilbach
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 31.05.2016 07:17, Mikera wrote: > I've been working with a number of collaborators on a deep > learning library for Clojure. > > Some key features: - An abstract API for key machine learning > functionality - Ability to declare graphs / stacks of

Idea: standardised way of packaging docs inside jar

2016-05-31 Thread Arnout Roemers
Hi all, This is a copy from the question I posed at codox : I was thinking that maybe a good addition to the Clojure documentation ecosystem would be to have a standardised way of including project documentation inside