Re: No such var during runtime

2015-02-20 Thread Sean Corfield
Could it perhaps be this bug at work? http://dev.clojure.org/jira/browse/CLJ-1604 Sean On Feb 20, 2015, at 1:31 PM, Sven Richter wrote: > A user reported an error for closp which I cannot make sense of: > java.lang.RuntimeException: No such var: t

Re: javac-options are ignored

2015-02-20 Thread Justin Smith
This would make sense because javac isn't used to generate those classes. On Thursday, February 19, 2015 at 5:08:33 PM UTC-8, Jeremy Heiler wrote: > > On February 19, 2015 at 4:40:16 PM, Felipe Gerard (fge...@interware.com.mx > ) wrote: > > When you set: > > > > :javac-options ["-target" "1.

Re: [BUG] : clojure.data/diff handles nested empty collections incorrectly

2015-02-20 Thread Timothy Pratley
Hi Andy, On Fri, Feb 20, 2015 at 5:51 PM, Andy Fingerhut wrote: > The goal with your library is to transmit deltas between two systems, and > then apply those deltas to the other system to make them match, yes? > Correct, it works well for what I need it to do. :) > How would you use the dif

Re: Using the Undertow AJP Linstner in Immutant2

2015-02-20 Thread Eunmin Kim
Awesome! :) 2015년 2월 20일 금요일 오후 11시 12분 11초 UTC+9, Jim Crossley 님의 말: > > Cool. Submit a PR and we'll get it merged in. > > Thanks! > Jim > > On Fri, Feb 20, 2015 at 4:25 AM, Eunmin Kim > wrote: > > Hi! > > I added ajp? on immutant.web/run option to use the Undertow AJP Linstner > in > > I

Re: Workaround for CLJ-1604?

2015-02-20 Thread tcrayford
CLJ-1604 was just fixed (as far as I can see), by this commit: https://github.com/clojure/clojure/commit/59889fdeb7ef7f4f73e13fa6ecb627f62b7d2adb On Friday, 20 February 2015 12:10:50 UTC+8, Adam Krieg wrote: > > I'm running into what appears to be the same issue described in CLJ-1604 >

Re: [BUG] : clojure.data/diff handles nested empty collections incorrectly

2015-02-20 Thread Andy Fingerhut
The goal with your library is to transmit deltas between two systems, and then apply those deltas to the other system to make them match, yes? How would you use the diff return value ({:x {:y 1}} nil nil) to cause a system that currently has {:x {:y 1}} to change to {:x {}}, as opposed to some oth

Re: [BUG] : clojure.data/diff handles nested empty collections incorrectly

2015-02-20 Thread Timothy Pratley
On Fri, Feb 20, 2015 at 4:40 PM, Andy Fingerhut wrote: > Why not ({:x {:y 1}} {:x {}} nil) ? > Hi Andy, Great point! Both solutions convey accurately the same meaning? I have a subjective preference to nil as the absence of things in b that are not in a. Conversely {:x {}} implies that :x is

Re: [BUG] : clojure.data/diff handles nested empty collections incorrectly

2015-02-20 Thread Andy Fingerhut
Timothy, I probably haven't thought about this carefully enough yet, but why do you expect the return value to be ({:x {:y 1}} nil nil) in your test case? Why not ({:x {:y 1}} {:x {}} nil) ? Andy On Fri, Feb 20, 2015 at 4:13 PM, Timothy Pratley wrote: > Alex/Rich, if a patch is welcome for th

[BUG] : clojure.data/diff handles nested empty collections incorrectly

2015-02-20 Thread Timothy Pratley
Alex/Rich, if a patch is welcome for this I am happy to raise a ticket and submit. Test case: (clojure.data/diff {:x {:y 1}} {:x {}}) Expected: ({:x {:y 1}} nil nil) Actual: ;; => ({:x {:y 1}} {:x nil} nil) Problem: There is nothing only in the second input, so the second result should be nil

Re: Clojurescript Light Table Setup

2015-02-20 Thread Sam Ritchie
What issues are you having? JvJ February 20, 2015 at 2:17 PM I'm having some issues working with CLJS and Light table. I've found a few things online, but never a single end-to-end setup. Does anyone have any advice on setting up, beginning with lein, ending wit

No such var during runtime

2015-02-20 Thread Sven Richter
Hi, A user reported an error for closp which I cannot make sense of: java.lang.RuntimeException: No such var: t-cli/parse-opts, compiling:(leiningen/new/closp.clj:102:52) This is the issue: https://github.com/sveri/closp/issues/1 The code is here: https://github.com/sveri/closp/blob/master/src/

Clojurescript Light Table Setup

2015-02-20 Thread JvJ
I'm having some issues working with CLJS and Light table. I've found a few things online, but never a single end-to-end setup. Does anyone have any advice on setting up, beginning with lein, ending with repl-browser connection in light table? Thanks. -- You received this message because you

Re: Accessing branches in PersistentTreeMap / sorted-map / CLJ-1008

2015-02-20 Thread Michał Marczyk
You don't need left and right, you can literally use a sorted map / PTM that looks like {0 :a 3 :a …} as your representation and build a wrapper to query it appropriately using functions like avl/nearest, but implemented using first/(r)(sub)seq. Here's a prototype: https://github.com/michalmarczy

RE: Licensing of software products created with Clojure and related

2015-02-20 Thread Phillip Lord
Well, you have to read the license, or employ a lawyer to do so. You mostly can do what you want with Clojure under EPL. You can build proprietary products with Clojure and distribute them with or without Clojure itself. The main limitation is that you cannot distribute a modified version of Cl

Licensing of software products created with Clojure and related

2015-02-20 Thread David Christensen
clojure: I'm looking for a LISP-like programming language with a robust library and multi-platform support for open- and closed-source projects (scripts, applications, libraries, plug-ins, whatever). Clojure looks like a good possibility. It appears that Clojure itself is licensed under th

Re: Accessing branches in PersistentTreeMap / sorted-map / CLJ-1008

2015-02-20 Thread David James
Yes, exactly, you read my mind. (I'd also like to do this a sorted-map / PersistentTreeMap (nudge, nudge) -- all that is missing would be public 'left' and 'right' accessors. I don't necessarily need rank functionality.) On Friday, February 20, 2015 at 10:39:26 AM UTC-5, Michał Marczyk wrote: >

Re: Accessing branches in PersistentTreeMap / sorted-map / CLJ-1008

2015-02-20 Thread Michał Marczyk
PS. Well, I suppose you'd want to make sure that you're not getting a key that lies past the right endpoint of the map when using the nearest-based approach. On 20 February 2015 at 16:39, Michał Marczyk wrote: > Do you mean you'd like to compress > > {0 :a 1 :a 2 :a 3 :a 4 :b 5 :b 6 :c 7 :c 8

Re: Accessing branches in PersistentTreeMap / sorted-map / CLJ-1008

2015-02-20 Thread Michał Marczyk
Do you mean you'd like to compress {0 :a 1 :a 2 :a 3 :a 4 :b 5 :b 6 :c 7 :c 8 :c 9 :c} to something like {[0 1 2] :a [4 5] :b [6 7 8 9] :c} while maintaining the ability to ask for the value at 0, 1, …, 9? If so, you could represent the above as {0 :a 2 :a 4 :b 5 :b 6 :c 9 :c} (notice

Re: Accessing branches in PersistentTreeMap / sorted-map / CLJ-1008

2015-02-20 Thread David James
Thanks for your comments. I see now that I should clarify: all I really need is public access to the left and right Java methods in PTM. (So, perhaps CLJ-1008 is asking for more than I really need.) It seems to me that since Clojure's RB-Tree implementation (i.e. sorted-map = PTM), it might as

Re: Injecting html code into selmer

2015-02-20 Thread Anatoly Smolyaninov
Hello! You have strange syntax -- no `:` symbol before keyword, `render` (not `render-file`) function for html template... Try this, both works for me [selmer "0.8.0"]: (render "{{ foo-str|safe }}" {:foo-str "bold!"}) (render-file "templates/foo.djhtml" {:foo-str "bold!"}) пятница, 20 февраля

Re: Returning early from a function

2015-02-20 Thread Cedric Roussel
You may want to look at https://clojuredocs.org/clojure.core/case https://clojuredocs.org/clojure.core/cond On Friday, February 20, 2015 at 11:01:43 AM UTC+1, Cecil Westerhof wrote: > > I have a function to check the parameters of another function: > (defn params-correct-lucky-numbers >

Clojure takes all CPU and fails after 12 minutes

2015-02-20 Thread Cecil Westerhof
I have the following code: (defn params-correct-lucky-numbers ( [upto] (params-correct-lucky-numbers upto true)) ( [upto check-max] (let [max (* 10 1000 1000)] (cond (< upto 1) (do (printf "The parameter upto should at least be 1 (%d)\n" upto)

Re: Using the Undertow AJP Linstner in Immutant2

2015-02-20 Thread Jim Crossley
Cool. Submit a PR and we'll get it merged in. Thanks! Jim On Fri, Feb 20, 2015 at 4:25 AM, Eunmin Kim wrote: > Hi! > I added ajp? on immutant.web/run option to use the Undertow AJP Linstner in > Immutant2. :) > > https://github.com/eunmin/immutant/tree/support_undertow_ajp > > > -- > You receive

Re: Returning early from a function

2015-02-20 Thread Cecil Westerhof
Answering my own question. :-D 2015-02-20 11:01 GMT+01:00 Cecil Westerhof : > I have a function to check the parameters of another function: > (defn params-correct-lucky-numbers > [upto] > (let [max (* 10 1000 1000)] > (if (< upto 1) > (do > (pr

Returning early from a function

2015-02-20 Thread Cecil Westerhof
I have a function to check the parameters of another function: (defn params-correct-lucky-numbers [upto] (let [max (* 10 1000 1000)] (if (< upto 1) (do (println "The parameter upto should at least be 1") false) (if (> upt

Using the Undertow AJP Linstner in Immutant2

2015-02-20 Thread Eunmin Kim
Hi! I added ajp? on immutant.web/run option to use the Undertow AJP Linstner in Immutant2. :) https://github.com/eunmin/immutant/tree/support_undertow_ajp -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@