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.
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
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
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'
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
>
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
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
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
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
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]
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
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"
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
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
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
> 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
16 matches
Mail list logo