Re: Using gen-class to generate methods with same names and arities but different type signatures

2012-08-03 Thread Daniel Solano Gómez
On Fri Aug 3 16:50 2012, dgrnbrg wrote: > I ended up digging deep through gen-class, and I learned about an > interesting, undocumented feature that solves this problem: > > You can, in fact, overload methods of the same arity on type, and here's > how: > > Each method you define in gen-class

Re: Overtone - Live @ Arnolfini

2012-08-03 Thread Robert Pitts
This is fantastic! I just watched several live-coding Impromptu demos yesterday and this definitely takes the cake :) (Also I didn't realize that Overtone had support for graphics now. Good to know!) Really need to dive back in to Overtone some time soon. Keep up the good work. Cheers, Robert

Re: Using gen-class to generate methods with same names and arities but different type signatures

2012-08-03 Thread dgrnbrg
I ended up digging deep through gen-class, and I learned about an interesting, undocumented feature that solves this problem: You can, in fact, overload methods of the same arity on type, and here's how: Each method you define in gen-class tries to lookup a corresponding var in the impl-ns of

Re: Can you make Amotoen faster?

2012-08-03 Thread Richard Lyman
On Thu, Jul 19, 2012 at 7:09 AM, David Nolen wrote: > On Wed, Jul 18, 2012 at 10:12 PM, Richard Lyman > wrote: >> All, >> >> There's not much code, and (sadly) not much documentation, but what's >> there needs some performance love. >> >> https://github.com/richard-lyman/amotoen >> >> Notes: >>

Re: ClojureScript reader and timestamps

2012-08-03 Thread Softaddicts
BG, how come I need to dig so often in the urban dictionary about the acronyms in your emails ? I am starting to worry about my potential obsolescence... :) Luc P > ROFLMAO! > > Sent from phone. Please excuse brevity. > On Aug 3, 2012 6:05 PM, "Michael Fogus" wrote: > > > The revenge of octal

Re: Using gen-class to generate methods with same names and arities but different type signatures

2012-08-03 Thread Daniel Solano Gómez
On Thu Aug 2 16:41 2012, David Greenberg wrote: > Hi Clojurians, > I'm finding myself far down the rabbit hole of gen-class. I am trying > to generate a class that has a bunch of static methods, and each of > those methods has many overloads of arities and types. Unfortunately, > there is no inter

Re: binding vs futures bug or feature (or more likely, am I missing the picture?)

2012-08-03 Thread Jim - FooBar();
On 03/08/12 14:21, Marshall T. Vandegrift wrote: Daniel Silén writes: If I rebind a var's value it receives the new value - but it shouldn't, because it is in another thread, right?! Clojure 1.3 introduced a feature known as "binding conveyance," which causes the functions passed in for futur

Re: binding vs futures bug or feature (or more likely, am I missing the picture?)

2012-08-03 Thread Marshall T. Vandegrift
Daniel Silén writes: > If I rebind a var's value it receives the new value - but it shouldn't, > because it is in another thread, right?! Clojure 1.3 introduced a feature known as "binding conveyance," which causes the functions passed in for futures and agent actions to be wrapped so as to cap

Re: binding vs futures bug or feature (or more likely, am I missing the picture?)

2012-08-03 Thread Baishampayan Ghose
`future` [https://github.com/clojure/clojure/blob/master/src/clj/clojure/core.clj#L6173] uses `binding-conveyor-fn` [https://github.com/clojure/clojure/blob/master/src/clj/clojure/core.clj#L1813] inside to keep the original thread binding frame while calling the function in a new thread. Creating

Re: ClojureScript reader and timestamps

2012-08-03 Thread Baishampayan Ghose
ROFLMAO! Sent from phone. Please excuse brevity. On Aug 3, 2012 6:05 PM, "Michael Fogus" wrote: > The revenge of octal! I believe there is a patch for this on master > and I may have gone out in the latest CLJS push. > > -- > You received this message because you are subscribed to the Google >

Re: ClojureScript reader and timestamps

2012-08-03 Thread Michael Fogus
The revenge of octal! I believe there is a patch for this on master and I may have gone out in the latest CLJS push. -- 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 ne

Re: binding vs futures bug or feature (or more likely, am I missing the picture?)

2012-08-03 Thread Jim - FooBar();
It looks to me like the future sees the re-binding whereas the native thread does not! Like you, I'd expect the same behaviour from these 2 lines...Can anyone shine some light on this? I'm suspecting it has something to do with the thread pooling that is going on but I've got nothing to base th

binding vs futures bug or feature (or more likely, am I missing the picture?)

2012-08-03 Thread Daniel Silén
Hi! I am new to the language, and at the moment playing around with concurrent-constructs as presented in a series on Clojure concurrency at pluralsight.com (by Chraig Andera). When playing with thread-local redefinitions of vars via the binding-macro, I found an unexpected behavior: A future i

Re: Clojurescript One and Websockets

2012-08-03 Thread Trevor Bernard
Any updates Kushal Pisavadia on Websockets and Ring jiving? On Monday, March 19, 2012 9:40:20 AM UTC-3, Kushal Pisavadia wrote: > > I am in discussion with James, but it's very high-level at the moment and > no work has been done on integration yet. > > I don't think it'll get into the next tagge

Re: java gui is flashing

2012-08-03 Thread benjamin fuentes
I use Ryan solution too with image rendering instead of calling repaint. One remark : the Graphic class display looks better than the Graphic2D class. I have superposition and refreshing, and in my case i got this. Thanks Ryan ! Le dimanche 25 juillet 2010 18:22:45 UTC+2, Mate Toth a écrit : >

ClojureScript reader and timestamps

2012-08-03 Thread Steffen Beyer
Hi, I have a strange issue here with certain timestamps: #inst "2012-07-25T17:55:00.000-00:00" does work. #inst "2012-09-25T17:55:00.000-00:00" gives: Error: Assert failed: timestamp month field must be in range 1..12 Failed: 1<=0<=12 (<= low n high) August and September are broken, it seem

Labrepl not responding

2012-08-03 Thread dealy663
I've had a devil of a time getting labrepl working in my environment. It is actually working on my macbook pro, but I have had no success getting it to work on my desktop mac. At first I had a ton of trouble getting it to operate on a different port than 8080. Just changing the port number defi

Re: A succinct & reasonably fast sudoku solver in core.logic

2012-08-03 Thread Brian Rowe
On Tuesday, July 31, 2012 11:48:14 AM UTC-4, David Nolen wrote: > > A much shorter version using an everyo goal I just landed in master: > > http://gist.github.com/3217582 > > David > That is awesome. -- You received this message because you are subscribed to the Google Groups "Clojure" group

'lein search time' error

2012-08-03 Thread marc
Hi, I'm using brew's lein (1.7.1) on Mac OS X and noticed that if I do lein search time the index file http://repo1.maven.org/maven2/.index/nexus-maven-repository-index.zip is looked for but the closest file on that site is http://repo1.maven.org/maven2/.index/nexus-maven-repository-index.gz

Overtone - Live @ Arnolfini

2012-08-03 Thread Sam Aaron
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/46867490 The screen resolution is a little odd as I mirrored my display to that of the projector. Also, t

Re: Using gen-class to generate methods with same names and arities but different type signatures

2012-08-03 Thread Marshall T. Vandegrift
David Greenberg writes: > I can easily generate a map from signatures to implementations, but I > need to generate the class with all the overloads. > > Is there any way to do this? Should I resign myself to writing out a > .java file, and compiling that? In my experience just writing a stub Jav