[GSoC] core.matrix NDArray project feature requests

2013-05-28 Thread Dmitry Groshev
Hello, Clojurians. I was selected during GSoC process to implement a core.matrix-compatible NDArray in Clojure. More info about this project can be found at [1] and [2]. However, I would be really happy to know if there are any comments, wishes or feature requests regarding that proposals (plea

Re: [GSoC] core.matrix NDArray project feature requests

2013-05-28 Thread Ambrose Bonnaire-Sergeant
First of all, congrats on the project! Could you elaborate on your mention of QuickCheck, I couldn't find it in the proposal. Thanks, Ambrose On Tue, May 28, 2013 at 4:25 PM, Dmitry Groshev wrote: > Hello, Clojurians. > > I was selected during GSoC process to implement a core.matrix-compatible

Re: [GSoC] core.matrix NDArray project feature requests

2013-05-28 Thread Dmitry Groshev
Sorry, I wasn't clear enough in my proposal. I've mentioned clojurecheck [1] in it and the possibility of extending it, because in my Erlang experience property-based testing is extremely helpful for things that operates on something pure in complicated way — exactly like core.matrix. But cloju

java.lang.Exception: Unsupported option(s) supplied: :exclude

2013-05-28 Thread ru
Dear clojure-users, Loading a file with such content: (ns ru.rules (:use protege.core rete.core :exclude [rutime]) ... I get this error message: java.lang.Exception: Unsupported option(s) supplied: :exclude at clojure.core$load_libs.doInvoke(core.clj:5408) at clojure.lang.RestFn.applyTo(Re

Re: "I don't feel the absence of a debugger, because I've learnt enough that I don't ever need a debugger."

2013-05-28 Thread Phillip Lord
Oskar Kvist writes: > Stuart Halloway said in his video Clojure in the Field ( > http://www.infoq.com/presentations/Clojure-tips) from March 1, 2013 (I > think): "I don't feel the absence of a debugger because I've learnt enough > that I don't ever need a debugger." I am very intrigued by that

Re: Knowledge derivation in core.logic?

2013-05-28 Thread Phillip Lord
Patrick Logan writes: >> Patrick Logan > writes: >> > OWL has several levels of increasingly expressive but general >> inferences. >> > Much of the domain could be represented in OWL (classes (i.e. sets), >> > instances (i.e. set membership), relationships with domains and ranges, >> > etc.),

Re: java.lang.Exception: Unsupported option(s) supplied: :exclude

2013-05-28 Thread Jim
I think it is :exclusions not :exclude... example: [uk.ac.gate/gate-core "7.1" :exclusions [[org.springframework/spring-beans]]] Jim On 28/05/13 10:42, ru wrote: Dear clojure-users, Loading a file with such content: (ns ru.rules (:use protege.core rete.core :exclude [rutime]) ..

Re: java.lang.Exception: Unsupported option(s) supplied: :exclude

2013-05-28 Thread ru
Thank you Jim. But, I mean this piece of API doc: usefunction Usage: (use & args) Like 'require, but also refers to each lib's namespace using clojure.core/refer. Use :use in the ns macro in preference to calling this directly. 'use accepts additional options in libspecs: :exclude, :only, :rena

Re: java.lang.Exception: Unsupported option(s) supplied: :exclude

2013-05-28 Thread atkaaz
Jim, that is in project.clj right? OP can use :refer and :exclude but can't pass two namespaces to :refer, just one some examples from clojure code: (ns foo.bar (:refer-clojure :exclude [ancestors printf]) (:require (clojure.contrib sql combinatorics)) (:use (my.lib this that)) (

Re: java.lang.Exception: Unsupported option(s) supplied: :exclude

2013-05-28 Thread Michael Klishin
2013/5/28 ru > Thank you Jim. But, I mean this piece of API doc: It should be (ns ru.rules (:use protege.core [rete.core :exclude [rutime]]) Unless you use Clojure 1.3, there is absolutely no reason to use :use. Use :require with :refer: (ns ru.rules (:require [protege.core :refer :

Re: java.lang.Exception: Unsupported option(s) supplied: :exclude

2013-05-28 Thread Jim
On 28/05/13 11:10, atkaaz wrote: Jim, that is in project.clj right? aaa yes :exclusions is for project.clj! I've still not fully waken up... Jim -- -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@goog

Re: java.lang.Exception: Unsupported option(s) supplied: :exclude

2013-05-28 Thread ru
Michael, Does (:require [protege.core :refer :all]) is equivalent to (:require protege.core)? вторник, 28 мая 2013 г., 13:42:25 UTC+4 пользователь ru написал: > > Dear clojure-users, > > Loading a file with such content: > > (ns ru.rules > (:use > protege.core > rete.core :exclude [rutime])

Re: java.lang.Exception: Unsupported option(s) supplied: :exclude

2013-05-28 Thread Michael Klishin
2013/5/28 ru > Does (:require [protege.core :refer :all]) is equivalent to (:require > protege.core)? No. (:require [protege.core :refer :all]) does roughly the following * Loads and compiles proteger.core * Stores it in the namespace map as proteger.core, so fn1 in it can be referred to wit

lazy sequence termination

2013-05-28 Thread Mond Ray
Hi Clojurians, I have a program which generates a lazy sequence to read ATOM feed chunks. That part works OK but now I want to only take a limited number of the chunks based on some predicate. My predicate is currently returning an empty list so I think (hope!) I am missing something simple. H

Re: Recommended SPDY client?

2013-05-28 Thread James Thornton
The guys on the SPDY dev list said Jetty and Netty now have standalone SPDY client libraries: - Jetty: http://wiki.eclipse.org/Jetty/Feature/SPDY [org.eclipse.jetty.spdy/spdy-core "9.0.3.v20130506"] [org.eclipse.jetty.spdy/spdy-client "9.0.3.v20130506"] http://git.eclipse.org/c/je

Re: Knowledge derivation in core.logic?

2013-05-28 Thread Patrick Logan
On Tuesday, May 28, 2013 2:51:51 AM UTC-7, Phillip Lord wrote: > > > > > > "Given a secret key and encrypted nonce for that key, assert the > > unencrypted nonce." > > > > What I mean is that there is no way to express this in OWL alone. This > > could be expressed in core.logic, in clojure,

Re: "I don't feel the absence of a debugger, because I've learnt enough that I don't ever need a debugger."

2013-05-28 Thread dgrnbrg
There's not much you can do to retrieve the locals around an exception with adding a Java Agent. REDL is able to get the locals around uses of redl.core/break, since it's a macro and that's an ability of macros. On Monday, May 27, 2013 10:10:39 PM UTC-4, Lee wrote: > > > On May 27, 2013, at 9:54

Re: java.lang.Exception: Unsupported option(s) supplied: :exclude

2013-05-28 Thread ru
Thank you, Michael, for the detailed and comprehensive answer. вторник, 28 мая 2013 г., 13:42:25 UTC+4 пользователь ru написал: > > Dear clojure-users, > > Loading a file with such content: > > (ns ru.rules > (:use > protege.core > rete.core :exclude [rutime]) > ... > > I get this error mess

Re: Knowledge derivation in core.logic?

2013-05-28 Thread Phillip Lord
Patrick Logan writes: > On Tuesday, May 28, 2013 2:51:51 AM UTC-7, Phillip Lord wrote: >> >> >> > >> > "Given a secret key and encrypted nonce for that key, assert the >> > unencrypted nonce." >> > >> > What I mean is that there is no way to express this in OWL alone. This >> > could be expre

Re: "I don't feel the absence of a debugger, because I've learnt enough that I don't ever need a debugger."

2013-05-28 Thread Lee Spector
On May 28, 2013, at 8:43 AM, dgrnbrg wrote: > There's not much you can do to retrieve the locals around an exception with > adding a Java Agent. REDL is able to get the locals around uses of > redl.core/break, since it's a macro and that's an ability of macros. In Common Lisp exceptions are han

Re: "I don't feel the absence of a debugger, because I've learnt enough that I don't ever need a debugger."

2013-05-28 Thread Lee Spector
On May 27, 2013, at 8:31 PM, Charles Harvey III wrote: > If you haven't tried out Light Table, it shows you the values of local > variables. It is a pretty nice feature. > I love the ideas behind LightTable and I check it out from time to time. Checking it out now, though, regarding this issu

Re: Knowledge derivation in core.logic?

2013-05-28 Thread Patrick Logan
On Tuesday, May 28, 2013 5:48:08 AM UTC-7, Phillip Lord wrote: > > One of the things that I am sort of interested in with tawny is whether > there is any value to the overlap of Clojure and OWL in the same > syntax. It would be, for example, possible to annotate a Clojure > function with the O

Re: "I don't feel the absence of a debugger, because I've learnt enough that I don't ever need a debugger."

2013-05-28 Thread Rostislav Svoboda
This might not be the proper example: If (/ 2 n) throws "Divide by zero" then "n == zero" On 28 May 2013 15:40, Lee Spector wrote: > > On May 27, 2013, at 8:31 PM, Charles Harvey III wrote: >> If you haven't tried out Light Table, it shows you the values of local >> variables. It is a pretty nic

Re: "I don't feel the absence of a debugger, because I've learnt enough that I don't ever need a debugger."

2013-05-28 Thread Lee Spector
On May 28, 2013, at 10:32 AM, Rostislav Svoboda wrote: > This might not be the proper example: If (/ 2 n) throws "Divide by > zero" then "n == zero" Well yes of course it's obvious what the problem is in this case! The point is that if the "bad" function was more complicated then might help to

Re: "I don't feel the absence of a debugger, because I've learnt enough that I don't ever need a debugger."

2013-05-28 Thread Cedric Greevey
On Tue, May 28, 2013 at 9:36 AM, Lee Spector wrote: > > On May 28, 2013, at 8:43 AM, dgrnbrg wrote: > > There's not much you can do to retrieve the locals around an exception > with adding a Java Agent. REDL is able to get the locals around uses of > redl.core/break, since it's a macro and that's

Re: "I don't feel the absence of a debugger, because I've learnt enough that I don't ever need a debugger."

2013-05-28 Thread Cedric Greevey
Huh. I just solved it. The debug exception handler has to do something a bit fancier, that's all: 1. Dig up the bytecode of the method executing the throw and copy it somewhere. 2. Unwind by one call. 3. Take the bytecode in 1, alter it to wrap the throw site in redl.core/break's macro expansion t

org.junit.Assert/assertArrayEquals massive confusion!

2013-05-28 Thread Jim - FooBar();
Hi everyone, sometimes I feel really stupid! I am currently looking at a well-known java library's tests and found this: Assert.assertArrayEquals(arrayOutput[0], arrayOutput[1], 0.01); //arrayOutput is a 2d double-array btw since I've basically wrapped this lib, I'd like to port the java tes

Re: org.junit.Assert/assertArrayEquals massive confusion!

2013-05-28 Thread Chris Jeris
It doesn't seem to be in the published javadoc, but this is an array comparison with an epsilon tolerance, which was likely added after the published javadoc was generated. 0.01 here is the maximum permitted absolute difference between each compared number. https://github.com/junit-team/junit/blo

Re: org.junit.Assert/assertArrayEquals massive confusion!

2013-05-28 Thread Jim - FooBar();
ooo thanks Chris! I was suspecting the exact same thing because I tried this: (is (= (seq (aget ready 0)) (seq (aget ready 1 and got this: expected: (= (seq (aget ready 0)) (seq (aget ready 1))) actual: (not (= (-0.5345224838248488 0.2672612419124244 0.801783725737273*1*)

Re: org.junit.Assert/assertArrayEquals massive confusion!

2013-05-28 Thread Cedric Greevey
(defn acmp [a1 a2 tolerance] (every? #(< % tolerance) (map #(Math/abs (- %1 %2)) (seq a1) (seq a2 user=> (acmp (double-array [0.01 0.7 2.2]) (double-array [0.011 0.695 2.199]) 0.01) true user=> (acmp (double-array [0.01 0.7 2.2]) (double-array [0.01

Re: org.junit.Assert/assertArrayEquals massive confusion!

2013-05-28 Thread Jim - FooBar();
aww cool! thanks Cedric :) On 28/05/13 18:02, Cedric Greevey wrote: (defn acmp [a1 a2 tolerance] (every? #(< % tolerance) (map #(Math/abs (- %1 %2)) (seq a1) (seq a2 user=> (acmp (double-array [0.01 0.7 2.2]) (double-array [0.011 0.695 2.199]) 0.01) true use

Re: org.junit.Assert/assertArrayEquals massive confusion!

2013-05-28 Thread Cedric Greevey
YW. Though, you might want to refine it a bit to support BigDecimal and avoid reflection. (defn abs [x] (cond (instance? BigDecimal x) (let [^BigDecimal x x] (.abs x)) (instance? Double x) (let [^Double x x] (Math/abs x)) (instance? Float x) (let [^Float x x]

Re: "I don't feel the absence of a debugger, because I've learnt enough that I don't ever need a debugger."

2013-05-28 Thread Warren Lynn
May I suggest that as useful as your strategies are, they cannot replace a debugger? Let's be clear about our logic before claiming "it is not much needed". Maybe YOU really don't need it, but that is different from claiming it is not needed. A debugger as good as it is cannot replace the 4 fi

user math expression evaluation

2013-05-28 Thread Brian Craft
Are there any existing libs for the evaluation of math expressions? For example, if the user enters "x + sin(y)", parse and evaluate the expression, given vectors of floats for x and y. -- -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to

Re: "I don't feel the absence of a debugger, because I've learnt enough that I don't ever need a debugger."

2013-05-28 Thread Ben Mabey
On 5/28/13 10:37 AM, Cedric Greevey wrote: Huh. I just solved it. The debug exception handler has to do something a bit fancier, that's all: 1. Dig up the bytecode of the method executing the throw and copy it somewhere. 2. Unwind by one call. 3. Take the bytecode in 1, alter it to wrap the t

Re: "I don't feel the absence of a debugger, because I've learnt enough that I don't ever need a debugger."

2013-05-28 Thread Lee Spector
On May 28, 2013, at 12:37 PM, Cedric Greevey wrote: > > I think locals clearing is simply incompatible with ever having full debug > info at an error site without anticipation of an error at that site, and with > anticipation you can put debug prints, logging, watchers, and suchlike at the > s

Re: "I don't feel the absence of a debugger, because I've learnt enough that I don't ever need a debugger."

2013-05-28 Thread Timothy Baldridge
I did a fair amount of programming in C# before switching to Clojure. I noticed an interesting fact: the more lazy (as in using lazy-seqs) and functional my code became, the more erratic the was the flow of execution. It's my personal opinion, that as these features are used more and more in a prog

Re: "I don't feel the absence of a debugger, because I've learnt enough that I don't ever need a debugger."

2013-05-28 Thread Warren Lynn
> Still miss the Elisp debugger, which is great. It's right there, in your > editing environment. It's good for debugging my own code. It's really > good for working out someone elses code. I wish I debug clojure in the > same way. It's not essential, of course. But nice. > > Phil > I miss

Re: "I don't feel the absence of a debugger, because I've learnt enough that I don't ever need a debugger."

2013-05-28 Thread Cedric Greevey
What about logging aggressively but also aggressively dumping older log entries? Keep only, say, the last 100 or 1000 entries. Something like: (def logger (atom nil)) (def max-log-entries 1000) (def log-file whatever) (defn log [msg] (swap! logger (fn [oldlog] (let [newlog (doall (t

Re: "I don't feel the absence of a debugger, because I've learnt enough that I don't ever need a debugger."

2013-05-28 Thread Ben Mabey
On 5/28/13 12:19 PM, Lee Spector wrote: On May 28, 2013, at 2:16 PM, Ben Mabey wrote: You can disable locals clearing with a compiler flag. nrepl-ritz even has helper function that will compile the given form using that flag. If you want to disable locals clearing on a project wide basis you

Re: "I don't feel the absence of a debugger, because I've learnt enough that I don't ever need a debugger."

2013-05-28 Thread Lee Spector
On May 28, 2013, at 2:16 PM, Ben Mabey wrote: > > You can disable locals clearing with a compiler flag. nrepl-ritz even has > helper function that will compile the given form using that flag. If you > want to disable locals clearing on a project wide basis you can do so with > lein's JVM opt

Re: "I don't feel the absence of a debugger, because I've learnt enough that I don't ever need a debugger."

2013-05-28 Thread Lee Spector
On May 28, 2013, at 2:38 PM, Cedric Greevey wrote: > What about logging aggressively but also aggressively dumping older log > entries? Keep only, say, the last 100 or 1000 entries. Something like: [etc.] Thanks Cedric. That does indeed seem feasible. In my applications, for example, I might a

Re: "I don't feel the absence of a debugger, because I've learnt enough that I don't ever need a debugger."

2013-05-28 Thread Lee Spector
On May 28, 2013, at 2:40 PM, Ben Mabey wrote: > > The flag is a system property: > "-Dclojure.compiler.disable-locals-clearing=true". So you can add that > string to your project.clj's :jvm-opts if you are using lein. This will, of > course, slow down your program but when I've used it in the

Re: user math expression evaluation

2013-05-28 Thread Travis Vachon
Incanter has some stuff that does this: http://data-sorcery.org/2010/05/14/infix-math/ this looks even closer to what you're looking for: https://github.com/tristan/clojure-infix On Tue, May 28, 2013 at 2:19 PM, Brian Craft wrote: > Are there any existing libs for the evaluation of math expres

Re: "I don't feel the absence of a debugger, because I've learnt enough that I don't ever need a debugger."

2013-05-28 Thread Ben Mabey
On 5/28/13 1:05 PM, Lee Spector wrote: On May 28, 2013, at 2:40 PM, Ben Mabey wrote: The flag is a system property: "-Dclojure.compiler.disable-locals-clearing=true". So you can add that string to your project.clj's :jvm-opts if you are using lein. This will, of course, slow down your progra

Re: lazy sequence termination

2013-05-28 Thread Mond Ray
Quite a few views but no bites ... what have I done wrong in asking this question? If you can't help with the problem would you please take a moment to help me understand what has put you off? Too much code not enough data? Problem too complex to grasp with the supplied info? Too dull? Am

Re: user math expression evaluation

2013-05-28 Thread Brian Craft
Thanks, I'd seen those. Incanter is jvm only, I think, which is less useful to me. clojure-infix looks dead, but maybe I can adapt it. On Tuesday, May 28, 2013 12:42:11 PM UTC-7, travis vachon wrote: > > Incanter has some stuff that does this: > > http://data-sorcery.org/2010/05/14/infix-math/

Re: Loop run until a Clojure Agent send-off is complete

2013-05-28 Thread Dan Neumann
Aw, come on. No need to squander value back out of the world. On Monday, May 27, 2013 8:02:28 PM UTC-5, Kelker Ryan wrote: > > I wrote it for fun and deleted after no one took interest. There was no > real purpose other than to see if it could be done. > > 28.05.2013, 08:33, "Plínio Balduino"

Re: lazy sequence termination

2013-05-28 Thread nchurch
Could you include the code in client/get? Not sure where that comes from and it would be helpful to run the code to see what happensno guarantees though =) On May 28, 1:05 pm, Mond Ray wrote: > Quite a few views but no bites ... what have I done wrong in asking this > question? If you can't

Re: "I don't feel the absence of a debugger, because I've learnt enough that I don't ever need a debugger."

2013-05-28 Thread Softaddicts
I maintain the strategies summarized by Stuart are a better alternative than repetitive debugging sessions because they change the core of how you are thinking about design and coding, forcing you to have a broader view about how you are doing things and preventing problems before they appear. I

is there a naming convention for the directory with java in it?

2013-05-28 Thread larry google groups
I started a project with "lein new". I had a jar file I needed to include in this project (a recommended class from a company that has an API that we are using -- it would be pointless for me to re-write their code, so I simply grabbed the class they offered and compiled it as a jar). I ended up

Re: lazy sequence termination

2013-05-28 Thread Mond Ray
Ah ... client/get is part of the standard httpclient library so it's not my code - it fetches from a url. Sorry I should have included the libraries that I used. On Tuesday, May 28, 2013 10:33:52 PM UTC+2, nchurch wrote: > > Could you include the code in client/get? Not sure where that comes >

Re: "I don't feel the absence of a debugger, because I've learnt enough that I don't ever need a debugger."

2013-05-28 Thread Lee Spector
On May 28, 2013, at 4:01 PM, Ben Mabey wrote: > > To do this I have been using nrepl-ritz's 'M-x > nrepl-ritz-break-on-exception'. If you are using emacs and haven't looked > into ritz I would highly encourage taking the time to do so. It is painless > to install these days and you can watch

Re: "I don't feel the absence of a debugger, because I've learnt enough that I don't ever need a debugger."

2013-05-28 Thread Alan Malloy
On Tuesday, May 28, 2013 1:01:46 PM UTC-7, Ben Mabey wrote: > On 5/28/13 1:05 PM, Lee Spector wrote: > > On May 28, 2013, at 2:40 PM, Ben Mabey wrote: > > The flag is a system property: > "-Dclojure.compiler.disable-locals-clearing=true". So you can add that > string to your project.clj's :

Re: lazy sequence termination

2013-05-28 Thread Michael Gardner
On May 28, 2013, at 15:05 , Mond Ray wrote: > Quite a few views but no bites ... what have I done wrong in asking this > question? If you can't help with the problem would you please take a moment > to help me understand what has put you off? It would help to post less code, to make it easier

Re: "I don't feel the absence of a debugger, because I've learnt enough that I don't ever need a debugger."

2013-05-28 Thread Cedric Greevey
And, of course, Engelberg's objection then applies again: you have to have the bug, disable locals clearing, and then try to reproduce the bug again in order to have the otherwise-cleared locals available in the debug session. Clojure just doesn't make what he asked for easy, by its nature. Design

Re: lazy sequence termination

2013-05-28 Thread Mond Ray
Thanks - I wasn't sure how much to assume so that's appreciated. I will definitely check for the correctness of the predicate vs the date - that would really be a face palm! OTOH I feel good that I'm actually writing sane Clojure code even if it is broken with my data ;-) Ray On Tuesday, 28 M

Re: "I don't feel the absence of a debugger, because I've learnt enough that I don't ever need a debugger."

2013-05-28 Thread Sean Corfield
On Tue, May 28, 2013 at 1:35 PM, Softaddicts wrote: > I came to the same conclusion as Stuart after 30+ years of coding in various > languages/assemblers and architectures. Interesting thread and I find myself in agreement with Luc here. I've been programming commercially for about 30 years and I

Re: user math expression evaluation

2013-05-28 Thread SpiderPig
You could just write this yourself. It's easier than it looks. First start with an evaluator for rpn (reverse polish notation) expressions. "x + sin(y)" in rpn would be "y sin x +". First you split that string and make it into a list. Then you can evaluate that with a few lines of code using a stac

Re: user math expression evaluation

2013-05-28 Thread Jonathan Fischer Friberg
Found this: http://www.objecthunter.net/exp4j/ Might be useful. Jonathan On Wed, May 29, 2013 at 12:45 AM, SpiderPig wrote: > You could just write this yourself. > It's easier than it looks. > First start with an evaluator for rpn (reverse polish notation) > expressions. > "x + sin(y)" in rpn w

Re: "I don't feel the absence of a debugger, because I've learnt enough that I don't ever need a debugger."

2013-05-28 Thread Lee Spector
On May 28, 2013, at 5:10 PM, Alan Malloy wrote: > > The principal problem of disabling locals-clearing is not "slowing things > down", but rather causing perfectly reasonable code to consume unbounded > memory. For example, consider: ((fn [xs] (nth xs 1e8)) (range)). With locals > clearing, th

Any reason why the name of this group is not comp.lang.clojure?

2013-05-28 Thread Seven Hong
Hi all! I recently began learning Clojure, and I like it a lot; then I found this group on google. Is there any particular reason that it's not called comp.lang.clojure? :-) But anyway, this is the official user group for Clojure, right? Many thanks! :-) Best, Seven Hong -- -- You received

lazy seq termination

2013-05-28 Thread mond
I have managed to create a function that will read an ATOM feed indefinitely and now need a way to stop it ;-) (defn fetch-atom-chunk "Returns an ATOM chunk from the feed-url" [feed-url] (:ATOM_FEED (:body (client/get feed-url {:as :json} (defn fetch-atom-feed "Returns a list of ATOM

Clojure for Map Reduce (on hadoop > 0.22)

2013-05-28 Thread Ramesh
Hi All, I want to use clojure to write map reduce tasks on Hadoop version > 0.22. I was wondering if this is possible with Stuart Sierra's clojure hadoop https://github.com/stuartsierra/clojure-hadoop If not, are there other libraries which allow me to write map-reduce jobs in clojure? -ramesh

Re: Any reason why the name of this group is not comp.lang.clojure?

2013-05-28 Thread Cedric Greevey
Names like "comp.lang.clojure" are used only for groups accessible outside of Google, using the NNTP protocol (Usenet). Google-local groups (which are instead mailing lists) don't follow that naming convention. On Tue, May 28, 2013 at 7:39 PM, Seven Hong wrote: > Hi all! > > I recently began lea

Re: Loop run until a Clojure Agent send-off is complete

2013-05-28 Thread Kelker Ryan
I'll re-write it, but I have my doubts as to why anyone would use it. It was just an experiment to see if it could be done. 29.05.2013, 05:22, "Dan Neumann" : > Aw, come on. No need to squander value back out of the world. > > On Monday, May 27, 2013 8:02:28 PM UTC-5, Kelker Ryan wrote:> I wrote

Re: "I don't feel the absence of a debugger, because I've learnt enough that I don't ever need a debugger."

2013-05-28 Thread Lee Spector
A couple more replies to comments on this thread: On May 28, 2013, at 5:50 PM, Cedric Greevey wrote: > > Clojure just doesn't make what he asked for easy, by its nature. Designing to > minimize difficulty with reproducing any observed behavior seems to be > indicated (and desirable for other r

Re: Clojure for Map Reduce (on hadoop > 0.22)

2013-05-28 Thread xumingmingv
There is also cascalog: https://github.com/nathanmarz/cascalog On 2013-5-29, at 上午7:55, Ramesh wrote: > Hi All, > > I want to use clojure to write map reduce tasks on Hadoop version > 0.22. I > was wondering if this is possible with Stuart Sierra's clojure hadoop > https://github.com/stuartsi

Re: user math expression evaluation

2013-05-28 Thread Mikera
On Wednesday, 29 May 2013 02:19:41 UTC+8, Brian Craft wrote: > Are there any existing libs for the evaluation of math expressions? For > example, if the user enters "x + sin(y)", parse and evaluate the > expression, given vectors of floats for x and y. You can evaluate expressions like this ri

Re: user math expression evaluation

2013-05-28 Thread SpiderPig
Here is some example code http://pastebin.com/HG2bWWms This allows you to evaluate infix or rpn expressions. It also demonstrates the use of eval to turn the expression into a clojure function which should give more performance. It is very simple though, so all the elements in the expressions hav

Re: [GSoC] core.matrix NDArray project feature requests

2013-05-28 Thread Ben Mabey
On Tue May 28 02:40:33 2013, Dmitry Groshev wrote: Sorry, I wasn't clear enough in my proposal. I've mentioned clojurecheck [1] in it and the possibility of extending it, because in my Erlang experience property-based testing is extremely helpful for things that operates on something pure in com

Re: "I don't feel the absence of a debugger, because I've learnt enough that I don't ever need a debugger."

2013-05-28 Thread u1204
One technique I've used in the past for debugging is to open a UDP port as a log stream and print messages to that stream. These messages can be read at any time by a telnet connection to that port. Since UDP packets that are not read just get dropped this is equivalent to writing to /dev/null exc

Re: lazy seq termination

2013-05-28 Thread Jonah Benton
Try: (defn fetch-atom-feed "Returns a list of ATOM chunks from the feed-url going back to the from-date" [feed-url] (if-let [chunk (fetch-atom-chunk feed-url)] (cons chunk (lazy-seq (fetch-atom-feed (:HREF (:PREVIOUS_LINK chunk))) On Tue, May 28, 2013 at 6:30 AM, mond wrote: >

Re: [ANN] - purnam "0.0.10" - angular.js language extensions

2013-05-28 Thread Hoàng Minh Thắng
On Saturday, May 18, 2013 11:54:55 AM UTC+7, Murtaza Husain wrote: > > Hi, > > Thanks for the project , the language extensions are fantastic ! > > One of the problems I have had in working with cljs is the compatibility > and awkward syntax in working with external js libs. This goes a long lon

Re: [ANN] - purnam "0.0.10" - angular.js language extensions

2013-05-28 Thread Hoàng Minh Thắng
> You can give ChlorineJS a try: > http://plnkr.co/edit/gist:5469561?p=preview > Please note there's currently a bug with Plunker and some versions of Firefox so in the mean time you should check it with other browsers. -- -- You received this message because you are subscribed to the Google

ANN - adi 0.1.5 (user friendly syntax for datomic)

2013-05-28 Thread zcaudate
I've pushed out a significant update for adi, along with quite a long readme @ https://github.com/zcaudate/adi Some highlights: 1. Required keys (adi/insert! ds {:account {:credits 10}});; => (throws Exception "The following keys are required: #{:account/user :account/password}") 2. Schema c

Re: ANN - adi 0.1.5 (user friendly syntax for datomic)

2013-05-28 Thread zcaudate
6. Insertion of `arbitrarily` formatted data: a - books containing users: (adi/insert! ds [{:book {:name "Charlie and the Chocolate Factory" :author "Roald Dahl" :accounts #{{:user "adi3" :password "hello3" :credits 100}

Re: [ANN] - purnam "0.0.10" - angular.js language extensions

2013-05-28 Thread zcaudate
oh cool! did you write your own compiler? On Wednesday, May 29, 2013 3:51:51 PM UTC+10, Hoàng Minh Thắng wrote: > > > You can give ChlorineJS a try: >> http://plnkr.co/edit/gist:5469561?p=preview >> > Please note there's currently a bug with Plunker and some versions of > Firefox so in the mean