Re: How to access specific java.awt.Color constructor?

2011-04-09 Thread stu
On Apr 10, 8:35 am, Alan wrote: > You probably weren't putting it into a java float array, but instead a > Float array (boxed type). Here's a repl session doing what you want. I > don't know anything about colorspaces so it's probably nonsense, but > it creates a Color with that constructor.

Re: Announcement: pretzel - a predicate library + call for suggestions

2011-04-09 Thread James Reeves
On 9 April 2011 10:07, Ken Wesson wrote: >> That particular example ties a predicate to a particular error >> message. Error messages should be independent of predicates, otherwise >> they can't be localized or changed to fit a specific situation. > > It can always be an integer or a keyword (or a

Re: ANN: Logos v0.6 - Pattern matching, Tabling, Disequality Constraints, and now on Clojars

2011-04-09 Thread MarkSwanson
Fascinating! -- 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 unsubscribe from this group, send e

Re: help--reading keyboard input from Clojure is surprisingly difficult

2011-04-09 Thread Mike Meyer
On Sat, 9 Apr 2011 19:27:13 -0400 Lee Spector wrote: > On Apr 9, 2011, at 6:18 PM, Sean Corfield wrote: > > On Sat, Apr 9, 2011 at 6:46 AM, Lee Spector wrote: > >> But still, I will humbly submit that it's totally freakin' nutso that it > >> should be so hard to do basic user interaction. > > I'

Re: help--reading keyboard input from Clojure is surprisingly difficult

2011-04-09 Thread Lee Spector
On Apr 9, 2011, at 6:18 PM, Sean Corfield wrote: > On Sat, Apr 9, 2011 at 6:46 AM, Lee Spector wrote: >> But still, I will humbly submit that it's totally freakin' nutso that it >> should be so hard to do basic user interaction. > > I'm curious as to what percentage of developers are writing >

Re: How to access specific java.awt.Color constructor?

2011-04-09 Thread Alan
You probably weren't putting it into a java float array, but instead a Float array (boxed type). Here's a repl session doing what you want. I don't know anything about colorspaces so it's probably nonsense, but it creates a Color with that constructor. user=> (import '(java.awt.color ICC_Profile C

Re: How to access specific java.awt.Color constructor?

2011-04-09 Thread Sean Corfield
Can you show a bit more of the code you have so we can see what you've tried? On Sat, Apr 9, 2011 at 3:13 PM, stu wrote: > I'm trying to create a java.awt.Color class instance from within > Clojure, using this constructor: > > Color(ColorSpace cspace, float[] components, float alpha) > > But alwa

Re: help--reading keyboard input from Clojure is surprisingly difficult

2011-04-09 Thread Sean Corfield
On Sat, Apr 9, 2011 at 6:46 AM, Lee Spector wrote: > But still, I will humbly submit that it's totally freakin' nutso that it > should be so hard to do basic user interaction. I'm curious as to what percentage of developers are writing console-based applications (in any language)? What do the p

How to access specific java.awt.Color constructor?

2011-04-09 Thread stu
Hi, I'm trying to create a java.awt.Color class instance from within Clojure, using this constructor: Color(ColorSpace cspace, float[] components, float alpha) But always end up with a "No matching ctor found for class java.awt.Color" exception. I can create the ColorSpace instance as I expecte

ANN: Logos v0.6 - Pattern matching, Tabling, Disequality Constraints, and now on Clojars

2011-04-09 Thread David Nolen
Logos is finally in good enough shape to be worth publishing to Clojars. There are really too many changes to enumerate here, but if you're familiar with Prolog, Logos is now far enough along that you can basically write Prolog in Clojure and then some. Here's the evidence: (defn-e nqueens-o [l]

Re: Where is the javadoc for clojure.lang ?

2011-04-09 Thread rob levy
Also, there is the "Clojure in Small Pieces" doc that Tim Daly is working on. On Sat, Apr 9, 2011 at 11:00 AM, Stuart Sierra wrote: > Unfortunately, there is no JavaDoc for clojure.lang because there are no > comments in the source. If you want to understand Clojure's Java source > code, you'll

Re: Where is the javadoc for clojure.lang ?

2011-04-09 Thread Stuart Sierra
Unfortunately, there is no JavaDoc for clojure.lang because there are no comments in the source. If you want to understand Clojure's Java source code, you'll just have to read it. -Stuart Sierra clojure.com -- You received this message because you are subscribed to the Google Groups "Clojure"

Re: Announcement: pretzel - a predicate library + call for suggestions

2011-04-09 Thread Ken Wesson
On Sat, Apr 9, 2011 at 9:56 AM, James Reeves wrote: > On 8 April 2011 23:21, Ken Wesson wrote: >> Better yet: maybe we're looking at this backwards. Maybe what we want >> isn't a predicate for *passed* validation, but a predicate for >> *failed* validation: >> >> (defn s-blank? [x] >>  (if (empty

Re: Announcement: pretzel - a predicate library + call for suggestions

2011-04-09 Thread James Reeves
On 8 April 2011 23:21, Ken Wesson wrote: > Better yet: maybe we're looking at this backwards. Maybe what we want > isn't a predicate for *passed* validation, but a predicate for > *failed* validation: > > (defn s-blank? [x] >  (if (empty? (.trim x)) "must not be blank")) That particular example t

Re: help--reading keyboard input from Clojure is surprisingly difficult

2011-04-09 Thread Lee Spector
On Apr 8, 2011, at 11:33 PM, Gregg Williams wrote: > ... *How* does the > word "easier" belong in that sentence, when I all I want to do is read > input from the keyboard?! > > My modest proposal: > ... I'm writing to support the sentiment that Gregg expressed here with regard to this issue, a

Re: minor pauses

2011-04-09 Thread Peter Schuller
> Perhaps I'm not reading the GC logging information correctly, but it didn't > appear to me that the GC was to blame for the pauses. Perhaps it might not > even be the JVM but the OS kernel? Until I have a good idea what's causing > them, it seems that throwing solutions (such as moving to a re