On 8/8/12 10:48 AM, Brian Marick wrote:
I'm looking for medium-scale examples of using function-generating functions.
I'm doing it because examples like this:
(def make-incrementer
(fn [increment]
(fn [x] (+ increment x
... or this:
(def incish (partial map + [100 200 300]))
On Wed, Aug 08, 2012 at 08:00:26PM -0600, Jim Weirich wrote:
>
> On Aug 8, 2012, at 1:50 PM, Timothy Baldridge wrote:
>
> >
> > >>I'm looking for medium-scale examples of using function-generating
> > >>functions.
> >
> >
> > I'm not sure if this is exactly what you're looking for, but this
> I don't think it's possible to get that error if you have a top-level
> project.clj file, but if you send a tarball of the project to
> phil.hagelb...@heroku.com I can take a look.
Thanks Phil, I sent you a mail.
Shantanu
--
You received this message because you are subscribed to the Google
G
Maybe SICP's simulator of digital circuits will provide some inspiration. I
know when I read this I was deeply awed by what HOFs can do. Maybe
Clojure's zippers would be good too?
On Wednesday, August 8, 2012 12:48:23 PM UTC-4, Brian Marick wrote:
>
> I'm looking for medium-scale examples of usi
On Wed, Aug 8, 2012 at 5:58 PM, Andreas Kostler
wrote:
>> Given that regular Clojure users cannot submit a pull request.
> Really? That's what I did...
Technically you can _submit_ pull requests but Clojure and contrib
projects cannot _accept_ them. You will generally see the pull request
closed
On Aug 8, 2012, at 1:50 PM, Timothy Baldridge wrote:
>
> >>I'm looking for medium-scale examples of using function-generating
> >>functions.
>
>
> I'm not sure if this is exactly what you're looking for, but this sort of
> thing is pretty cool:
>
> (defn make-point [x y]
> (fn [member]
On Aug 8, 2012, at 2:50 PM, Timothy Baldridge wrote:
> I'm not sure if this is exactly what you're looking for, but this sort of
> thing is pretty cool:
>
> (defn make-point [x y]
> (fn [member]
> (cond (= member :x) x
> (= member :y) y)))
>
I actually have a whole chapter
> Given that regular Clojure users cannot submit a pull request.
Really? That's what I did...
On 9 August 2012 06:56, Michael Klishin wrote:
> Meikel Brandmeyer:
>
> > This does not necessarily include a specific version.
> > “Instructions for including the library as a dependency in Maven /
>
Using serializable works fine for me. I find its code very instructive as
well. Thanks!
On Wed, Aug 8, 2012 at 7:18 PM, Alan Malloy wrote:
> (println (with-out-str (foo))) is silly - it's the same as (do (foo) nil),
> which in many cases (eg, in this one) is the same as just (foo).
>
>
> On Wedn
On Wed, Aug 8, 2012 at 11:48 AM, Brian Marick wrote:
> I'm looking for medium-scale examples of using function-generating functions.
>
> Such examples might be ones that ... use closures to avoid the need to have
> some particular argument passed from function to function (which looks like
> the
On Wed, Aug 8, 2012 at 1:58 PM, Shantanu Kumar wrote:
> When I try to run `git push heroku master` I am getting this:
>
> -> Heroku receiving push
> ! Heroku push rejected, no Cedar-supported app detected
>
> Can anybody help me with how to diagnose the problem? Is there a
> checklist I c
Meikel Brandmeyer:
> This does not necessarily include a specific version.
> “Instructions for including the library as a dependency in Maven / Leiningen”
Arguing just for the sake of it? Clojure learning curve is already steep enough.
Lets make it even steeper by asking people to figure out UIs
trampolines is a slightly different example.
--
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 uns
Hi,
When I try to run `git push heroku master` I am getting this:
-> Heroku receiving push
! Heroku push rejected, no Cedar-supported app detected
Can anybody help me with how to diagnose the problem? Is there a
checklist I can try to verify from? I have a project.clj (works with
Lein 1
>>I'm looking for medium-scale examples of using function-generating
functions.
I'm not sure if this is exactly what you're looking for, but this sort of
thing is pretty cool:
(defn make-point [x y]
(fn [member]
(cond (= member :x) x
(= member :y) y)))
We're basically creatin
On Wed, Aug 8, 2012 at 12:28 PM, Meikel Brandmeyer wrote:
>> http://dev.clojure.org/display/design/Contrib+Library+READMEs
>
> None of the points mentioned there requires explicit specification of the
> last available version.
See data.json which is the reference model.
Most of the contrib READ
Hi,
Am 08.08.2012 um 20:48 schrieb Sean Corfield:
> On Wed, Aug 8, 2012 at 11:46 AM, Sean Corfield wrote:
>> On Wed, Aug 8, 2012 at 2:52 AM, Meikel Brandmeyer (kotarak)
>> wrote:
>>> why recommending a specific version at all?
>>>
>>> Just point to search.maven.org or mvnrepository.com and le
Silly question but how is Expectations better or different from Midje?
I'm just starting out with Midje and was just wondering?
Thanks,
Andrew
On Monday, 6 August 2012 19:43:18 UTC+1, Sean Corfield wrote:
>
> lein-expectations - the plugin for running Jay Fields' awesome
> Expectations testing l
(println (with-out-str (foo))) is silly - it's the same as (do (foo) nil),
which in many cases (eg, in this one) is the same as just (foo).
On Wednesday, August 8, 2012 6:25:35 AM UTC-7, Joshua Ballanco wrote:
>
> On Wed, Aug 08, 2012 at 09:19:15AM +, Samuel Lê wrote:
> > Dear all,
> >
> >
On Wed, Aug 8, 2012 at 1:02 AM, Jay Fields wrote:
> On Aug 8, 2012, at 1:09 AM, Sean Corfield wrote:
>> expecting not to
>> throw a specific exception is a bit trickier...
> You can expect a specific exception easily, but not an exception message
> easily...
Yeah, I haven't thought up ways to ma
On Wed, Aug 8, 2012 at 11:46 AM, Sean Corfield wrote:
> On Wed, Aug 8, 2012 at 2:52 AM, Meikel Brandmeyer (kotarak)
> wrote:
>> why recommending a specific version at all?
>>
>> Just point to search.maven.org or mvnrepository.com and let the user choose
>> one?
>
> Because Clojure/core have deci
On Wed, Aug 8, 2012 at 2:52 AM, Meikel Brandmeyer (kotarak)
wrote:
> why recommending a specific version at all?
>
> Just point to search.maven.org or mvnrepository.com and let the user choose
> one?
Because Clojure/core have decided - after quite a bit of discussion -
that providing specific ve
I'm looking for medium-scale examples of using function-generating functions.
I'm doing it because examples like this:
(def make-incrementer
(fn [increment]
(fn [x] (+ increment x
... or this:
(def incish (partial map + [100 200 300]))
... show the mechanics, but I'm looking fo
I just published an announcement regarding Raposo:
https://github.com/cemerick/raposo/blob/master/README.md
My apologies,
- Chas
--
http://cemerick.com
[Clojure Programming from O'Reilly](http://www.clojurebook.com)
On Jul 14, 2012, at 1:24 PM, Walter van der Laan wrote:
> Chas Emerick did a
Hey everyone,
Chris Ford gave a talk on functional composition with Overtone in London
recently and it's now online:
http://skillsmatter.com/podcast/home/functional-composition
Chris really delivers a beautifully paced introduction to a huge range of
fundamental musical concepts through the "t
Eppccc!!
On Friday, August 3, 2012 6:47:50 AM UTC-4, Sam Aaron wrote:
>
> Hi everyone,
>
> for those interested, I just put up a screencast of a performance I did
> with Overtone on Friday the 27th of July at the Arnolfini art gallery in
> Bristol, UK:
>
> https://vimeo.com
On Wed, Aug 08, 2012 at 09:19:15AM +, Samuel Lê wrote:
> Dear all,
>
> I am trying to write some code that would take a function name, get its
> source code, and create a new function based on the source code.
> Unfortunately, the function 'source' from clojure.repl doesn't seem to be
> workin
The source function only works for function where the .clj where the
function is defined is in the classpath. If you have control over all
functions, I'd suggest using
https://github.com/technomancy/serializable-fn when defining them.
On Wed, Aug 8, 2012 at 11:19 AM, Samuel Lê wrote:
> Dear all,
Hey,
A bit late to the party but something I'd love to see in the book is
an approachable summary/description/use cases of the main concurrency
models at play today: event-based and thread-based concurrency. I see
this section helping people compare Clojure with something like
Node.js or Ruby with
There is no such thing in Clojure.
Separation of IO and non IO is done by:
- encouraging pure functions
- providing very good pure data structures, and libraries
--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clo
On 7 Aug 2012, at 15:16, Roberto Mannai wrote:
>
> Interesting, I guess the monome is hooked by:
> (def m (poly/init "/dev/tty.usbserial-m64-0790"))
> And the incoming events by (poly/on-press... Etc
>
Yes, although in the future all the monome events will be sent directly to
Overtone's event
Dear all,
I am trying to write some code that would take a function name, get its
source code, and create a new function based on the source code.
Unfortunately, the function 'source' from clojure.repl doesn't seem to be
working for the functions I define.
Here is my code:
(ns test-src.core
(:r
Hello,
Is this group still meeting? (When?)
Would be interested in attending the next one if possible to meet
like-minded folks.
Regards
Vish
(https://github.com/vishk)
On Wednesday, June 15, 2011 11:02:10 AM UTC-5, ch...@rubedoinc.com wrote:
>
> Everyone, sorry for late notice but are meeting
On 7 Aug 2012, at 15:16, Roberto Mannai wrote:
>
> Interesting, I guess the monome is hooked by:
> (def m (poly/init "/dev/tty.usbserial-m64-0790"))
> And the incoming events by (poly/on-press... Etc
>
Yes, although in the future all the monome events will be sent directly to
Overtone's event
does clojure have a strict split between side-effects and pure functions
like haskell;
I guess what i have in my head is a rigorous split between effectfull
'procedures' and pure 'functions',the latter cannot call the former;
although i know thats' implemented through the more general mechanism
For the record I do not mind (and much prefer) to list the latest
stable release in the README. No problem. In this case I made the
change, scheduled the release, and went somewhere else. As it turns
out the release process is wonky so 0.6.2 has not yet made it out.
The previous version is now li
Meikel,
For you (and me) it's not a problem; I have even looked at pom.xml
files in certain cases to figure out the latest version, etc. but
"normal" people don't care, they wish to get started as soon as
possible.
People don't read README files as well, but on Github README files are
rendered as
On Wed, Aug 8, 2012 at 3:52 AM, Alexander Solovyov
wrote:
> On Wed, Aug 8, 2012 at 4:47 AM, David Nolen wrote:
>>> Ok, I figured out (well, not I, but m0smith from #clojure): protocols
>>> should be imported using :require :as, rather than :use :only.
>>
>> This seems like a bug to me.
>
> Sure,
Hi,
Am Mittwoch, 8. August 2012 12:06:36 UTC+2 schrieb Michael Klishin:
>
> Because users do not want to choose?
>
> Just give her a version to install, asking people to go through
> maven search results figuring out how to determine what's the most recent
> version is at least not
> very frie
Meikel Brandmeyer (kotarak):
> why recommending a specific version at all?
>
> Just point to search.maven.org or mvnrepository.com and let the user choose
> one?
Because users do not want to choose?
Just give her a version to install, asking people to go through
maven search results figuring o
Hi,
why recommending a specific version at all?
Just point to search.maven.org or mvnrepository.com and let the user choose
one?
Kind regards
Meikel
--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googl
Fogus:
>
> > core.cache README currently recommends installing 0.6.2:
>
> The README predates the push to Maven Central and it looks like the
> release failed. I will try again, but it'll be a bit before it makes
> it to Central.
>
Would it be possible to at least make README recommend instal
On Aug 8, 2012, at 1:09 AM, Sean Corfield wrote:
> expecting not to
> throw a specific exception is a bit trickier...
You can expect a specific exception easily, but not an exception message
easily...
--
You received this message because you are subscribed to the Google
Groups "Clojure" group
On Wed, Aug 8, 2012 at 4:47 AM, David Nolen wrote:
>> Ok, I figured out (well, not I, but m0smith from #clojure): protocols
>> should be imported using :require :as, rather than :use :only.
>
> This seems like a bug to me.
Sure, it does look as one to me as well. Should I do something about
it? C
On Wed, Aug 8, 2012 at 12:06 AM, Catonano wrote:
> because it seems that in clojure.string there's no grep function
>
> Is grep gone ?
Look into re-find etc. There's pretty good regex support in core Clojure.
--
Sean A Corfield -- (904) 302-SEAN
An Architect's View -- http://corfield.org/
World
Sean,
2012/8/5 Sean Corfield
> On Sun, Aug 5, 2012 at 12:53 AM, Catonano wrote:
> > (clojure.contrib.str-utils2/grep #"myPattern" "one row \n another row")
>
> Just as a side note, the old monolithic contrib library has been
> deprecated and many parts are no longer maintained (and you may have
46 matches
Mail list logo