Re: Do web apps need Clojure?

2013-11-18 Thread Ben Wolfson
options, visit https://groups.google.com/groups/opt_out. -- Ben Wolfson Human kind has used its intelligence to vary the flavour of drinks, which may be sweet, aromatic, fermented or spirit-based. ... Family and social life also offer numerous other occasions to consume drinks for pleasure

Re: Any elegant solutions for this problem?

2013-12-01 Thread Ben Wolfson
...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out. -- Ben Wolfson Human kind has used its intelligence to vary the flavour of drinks, which may be sweet, aromatic, fermented or spirit-based. ... Family and social life also offer numerous other occasions to consume drinks

Re: contains? and transient set

2013-12-04 Thread Ben Wolfson
because you are subscribed to the Google Groups Clojure group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out. -- Ben Wolfson Human kind has used its

Re: Advice on choosing the right data structure

2013-12-04 Thread Ben Wolfson
are subscribed to the Google Groups Clojure group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out. -- Ben Wolfson Human kind has used its intelligence

Re: Advice on choosing the right data structure

2013-12-04 Thread Ben Wolfson
and stop receiving emails from it, send an email to clojure+u...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out. -- Ben Wolfson Human kind has used its intelligence to vary the flavour of drinks, which may be sweet, aromatic, fermented or spirit-based

Re: Who is doing something worthwhile in Clojure?

2013-12-19 Thread Ben Wolfson
received this message because you are subscribed to the Google Groups Clojure group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out. -- Ben Wolfson Human

Re: How to go about 'proving' why dynamically typed languages are better.

2013-12-23 Thread Ben Wolfson
/groups/opt_out. -- Ben Wolfson Human kind has used its intelligence to vary the flavour of drinks, which may be sweet, aromatic, fermented or spirit-based. ... Family and social life also offer numerous other occasions to consume drinks for pleasure. [Larousse, Drink entry] -- -- You received

Re: How to go about 'proving' why dynamically typed languages are better.

2013-12-23 Thread Ben Wolfson
languages, if I understand it.) -- Ben Wolfson Human kind has used its intelligence to vary the flavour of drinks, which may be sweet, aromatic, fermented or spirit-based. ... Family and social life also offer numerous other occasions to consume drinks for pleasure. [Larousse, Drink entry] -- -- You

Re: Eastwood lint tools - some Qs

2014-01-13 Thread Ben Wolfson
...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out. -- Ben Wolfson Human kind has used its intelligence to vary the flavour of drinks, which may be sweet, aromatic, fermented or spirit-based. ... Family and social life also offer numerous other occasions to consume drinks

Re: clojure.core/reduce calls (f) if given a reducible coll and no init value

2014-01-24 Thread Ben Wolfson
IPersistentSet has to promise to uphold? -- Ben Wolfson Human kind has used its intelligence to vary the flavour of drinks, which may be sweet, aromatic, fermented or spirit-based. ... Family and social life also offer numerous other occasions to consume drinks for pleasure. [Larousse, Drink entry

Re: weird bug with cljs.core.async + macros

2014-02-18 Thread Ben Wolfson
bare symbols. -- Ben Wolfson Human kind has used its intelligence to vary the flavour of drinks, which may be sweet, aromatic, fermented or spirit-based. ... Family and social life also offer numerous other occasions to consume drinks for pleasure. [Larousse, Drink entry] -- You received

Re: 'Reduced' and logic functions

2014-02-19 Thread Ben Wolfson
overlooking some very basic argument against them (I'm pretty good at that) ?* The result wouldn't return faster if the input is an infinite list. -- Ben Wolfson Human kind has used its intelligence to vary the flavour of drinks, which may be sweet, aromatic, fermented or spirit-based

Re: generators...?

2014-03-26 Thread Ben Wolfson
to the Google Groups Clojure group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout. -- Ben Wolfson Human kind has used its intelligence to vary the flavour

Re: generators...?

2014-03-26 Thread Ben Wolfson
it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout. -- Ben Wolfson Human kind has used its intelligence to vary the flavour of drinks, which may be sweet, aromatic, fermented or spirit-based. ... Family and social life also

Re: remove first?

2014-04-02 Thread Ben Wolfson
On Wed, Apr 2, 2014 at 1:36 PM, Chris Lappe chris.la...@gmail.com wrote: Wouldn't just calling rest on your collection do what you want? (remove-first #(= % 3) [1 2 3 4 3 5]) should return [1 2 4 3 5]. -- Ben Wolfson Human kind has used its intelligence to vary the flavour of drinks, which

Re: Quotient *and* Remainder

2014-04-09 Thread Ben Wolfson
. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout. -- Ben Wolfson Human kind has used its intelligence to vary the flavour of drinks, which may be sweet, aromatic

special case in binding vector syntax for function definitions?

2013-01-25 Thread Ben Wolfson
? -- Ben Wolfson Human kind has used its intelligence to vary the flavour of drinks, which may be sweet, aromatic, fermented or spirit-based. ... Family and social life also offer numerous other occasions to consume drinks for pleasure. [Larousse, Drink entry] -- -- You received this message because

Re: special case in binding vector syntax for function definitions?

2013-01-25 Thread Ben Wolfson
, but the remaining arguments get accumulated in y regardless. They even get accumulated in a map in ((fn [ {:as m}] m) :x 1 :y 2). -- Ben Wolfson Human kind has used its intelligence to vary the flavour of drinks, which may be sweet, aromatic, fermented or spirit-based. ... Family and social life

ANN: babbage 1.0.0, a library for easily gathering data and computing summary measures in a declarative way

2013-02-01 Thread Ben Wolfson
in advance of running the computation for a given input, either at runtime or at compile time. Please see the README at the github repo for more details. Enjoy! -- Ben Wolfson Human kind has used its intelligence to vary the flavour of drinks, which may be sweet, aromatic, fermented or spirit-based

Re: ANN: babbage 1.0.0, a library for easily gathering data and computing summary measures in a declarative way

2013-02-02 Thread Ben Wolfson
to being very brittle). It's much simpler to have a bunch of functions defined with defgraphfn that declare what they need to do their own work and what they provide themselves, supply a few initial values, and let run-graph figure out what has to be run before what. -- Ben Wolfson Human kind has

Re: ANN: babbage 1.0.0, a library for easily gathering data and computing summary measures in a declarative way

2013-02-04 Thread Ben Wolfson
, rather than forcing people to choose and end up with separate silos. I'd love to discuss this (and hear your comments on our implementation) here or off-list. Agreed that this would be nice! I'll look through how you're doing it; hopefully convergence will be easy. -- Ben Wolfson Human kind

Re: [ANN] Morph v0.1.0 Monads friends: pure functions, less boilerplate

2013-02-06 Thread Ben Wolfson
this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out. -- Ben Wolfson Human kind has used its intelligence to vary the flavour of drinks, which may be sweet, aromatic, fermented

Re: [ANN] Morph v0.1.0 Monads friends: pure functions, less boilerplate

2013-02-06 Thread Ben Wolfson
this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out. -- Ben Wolfson Human kind has used its intelligence to vary the flavour of drinks, which may be sweet, aromatic, fermented

Re: Can a protocol method have the same name as a clojure.core function?

2013-02-07 Thread Ben Wolfson
this message because you are subscribed to the Google Groups Clojure group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out. -- Ben Wolfson Human kind

something in the nrepl/nrepl.el/ac-nrepl chain breaks if it can't resolve the symbol get

2013-02-08 Thread Ben Wolfson
a gigantic traceback ultimately complaining that the symbol get can't be resolved. Get doesn't have to resolve to clojure.core/get for autocomplete to work: adding (def get 1) solves the problem. -- Ben Wolfson Human kind has used its intelligence to vary the flavour of drinks, which may be sweet

Readers macros executors, oh my

2013-02-08 Thread Ben Wolfson
that the reader was involved at all---and especially that the problem *only* cropped up when using executors. What's going on? Is it sending a textual representation of the code to the executor, which then has to read it back in? -- Ben Wolfson Human kind has used its intelligence to vary the flavour

Re: Easier imperative-style programming

2013-02-11 Thread Ben Wolfson
...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out. -- Ben Wolfson Human kind has used its intelligence to vary the flavour of drinks, which may be sweet, aromatic, fermented or spirit-based. ... Family and social life also offer numerous other occasions to consume drinks

Re: STM in Clojure vs Haskell, why no retry or orElse?

2013-02-19 Thread Ben Wolfson
we've been executing, but detecting a case within an otherwise successful transaction---where successful means we can read and write to all these refs with no problem---where we actually want to start over and wait until some values have changed. -- Ben Wolfson Human kind has used its intelligence

Re: Like if, but it composes functions

2013-02-19 Thread Ben Wolfson
. For more options, visit https://groups.google.com/groups/opt_out. -- Ben Wolfson Human kind has used its intelligence to vary the flavour of drinks, which may be sweet, aromatic, fermented or spirit-based. ... Family and social life also offer numerous other occasions to consume drinks

Re: Why not when-let* ?

2013-02-27 Thread Ben Wolfson
-let* (with your preferred semantics) can be defined in terms of existing constructs. It doesn't need to be primitive the way fn* is. -- Ben Wolfson Human kind has used its intelligence to vary the flavour of drinks, which may be sweet, aromatic, fermented or spirit-based. ... Family and social

lazy seqs overflow the stack?

2013-03-02 Thread Ben Wolfson
expected it to work. -- Ben Wolfson Human kind has used its intelligence to vary the flavour of drinks, which may be sweet, aromatic, fermented or spirit-based. ... Family and social life also offer numerous other occasions to consume drinks for pleasure. [Larousse, Drink entry] -- -- You

Re: A forum for Clojure...?

2013-03-05 Thread Ben Wolfson
On Tue, Mar 5, 2013 at 11:21 AM, BJG145 benmagicf...@gmail.com wrote: Hmm, I'm Googling to find a good example. Haskell forums...nope, rubbish. The haskell reddit is very active. -- Ben Wolfson Human kind has used its intelligence to vary the flavour of drinks, which may be sweet, aromatic

Re: Exception propagation design in Clojure web APIs.

2013-03-20 Thread Ben Wolfson
silly to argue that since he makes *routine* use of exceptions, his implementation is flawed. -- Ben Wolfson Human kind has used its intelligence to vary the flavour of drinks, which may be sweet, aromatic, fermented or spirit-based. ... Family and social life also offer numerous other occasions

Re: ANN: Morph 0.2.0, state+error-handling with pure functions

2013-03-20 Thread Ben Wolfson
the monad laws occasionally: morph does for both Either and Maybe, and algo.monads does for Maybe. -- Ben Wolfson Human kind has used its intelligence to vary the flavour of drinks, which may be sweet, aromatic, fermented or spirit-based. ... Family and social life also offer numerous other

Re: LoL which style for Clojure

2013-03-23 Thread Ben Wolfson
where neither is a constant. -- Ben Wolfson Human kind has used its intelligence to vary the flavour of drinks, which may be sweet, aromatic, fermented or spirit-based. ... Family and social life also offer numerous other occasions to consume drinks for pleasure. [Larousse, Drink entry

Re: cannot get more than 94 fibonacci numbers - integer overflow

2013-03-25 Thread Ben Wolfson
Long/MAX_VALUE, so it overflows. It is using longs. -- Ben Wolfson Human kind has used its intelligence to vary the flavour of drinks, which may be sweet, aromatic, fermented or spirit-based. ... Family and social life also offer numerous other occasions to consume drinks for pleasure. [Larousse

Re: cannot get more than 94 fibonacci numbers - integer overflow

2013-03-25 Thread Ben Wolfson
On Mon, Mar 25, 2013 at 8:22 AM, Ben Wolfson wolf...@gmail.com wrote: On Mon, Mar 25, 2013 at 8:05 AM, Jim foo.bar jimpil1...@gmail.com wrote: Since Clojure prefers longs to ints and since I'm not using any type hints, I don't understand why I get an integer overflow... In the traceback I

Re: Sweet-expressions

2013-03-25 Thread Ben Wolfson
--- You received this message because you are subscribed to the Google Groups Clojure group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out. -- Ben Wolfson

Re: Attempt at rethrow macro

2013-04-01 Thread Ben Wolfson
, visit https://groups.google.com/groups/opt_out. -- Ben Wolfson Human kind has used its intelligence to vary the flavour of drinks, which may be sweet, aromatic, fermented or spirit-based. ... Family and social life also offer numerous other occasions to consume drinks for pleasure. [Larousse

Re: Attempt at rethrow macro

2013-04-01 Thread Ben Wolfson
or so primitive binding forms. (In that case the macroexpansion was only done for ease of investigating the forms, and the un-expanded versions were what were interpolated into the return value of the macro, but that's beside the point; a macro *can* expand its arguments.) -- Ben Wolfson Human

returning to near where you started with clojure.zip/remove

2013-04-02 Thread Ben Wolfson
more sensible. -- Ben Wolfson Human kind has used its intelligence to vary the flavour of drinks, which may be sweet, aromatic, fermented or spirit-based. ... Family and social life also offer numerous other occasions to consume drinks for pleasure. [Larousse, Drink entry] -- -- You received

Re: Analog to Scheme's partition in Clojure?

2013-04-04 Thread Ben Wolfson
55 56 57 58 59 60 61 62 63 41 user (nth (first r) 20) 40 -- Ben Wolfson Human kind has used its intelligence to vary the flavour of drinks, which may be sweet, aromatic, fermented or spirit-based. ... Family and social life also offer numerous other occasions to consume drinks for pleasure

ANN: monads 0.1.0, YA monads lib for clojure

2013-04-04 Thread Ben Wolfson
, demonstrating the state, writer, maybe, and error monads: https://github.com/bwo/monads/wiki/An-expression-evaluator Feedback welcome! -- Ben Wolfson Human kind has used its intelligence to vary the flavour of drinks, which may be sweet, aromatic, fermented or spirit-based. ... Family and social

Re: core.logic: Database context monad

2013-04-05 Thread Ben Wolfson
then it *is* broken, pretty much by definition, Is it a matter of definition that if you try to follow a link and can't, the fault lies with the link, and not with anything on your end? -- Ben Wolfson Human kind has used its intelligence to vary the flavour of drinks, which may be sweet, aromatic

Re: Opinions on Equality Semantics

2013-04-08 Thread Ben Wolfson
] (Perverse?. (.b p) (.a p))) #'user/f user (= (-Perverse? 1 2) (-Perverse? 1 4)) true user (= (f (-Perverse? 1 2)) (f (-Perverse? 1 4))) false user -- Ben Wolfson Human kind has used its intelligence to vary the flavour of drinks, which may be sweet, aromatic, fermented or spirit-based. ... Family

Re: - operator and monads

2013-04-14 Thread Ben Wolfson
as a regular function): user= (defn -* [a cs] ((apply comp (reverse cs)) a)) #'user/-* user= (-* 3 (make-adder 4) println) 7 nil user= (-* [1 2 3] (partial map inc) set #(contains? % 4)) true -- Ben Wolfson Human kind has used its intelligence to vary the flavour of drinks, which may be sweet, aromatic

Re: For bubble-sort, why this tail-recursive version is even slower than the linear-recursive one?

2013-04-19 Thread Ben Wolfson
. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out. -- Ben Wolfson Human kind has used its intelligence to vary the flavour of drinks, which may be sweet

Re: Something like cond, but with test-fns

2013-04-20 Thread Ben Wolfson
a single value. user= (defn app-p [p v] (p v)) #'user/app-p user= (condp app-p 3 #_=even? (println even) #_=odd? (println odd)) odd nil user= -- Ben Wolfson Human kind has used its intelligence to vary the flavour of drinks, which may be sweet, aromatic, fermented or spirit-based

Re: ANN How To Make Your Open Source Project Awesome (or: Not Suck)

2013-04-20 Thread Ben Wolfson
will you do? Hold on to your receipts? Log mileage in your car? Compare being asked to explain what you do today. -- Ben Wolfson Human kind has used its intelligence to vary the flavour of drinks, which may be sweet, aromatic, fermented or spirit-based. ... Family and social life also offer

Re: ANN How To Make Your Open Source Project Awesome (or: Not Suck)

2013-04-20 Thread Ben Wolfson
, what you did, and why I care. My point was that most people will do the same (provide documents vs. contextualize the actions). -- Ben Wolfson Human kind has used its intelligence to vary the flavour of drinks, which may be sweet, aromatic, fermented or spirit-based. ... Family and social life

Re: Parallel let form

2013-04-27 Thread Ben Wolfson
://groups.google.com/groups/opt_out. -- Ben Wolfson Human kind has used its intelligence to vary the flavour of drinks, which may be sweet, aromatic, fermented or spirit-based. ... Family and social life also offer numerous other occasions to consume drinks for pleasure. [Larousse, Drink entry] -- -- You

Re: Parallel let form

2013-04-27 Thread Ben Wolfson
and refers to the earlier binding, and the two expressions can't be evaluated in parallel. On Sat, Apr 27, 2013 at 8:59 AM, Ben Wolfson wolf...@gmail.com wrote: guv is broken if your let form introduces bindings that depend on earlier bindings: user= (plet [a 2 b a] b) CompilerException

Re: Parallel let form

2013-04-27 Thread Ben Wolfson
at Prismatic's graph library, it does what you've described above in a slightly different way. Link: https://github.com/Prismatic/plumbing On Sun, Apr 28, 2013 at 1:04 AM, Ben Wolfson wolf...@gmail.com wrote: It's not too hard, though, to write a plet form that first does some analysis on the bindings

Re: Understanding unmatched parenthesis in read-string

2013-04-29 Thread Ben Wolfson
receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out. -- Ben Wolfson Human kind has used its intelligence to vary the flavour of drinks, which may be sweet, aromatic, fermented or spirit-based

Re: Understanding unmatched parenthesis in read-string

2013-04-29 Thread Ben Wolfson
. -- Ben Wolfson Human kind has used its intelligence to vary the flavour of drinks, which may be sweet, aromatic, fermented or spirit-based. ... Family and social life also offer numerous other occasions to consume drinks for pleasure. [Larousse, Drink entry] -- -- You received this message

Re: Understanding unmatched parenthesis in read-string

2013-04-29 Thread Ben Wolfson
On Mon, Apr 29, 2013 at 3:21 PM, noahlz nzuc...@gmail.com wrote: I'm guessing vectors are safer than lists for passing to eval? They're equally unsafe. -- Ben Wolfson Human kind has used its intelligence to vary the flavour of drinks, which may be sweet, aromatic, fermented or spirit-based

Re: More idiomatic way to use map like this?

2013-05-02 Thread Ben Wolfson
. -- Ben Wolfson Human kind has used its intelligence to vary the flavour of drinks, which may be sweet, aromatic, fermented or spirit-based. ... Family and social life also offer numerous other occasions to consume drinks for pleasure. [Larousse, Drink entry] -- -- You received this message because

Re: Stackoverflow on a function listing files in a directory recursively

2013-05-20 Thread Ben Wolfson
from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out. -- Ben Wolfson Human kind has used its intelligence to vary the flavour of drinks, which may be sweet, aromatic

Re: How to: reduce boolean operations?

2013-05-22 Thread Ben Wolfson
, but it's really designed to be given forms. The fact that booleans evaluate to themselves is irrelevant, and if it were relevant, and wouldn't work on forms in general. -- Ben Wolfson Human kind has used its intelligence to vary the flavour of drinks, which may be sweet, aromatic, fermented

Re: regular expressions how-to: recognize lines?

2013-05-29 Thread Ben Wolfson
it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out. -- Ben Wolfson Human kind has used its intelligence to vary the flavour of drinks, which may be sweet, aromatic, fermented or spirit-based. ... Family and social life

Re: idiot question about macros

2013-06-07 Thread Ben Wolfson
On Fri, Jun 7, 2013 at 12:30 PM, David Pollak feeder.of.the.be...@gmail.com wrote: On Fri, Jun 7, 2013 at 11:14 AM, Ben Wolfson wolf...@gmail.com wrote: The macro (which IMO is terrible and shouldn't be emulated) Why do you think the macro is terrible? It's unnecessarily unhygienic

Re: [ANN] if-and

2013-06-10 Thread Ben Wolfson
)) #'user/if-and* user (if-and* false false?) false user (if-and* false nil?) nil -- Ben Wolfson Human kind has used its intelligence to vary the flavour of drinks, which may be sweet, aromatic, fermented or spirit-based. ... Family and social life also offer numerous other occasions to consume

Re: [ANN] if-and

2013-06-10 Thread Ben Wolfson
at 4:31 PM, Ben Wolfson wolf...@gmail.com wrote: On Mon, Jun 10, 2013 at 1:20 PM, Steven Degutis sbdegu...@gmail.comwrote: Sometimes I've wanted a function that takes a value and a bunch of tests, and returns it if it passes every test, otherwise nil. So I wrote if-and: (if-and foo

Re: (merge) = nil

2012-08-29 Thread Ben Wolfson
On Wed, Aug 29, 2012 at 9:41 AM, Joop Kiefte iko...@gmail.com wrote: An empty sequence is equal to nil. How so? user (some #(= % nil) ['() [] {}]) nil -- Ben Wolfson Human kind has used its intelligence to vary the flavour of drinks, which may be sweet, aromatic, fermented or spirit-based

Re: Will this cause stack overflow?

2012-08-29 Thread Ben Wolfson
://groups.google.com/group/clojure?hl=en -- Ben Wolfson Human kind has used its intelligence to vary the flavour of drinks, which may be sweet, aromatic, fermented or spirit-based. ... Family and social life also offer numerous other occasions to consume drinks for pleasure. [Larousse, Drink entry

Re: using take-while with pred function that has state

2012-09-03 Thread Ben Wolfson
that would otherwise not be raised. -- Ben Wolfson Human kind has used its intelligence to vary the flavour of drinks, which may be sweet, aromatic, fermented or spirit-based. ... Family and social life also offer numerous other occasions to consume drinks for pleasure. [Larousse, Drink entry] -- You

Re: using take-while with pred function that has state

2012-09-03 Thread Ben Wolfson
be insane, but if pred is free of side-effects (and computing the elements of the collection is also free of side-effects) it would be correct. -- Ben Wolfson Human kind has used its intelligence to vary the flavour of drinks, which may be sweet, aromatic, fermented or spirit-based. ... Family

Re: using take-while with pred function that has state

2012-09-04 Thread Ben Wolfson
important isn't that pred be free of side-effects sans phrase, but that the order pred is called on the elements of call not matter. If pred is pure, then the condition is met, but pred can have side-effects while still meeting that condition. -- Ben Wolfson Human kind has used its intelligence

Re: maplist for core?

2012-09-30 Thread Ben Wolfson
. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en -- Ben Wolfson Human kind has used its intelligence to vary the flavour of drinks, which may be sweet, aromatic, fermented or spirit

Re: performance in versions = 1.4.0

2012-10-02 Thread Ben Wolfson
options, visit this group at http://groups.google.com/group/clojure?hl=en -- Ben Wolfson Human kind has used its intelligence to vary the flavour of drinks, which may be sweet, aromatic, fermented or spirit-based. ... Family and social life also offer numerous other occasions to consume drinks

== is not transitive?

2012-10-04 Thread Ben Wolfson
user [(== 0 0.0) (== 0.0 0.0M) (== 0.0M 0)] [true true false] user [(== 0 0.0 0.0M) (== 0 0.0M 0.0) (== 0.0 0 0.0M) (== 0.0 0.0M 0) (== 0.0M 0.0 0) (== 0.0M 0 0.0)] [true false false false true false] -- Ben Wolfson Human kind has used its intelligence to vary the flavour of drinks, which may

Re: == is not transitive?

2012-10-05 Thread Ben Wolfson
by this. Transitivity means that for all x, y, and z, (Fxy Fyz) = Fxz. But there are values of x, y, and z for which that does not hold. -- Ben Wolfson Human kind has used its intelligence to vary the flavour of drinks, which may be sweet, aromatic, fermented or spirit-based. ... Family and social life

Re: apply: increase performance by 60% for fixed length

2012-10-07 Thread Ben Wolfson
[_ 100] (t Elapsed time: 2375.503756 msecs nil -- Ben Wolfson Human kind has used its intelligence to vary the flavour of drinks, which may be sweet, aromatic, fermented or spirit-based. ... Family and social life also offer numerous other occasions to consume drinks for pleasure. [Larousse

Re: apply: increase performance by 60% for fixed length

2012-10-07 Thread Ben Wolfson
of dispatching on length. Sure, but that's a different reason for finding applyn silly than the one you initially gave, which was that one could bypass calling apply altogether and just write (+ 1 2 ...). -- Ben Wolfson Human kind has used its intelligence to vary the flavour of drinks, which may

Re: apply: increase performance by 60% for fixed length

2012-10-07 Thread Ben Wolfson
(fn[](apply + '(1 2 3 4 5 6 7 8 9 10)))] (time(dotimes [_ 100] (t Elapsed time: 832.403941 msecs nil clojure-test.core (let[t(fn[](applyn 10 + '(1 2 3 4 5 6 7 8 9 10)))] (time(dotimes [_ 100] (t Elapsed time: 368.181313 msecs nil -- Ben Wolfson Human kind has used its

Re: functional approach to algorithm

2012-10-09 Thread Ben Wolfson
be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en -- Ben Wolfson Human kind has used its intelligence to vary the flavour of drinks, which may

Re: What is this function?

2012-10-09 Thread Ben Wolfson
))) ([a b c args] (cons a (cons b (cons c args ([a b c d more] (cons a (cons b (cons c (cons d (apply+ list+ more))) #'user/list+ user (list+ 1 2 3 4 5 [6 7] [8 9]) (1 2 3 4 5 [6 7] 8 9) list+ is slower than list*, though. -- Ben Wolfson Human kind has used its intelligence to vary

Re: Replacing nested let statements with assignments

2012-10-18 Thread Ben Wolfson
before you start printing any of the values. -- Ben Wolfson Human kind has used its intelligence to vary the flavour of drinks, which may be sweet, aromatic, fermented or spirit-based. ... Family and social life also offer numerous other occasions to consume drinks for pleasure. [Larousse, Drink

Re: Replacing nested let statements with assignments

2012-10-18 Thread Ben Wolfson
options, visit this group at http://groups.google.com/group/clojure?hl=en -- Ben Wolfson Human kind has used its intelligence to vary the flavour of drinks, which may be sweet, aromatic, fermented or spirit-based. ... Family and social life also offer numerous other occasions to consume drinks

Re: let in the middle of thread-first

2012-10-25 Thread Ben Wolfson
Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en -- Ben Wolfson Human kind has used

Re: monads

2012-10-26 Thread Ben Wolfson
, that the chaining would go h(g(f(x)), but it's not as if that helps, unless the types work out like: b ~ m c d ~ m e in which case f = g = h :: a - j works fine (assuming j is a monadic value). But as a general matter I don't see how monadic composition solves the problem. -- Ben Wolfson Human kind has

Re: Proposal/request: Give clojure.core/conj a unary implementation

2012-11-03 Thread Ben Wolfson
this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en -- Ben Wolfson Human kind has used its intelligence to vary the flavour of drinks, which may be sweet, aromatic, fermented or spirit-based. ... Family

Re: [core.logic] Type inference examples

2012-11-07 Thread Ben Wolfson
+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en -- Ben Wolfson Human kind has used its intelligence to vary the flavour of drinks, which may be sweet, aromatic, fermented or spirit-based. ... Family and social life also offer

list of special forms that introduce bindings?

2012-11-07 Thread Ben Wolfson
Is there a list of the special forms that can introduce names (fn*, let*, catch ...)? (keys clojure.lang.Compiler/specials) gives a list of all the special forms, but not all of them introduce new bindings. -- Ben Wolfson Human kind has used its intelligence to vary the flavour of drinks, which

why no : for cond?

2012-11-08 Thread Ben Wolfson
A message in early 2010 notes that there had been some discussion of adding support for : to cond, but I suppose nothing came of that---does anyone know why or if it's still something that might happen? -- Ben Wolfson Human kind has used its intelligence to vary the flavour of drinks, which may

Re: why no : for cond?

2012-11-08 Thread Ben Wolfson
/ -- Ben Wolfson Human kind has used its intelligence to vary the flavour of drinks, which may be sweet, aromatic, fermented or spirit-based. ... Family and social life also offer numerous other occasions to consume drinks for pleasure. [Larousse, Drink entry] -- You received this message because you

Macro not being expanded?

2012-11-27 Thread Ben Wolfson
) is not: user (macroexpand-1 '(g 2 3)) (user/try* 2 3 (catch [java.lang.Exception java.lang.AssertionError] e__45530__auto__ 6)) user (macroexpand-1 *1) (try 2 3 (catch [java.lang.Exception java.lang.AssertionError] e__45530__auto__ 6)) What's going on? Where'd my try* go? -- Ben Wolfson Human kind has

Re: Macro not being expanded?

2012-11-27 Thread Ben Wolfson
ah, ok. thanks. On Tue, Nov 27, 2012 at 7:03 PM, Stephen Compall stephen.comp...@gmail.com wrote: On Tue, 2012-11-27 at 10:34 -0800, Ben Wolfson wrote: What's going on? Where'd my try* go? try* isn't general enough to accept some macroexpansions, because list? is not the predicate you want

Re: Clojure Recursion (loop-recur) Questions

2012-11-27 Thread Ben Wolfson
a procedure is called from tail position, so it would seem to be used pervasively in languages that have general TCO. -- Ben Wolfson Human kind has used its intelligence to vary the flavour of drinks, which may be sweet, aromatic, fermented or spirit-based. ... Family and social life also offer numerous

Re: Proposed change to let- syntax

2012-11-30 Thread Ben Wolfson
the transformations syntactically with their tests. -- Ben Wolfson Human kind has used its intelligence to vary the flavour of drinks, which may be sweet, aromatic, fermented or spirit-based. ... Family and social life also offer numerous other occasions to consume drinks for pleasure. [Larousse, Drink

Re: Proposed change to let- syntax

2012-11-30 Thread Ben Wolfson
pred args) (apply f args) (apply identity args Jay's example would then be (- x ((conditionalize number? str)) (conditionalize string? count))). -- Ben Wolfson Human kind has used its intelligence to vary the flavour of drinks, which may be sweet, aromatic, fermented or spirit-based. ... Family

Re: (def some? (comp not nil? some))

2012-12-02 Thread Ben Wolfson
) or false (as 'some?' would). ('keep', for instance, unlike 'filter', discriminates between nil and false.) -- Ben Wolfson Human kind has used its intelligence to vary the flavour of drinks, which may be sweet, aromatic, fermented or spirit-based. ... Family and social life also offer numerous other

Re: Decomplecting if

2012-12-08 Thread Ben Wolfson
new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en -- Ben Wolfson Human kind has used its intelligence to vary

Re: why is nth called here?

2012-12-11 Thread Ben Wolfson
...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en -- Ben Wolfson Human kind has used its intelligence to vary the flavour of drinks, which may be sweet, aromatic, fermented or spirit-based. ... Family and social life also offer numerous other

way to test if a coll is a record?

2012-12-12 Thread Ben Wolfson
be overkill.) So: Q1: is this a bug in walk? Q2: is there a way to tell if something is an instance of a class created with defrecord? -- Ben Wolfson Human kind has used its intelligence to vary the flavour of drinks, which may be sweet, aromatic, fermented or spirit-based. ... Family and social life

Re: Tail call in multi method?

2012-12-17 Thread Ben Wolfson
a function (that the user of the multimethod would `trampoline` through): Also as long as you don't want to return a function from the multimethod, no? -- Ben Wolfson Human kind has used its intelligence to vary the flavour of drinks, which may be sweet, aromatic, fermented or spirit-based. ... Family

Re: Use repeat with a function argument

2012-12-24 Thread Ben Wolfson
with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en -- Ben Wolfson Human kind has used its intelligence to vary the flavour of drinks, which may be sweet

Re: list* not returning a list

2012-12-26 Thread Ben Wolfson
to tell what one's got on one's hands. -- Ben Wolfson Human kind has used its intelligence to vary the flavour of drinks, which may be sweet, aromatic, fermented or spirit-based. ... Family and social life also offer numerous other occasions to consume drinks for pleasure. [Larousse, Drink entry

Re: list* not returning a list

2012-12-27 Thread Ben Wolfson
is IPersistentStack. Why not implement it? This seems very weird to me: (list? (cons 1 '())) false Especially since: (list? (empty (cons 1 '( true making list? true of cons cells would presumably also eliminate the need for those awkward (apply list ...)s in, e.g., clojure.walk/walk. -- Ben Wolfson

Re: list* not returning a list

2012-12-27 Thread Ben Wolfson
-- Ben Wolfson Human kind has used its intelligence to vary the flavour of drinks, which may be sweet, aromatic, fermented or spirit-based. ... Family and social life also offer numerous other occasions to consume drinks for pleasure. [Larousse, Drink entry] -- You received this message because you

  1   2   3   >