Thanks for seeing that through!
-Phil
On Apr 20, 2010 7:16 PM, "Stuart Halloway"
wrote:
#299 has been applied in master.
Stu
> On Tue, Apr 20, 2010 at 12:50 PM, Heinz N. Gies
> wrote:
> >>
> >> On Apr 20, 2010,...
>
> > --
> > You received this message because you are subscribed to the Googl
#299 has been applied in master.
Stu
On Tue, Apr 20, 2010 at 12:50 PM, Heinz N. Gies
wrote:
On Apr 20, 2010, at 4:01 , John Sanda wrote:
I am working with a simple leiningen project with the build defined
as
follows,'
; project.clj
(defproject myproject "1.0.0-SNAPSHOT"
:description "
On 19 April 2010 20:34, Kevin Livingston
wrote:
> I ported the unifier posted by Norvig in Common Lisp to Clojure...
Cool! Before I comment on a few specific points you make / questions
you ask, here are the results of a few minutes I spent playing with /
rewriting your code:
http://gist.github.
So it would strike me that with-defaults-bad (below) is a fairly
straightforward way of using destructuring in Clojure yet it can't be
done, instead of passing the same map in that's being destrucured you
need a new "type" that has keys being the variable names instead of
keys being keywords... it
> Clojure could of course auto-unbox on recur to primitive local, but it
> doesn't, for a reason. If you are using primitive locals it is because
> you are looking for the speed of primitive operations
That's the answer I was looking for. It is just confusing because it
is mentioned everyw
On Apr 20, 2010, at 1:33 PM, John wrote:
Yup, you're definitely right Daniel. Everyone's comment on the subject
was very helpful and gave us all insight into the internals of
Clojure. I guess the key points to learn in our case is:
1- Clojure supports primitives, but only when you ask for them
On 20 April 2010 19:33, John wrote:
> 2- Clojure cannot unbox the boxed recur arguments which causes a
> problem when the arguments of loop are primitive. This looks like a
> bug to me. The code posted by Armando can be expanded to include boxed
> versions of primitive types, why the code doesn't
After looking through the code and tests, it looks like *exactly* what
I'll need and I doubt I'll need/want to change anything. Thanks for
the docs as well - it's nice to see code that looks like it was
written like you "meant it" :).
I'll probably use clojure to build my prototype (with all 8.5
On Tue, Apr 20, 2010 at 12:50 PM, Heinz N. Gies wrote:
> On Apr 20, 2010, at 4:01 , John Sanda wrote:
>
> I am working with a simple leiningen project with the build defined as
> follows,'
>
> ; project.clj
> (defproject myproject "1.0.0-SNAPSHOT"
> :description "FIXME: write"
> :dependencies
On Apr 20, 2010, at 4:01 , John Sanda wrote:
> I am working with a simple leiningen project with the build defined as
> follows,'
>
> ; project.clj
> (defproject myproject "1.0.0-SNAPSHOT"
> :description "FIXME: write"
> :dependencies [[org.clojure/clojure "1.2.0-master-SNAPSHOT"]
>
On Tue, Apr 20, 2010 at 3:09 PM, Brenton wrote:
> Hello group,
>
> I am working with edge Clojure and, as of today, noticed that
> deftype's behavior has changed (which is expected as it is still
> alpha). The version in question is:
>
> clojure-1.2.0-master-20100420.150114-37.jar
>
> Here is my
Hello group,
I am working with edge Clojure and, as of today, noticed that
deftype's behavior has changed (which is expected as it is still
alpha). The version in question is:
clojure-1.2.0-master-20100420.150114-37.jar
Here is my REPL interaction which demonstrates the difference:
user> (defpr
I am doing the following after an insert for a Derby database:
(sql/with-query-results res
["VALUES IDENTITY_VAL_LOCAL()"]
(first (vals (first res
For MySQL it would be something like:
(sql/with-query-results res
["SELECT LAST_INSERT_ID()"]
(first (vals (first res
I
Thanks Jim, I'll definitely keep this in mind, I appreciate it.
This seems mostly like a tool for constraint satisfaction, which I've
been keeping my eyes on, but don't use as much as more 'open world'
reasoning, back-chaining, and pattern matching etc. (which is why I
was looking for a unifier)
Yup, you're definitely right Daniel. Everyone's comment on the subject
was very helpful and gave us all insight into the internals of
Clojure. I guess the key points to learn in our case is:
1- Clojure supports primitives, but only when you ask for them (by
casting)
2- Clojure cannot unbox the box
Mark, Alex, and especially Rich: thanks for the help, explanation and quick fix!
Works great.
// Ben
--
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 mod
On Tue, Apr 20, 2010 at 04:43:13AM -0700, jvshahid wrote:
> Thanks Per,
>
> This definitely works
>
> > Try (loop [x (. 1 longValue)] (if (= 0 x) x (recur (- x (long 1).
>
> but from my understanding of clojure internals clojure.lang.Numbers
> should take care of that. Since one of the argum
B Smith-Mannschott writes:
> expected: nil
> actual: java.lang.IllegalArgumentException: No method in multimethod
> 'sqrt' for dispatch value: :clojure.contrib.complex-numbers/complex
Just thought I'd expand on what the problem was.
I was able to reproduce this on an older Linux machine and n
I found this code some code that supposedly works for creating a context
that can be shared for multiple panels
http://www.javagaming.org/index.php/topic,19911.0.html
I can't seem to get a pbuffer create. I believe I'm using the correct
Clojure syntax for these static methods (pasted below). It
Try Rich's commit 1b8d5001ba094053b24c55829994785be422cfbf
For me, he's fixed the build problem.
--
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 moderat
A very basic library of functions for encoding and decoding strings
(sequences of characters) using the base64 coding scheme.
Code:
http://github.com/remvee/clj-base64
Clojars:
http://clojars.org/clj-base64
Lein it up with:
[clj-base64 "0.0.0-SNAPSHOT"]
Usefulness:
network protocol rela
On 20 April 2010 15:41, Craig Andera wrote:
> Yep: that's good advice, although I can't say I find much in emacs to
> be "basic", even after using it casually for 20 years :). The one I
> tended to use in the tutorial (in case someone saw it flash by in the
> minibuffer) is C-x C-e, which I have b
> > I enjoyed you presentations, but I have a bit of a tangent question.
> > I'm still new to slime, so it's not a comfortable environment for me
> > yet. What I am wondering is how exactly, when operating with the
> > split code and repl buffers, you are getting code buffer expressions
> > to eva
On Tue, 20 Apr 2010 06:47:05 -0700 (PDT)
Mark Hamstra wrote:
> Craig,
I'm not Craig, but he's not answered yet, so...
> I enjoyed you presentations, but I have a bit of a tangent question.
> I'm still new to slime, so it's not a comfortable environment for me
> yet. What I am wondering is how
Hello,
I'm using clojure.contrib.sql/insert-records to add data to a
database. I've hit a problem where I am unable to get the
autogenerated IDs of the records that I have inserted.
I believe in JDBC this is normally done with
statement_handle.getGeneratedKeys(). Unfortunately, as far as I can
s
> My problem was that I thought the literal "1" will be boxed behind the
> scenes, I didn't even bother looking for a version of "add" for
> primitives because I thought they never existed in Clojure.
>
> I'll try to go over the Numbers class again and see if all this makes
> sense.
Looks like the
Craig,
I enjoyed you presentations, but I have a bit of a tangent question.
I'm still new to slime, so it's not a comfortable environment for me
yet. What I am wondering is how exactly, when operating with the
split code and repl buffers, you are getting code buffer expressions
to evaluate in the
You're not alone. I see the very same thing.
Quad core, Ubuntu 10.04, Linux 2.6.32-21-generic
java version "1.6.0_18"
OpenJDK Runtime Environment (IcedTea6 1.8) (6b18-1.8-0ubuntu1)
OpenJDK 64-Bit Server VM (build 14.0-b16, mixed mode)
--
You received this message because you are subscribed to
Again thanks a lot for your patience and help.
My problem was that I thought the literal "1" will be boxed behind the
scenes, I didn't even bother looking for a version of "add" for
primitives because I thought they never existed in Clojure.
I'll try to go over the Numbers class again and see if
On Tue, Apr 20, 2010 at 7:02 PM, Per Vognsen wrote:
> With the way primitive types are currently supported in the compiler,
> if you wanted it to work the way you expect, you'd need to express the
> complicated arithmetic tower and its grid of type conversions in a
> static form accessible to the
Hi,
Vipashyin Labs (at Marathalli, Bangalore) is looking for a fulltime
Clojure developer. This is a long term contract position (1+ year)
with attractive remuneration. The candidate should be well versed in
Clojure, JVM, web development and REST. If interested, please contact
at the email address
On Tue, Apr 20, 2010 at 6:43 PM, jvshahid wrote:
> Thanks Per,
>
> This definitely works
>
>> Try (loop [x (. 1 longValue)] (if (= 0 x) x (recur (- x (long 1).
>
> but from my understanding of clojure internals clojure.lang.Numbers
> should take care of that.
The Numbers class doesn't do any
greetings!
This is a follow-up to my posts form this past weekend [1], where it
seemed as if the problem were solved (on my mac, at least.) Now that
I'm back on my netbooks and quad-core desktop (all various flavors of
ubuntu), I'm finding I can't actually build clojure-contrib 1.2.x *at
all*.
I'
Thanks Per,
This definitely works
> Try (loop [x (. 1 longValue)] (if (= 0 x) x (recur (- x (long 1).
but from my understanding of clojure internals clojure.lang.Numbers
should take care of that. Since one of the arguments of '-' is a long
a LongOps should do the minus and return a long. Whi
Tanks, i was total focus on the (make-lotto),
// Anders
On 20 Apr, 02:53, Michael Gardner wrote:
> On Apr 19, 2010, at 4:52 PM, uap12 wrote:
>
> > (defn -main
> > (make-lotto))
> > ([] (-main )))
>
> You're missing the empty arglist in your definition of -main. It should be:
>
> (defn -main []
Further, from the JOGL user guide:
"In the JSR-231 abstractions, a context is always associated with
exactly one drawable."
I guess that answers that question. So, while we certainly might want
to share some of our GLish state between windows, the Context is not
the right vehicle...
J
--
You r
> Right now it seems calling (.getContext (new GLCanvas)) returns nil
Right. The context doesn't get set at construction, but will be set by
the time the canvas gets passed to any of the GLEventListener methods.
The Javadoc mentions that the underlying context may need to get
created and destroye
I've encountered the same problem (as far as I understood) in Fleet.
My solution is
http://github.com/Flamefork/fleet/blob/master/src/fleet/loader.clj#L55
There code comes from String, but you can use FileReader instead of
StringReader.
File path must be specified additionally, but this should be
You might want to check out this paper on a simple functional I/O system:
http://www.ccs.neu.edu/scheme/pubs/icfp09-fffk.pdf
The basic idea is really simple and natural. I've used something
similar in my own past programs and I noticed that Penumbra has a
GLUT-like event-driven interface that wor
39 matches
Mail list logo