Re: Access static information of records?

2011-04-06 Thread Michael Jerger
Am Dienstag, 5. April 2011, 23:53:56 schrieb Stuart Sierra: defrecord does not, at present, produce a first-class Clojure object, just a Java class that implements Clojure's map interfaces. So there's no Record object to ask questions about. As Meikel said, you could use Java reflection, but

Redirection from inferior lisp to clojure

2011-04-06 Thread MohanR
Hi, I use clojure box and I have included (add-hook 'slime-mode-hook 'slime-redirect-inferior-output) in .emacs I open M-x run-lisp and I still see the exception trace in inferior- lisp I though it will be redirected to the slime repl. Will it be ? Thanks, Mohan -- You received this message

Re: Redirection from inferior lisp to clojure

2011-04-06 Thread Joost
On Apr 6, 10:33 am, MohanR radhakrishnan.mo...@gmail.com wrote: Hi, I use clojure box and I have included (add-hook 'slime-mode-hook 'slime-redirect-inferior-output) in .emacs I open M-x run-lisp and I still see the exception trace in inferior- lisp I though it will be redirected to the

Re: Redirection from inferior lisp to clojure

2011-04-06 Thread MohanR
swank server is started and run-lisp works. I thought I don't need to open it but view all the output in slime itself but it gets redirected internally. -- You received this message because you are subscribed to the Google Groups Clojure group. To post to this group, send email to

Re: Tron clone in Clojure

2011-04-06 Thread Tzach
Thanks Ryan I update the game to use similar loop as you have, and add some minor graphics. Result Jar and code are here https://sites.google.com/site/tzachlivyatan/tron-clone-in-clojure Next step: move to 3d with Clj3D! Tzach On Apr 5, 9:46 am, Ryan Sattler xgravi...@gmail.com wrote: Here's

Re: clj3D, a Clojure 3D Library

2011-04-06 Thread Alfredo
First screencast is out! http://www.youtube.com/watch?v=_fLgBzRdddU -- 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

Re: clj3D, a Clojure 3D Library

2011-04-06 Thread Baishampayan Ghose
On Wed, Apr 6, 2011 at 3:20 PM, Alfredo alfredo.dinap...@gmail.com wrote: First screencast is out! http://www.youtube.com/watch?v=_fLgBzRdddU You should probably not have used the background music because Youtube knows about it (copyrighted by EMI) and doesn't allow me to watch the video.

Re: clj3D, a Clojure 3D Library

2011-04-06 Thread Alfredo
It's very strange, since I can watch it even if I'm not logged in. BTW, I will provide a new screencast without music ASAP. On Apr 6, 11:55 am, Baishampayan Ghose b.gh...@gmail.com wrote: On Wed, Apr 6, 2011 at 3:20 PM, Alfredo alfredo.dinap...@gmail.com wrote: First screencast is out!

Re: clj3D, a Clojure 3D Library

2011-04-06 Thread Alfredo
This is the version without music: http://www.youtube.com/watch?v=qshVN9T0HAI Enjoy, Alfredo -- 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

Re: Redirection from inferior lisp to clojure

2011-04-06 Thread Joost
MohanR wrote: swank server is started and run-lisp works. I thought I don't need to open it but view all the output in slime itself but it gets redirected internally. But as far as I can tell, run-lisp does NOT connect to a swank server, and AFAIK also doesn't set up SLIME. run-lisp starts the

Re: clj3D, a Clojure 3D Library

2011-04-06 Thread Alfredo
Enjoy the jar on Clojars!! http://clojars.org/org.clojars.charles-stain/clj3d Bye! -- 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

Re: clj3D, a Clojure 3D Library

2011-04-06 Thread Duane Searsmith
I watched the screen cast. This looks like the beginnings of a really nice tool. Good Job Alfredo! Best, Duane On Wed, Apr 6, 2011 at 8:47 AM, Alfredo alfredo.dinap...@gmail.com wrote: Enjoy the jar on Clojars!! http://clojars.org/org.clojars.charles-stain/clj3d Bye! -- You received

Re: clj3D, a Clojure 3D Library

2011-04-06 Thread Sunil S Nandihalli
In my previous email I meant the jar from the clojars.org.. On Wed, Apr 6, 2011 at 8:19 PM, Sunil S Nandihalli sunil.nandiha...@gmail.com wrote: Thanks Alfredo. every test in your example.clj worked with the jar except for the mk-node. It clojure claims it cannot resolve the symbol mk-node.

Re: clj3D, a Clojure 3D Library

2011-04-06 Thread Alfredo
Thanks to everyone for the positive feedback. Sunil it's normal the error you are encountering, because I have made some last-minute refactoring, so the name of the function is not mk- node anymore but mknode. This decision have been made to align my code with the PLaSM original one (for example,

Re: Tron clone in Clojure

2011-04-06 Thread Jeff Heon
Consider adding your games to http://www.clojure-games.org/ :) -- 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

Re: Clojure Conj 2011 Call For Speakers Now Open

2011-04-06 Thread Meikel Brandmeyer
Hi, just like the others I don't really get the idea behind the two abstracts. Either it doesn't matter who is talking, then you can pick the talks you like. No matter whether she submitted one or two proposals. Or... Am 06.04.2011 um 02:02 schrieb Christopher Redinger: It could end up being

Announcement: pretzel - a predicate library + call for suggestions

2011-04-06 Thread Joost
Hi, I've collected a bunch of predicate functions and bundled them up as pretzel: https://github.com/joodie/pretzel My main focus right now is towards string formatting predicates; tests for decimals, hex, email, urls, etc. Plus I've added some functions that combine predicates into new ones.

Re: Access constructor and fields with default (package) access level

2011-04-06 Thread Armando Blancas
Should I file a bug about this ? File it. Access to package-private fields is a legitimate implementation decision. It's self-defeating for Clojure to put up obstacles when its adoption will most likely grow mixed with Java, and for maintenance. It makes no difference if you can use reflection

Protocol functions higher order functions

2011-04-06 Thread David McNeil
The following code shows surprising behavior related to using protocol functions in higher order functions. I sort of understand the reason wrapped-x first fails is that calling extend-protocol in a sense redefines the x protocol function. I can't decide if I think this is a bug or just the way

Re: Protocol functions higher order functions

2011-04-06 Thread Stuart Halloway
The following code shows surprising behavior related to using protocol functions in higher order functions. I sort of understand the reason wrapped-x first fails is that calling extend-protocol in a sense redefines the x protocol function. I can't decide if I think this is a bug or just the

Re: clj3D, a Clojure 3D Library

2011-04-06 Thread Ken Wesson
On Wed, Apr 6, 2011 at 5:50 AM, Alfredo alfredo.dinap...@gmail.com wrote: First screencast is out! http://www.youtube.com/watch?v=_fLgBzRdddU Can anyone else who's using Chrome see these videos? I just get a black box with text saying You need to upgrade your Adobe Flash Player to watch this

Re: Protocol functions higher order functions

2011-04-06 Thread David McNeil
I think not a bug. If you want indirection in your wrapper, you can ask for it, e.g.:  (defn wrap [f]    (fn [ args]      (apply @f args)))  (def wrapped-x (wrap #'x)) Thank you! -David -- You received this message because you are subscribed to the Google Groups Clojure group. To post

Re: clj3D, a Clojure 3D Library

2011-04-06 Thread Shree Mulay
GREAT TRACK - What is it? On Apr 6, 2:56 pm, Ken Wesson kwess...@gmail.com wrote: On Wed, Apr 6, 2011 at 5:50 AM, Alfredo alfredo.dinap...@gmail.com wrote: First screencast is out! http://www.youtube.com/watch?v=_fLgBzRdddU Can anyone else who's using Chrome see these videos? I just get a

Re: clj3D, a Clojure 3D Library

2011-04-06 Thread Benny Tsai
Works for me (Chrome 10.0.648.204, Windows XP SP3). -- 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.

Re: clj3D, a Clojure 3D Library

2011-04-06 Thread Benny Tsai
Agreed! I installed Shazam just to learn more about this song. It's Blue Train, by John Coltrane. -- 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

Re: clj3D, a Clojure 3D Library

2011-04-06 Thread Ken Wesson
On Wed, Apr 6, 2011 at 4:46 PM, Benny Tsai benny.t...@gmail.com wrote: Works for me (Chrome 10.0.648.204, Windows XP SP3). Well, this is just screwy. I have tried restarting Chrome, disabling and re-enabling its Flash plugin, and various other things. No joy. And Chrome says the version I have

Re: clj3D, a Clojure 3D Library

2011-04-06 Thread Glen Stampoultzis
On 7 April 2011 07:18, Ken Wesson kwess...@gmail.com wrote: On Wed, Apr 6, 2011 at 4:46 PM, Benny Tsai benny.t...@gmail.com wrote: Works for me (Chrome 10.0.648.204, Windows XP SP3). Well, this is just screwy. I have tried restarting Chrome, disabling and re-enabling its Flash plugin, and

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

2011-04-06 Thread James Reeves
On 6 April 2011 13:27, Joost jo...@zeekat.nl wrote: The idea is to have a simple collection of these kinds of functions outside of possibly unwanted frameworks. I'm using them myself for doing validation with clj-decline, but it should at least be useful for most code that has to deal with

Re: How to profile my app?

2011-04-06 Thread Hwee-Boon Yar
On Apr 5, 7:31 am, Base basselh...@gmail.com wrote: Hi Group! I am hoping to get a little help figuring out how to profile my app. I have been working on this for a while and appear to have a bottleneck somewhere. Or clojure.contrib.profile if you roughly know where to look. -- Hwee-Boon

Re: clj3D, a Clojure 3D Library

2011-04-06 Thread Sven Johansson
On Wed, Apr 6, 2011 at 11:18 PM, Ken Wesson kwess...@gmail.com wrote: Well, this is just screwy. I have tried restarting Chrome, disabling and re-enabling its Flash plugin, and various other things. No joy. This doesn't solve your problem with flash (and you might already be aware of it) but

Re: clj3D, a Clojure 3D Library

2011-04-06 Thread Shantanu Kumar
Works for me on Chrome 10.0.648.204 on Mac OS X. Are you using a Chrome beta? On Apr 6, 11:56 pm, Ken Wesson kwess...@gmail.com wrote: On Wed, Apr 6, 2011 at 5:50 AM, Alfredo alfredo.dinap...@gmail.com wrote: First screencast is out! http://www.youtube.com/watch?v=_fLgBzRdddU Can anyone

Re: clj3D, a Clojure 3D Library

2011-04-06 Thread Ken Wesson
On Wed, Apr 6, 2011 at 10:10 PM, Shantanu Kumar kumar.shant...@gmail.com wrote: Works for me on Chrome 10.0.648.204 on Mac OS X. Are you using a Chrome beta? On Apr 6, 11:56 pm, Ken Wesson kwess...@gmail.com wrote: On Wed, Apr 6, 2011 at 5:50 AM, Alfredo alfredo.dinap...@gmail.com wrote:

Re: clj3D, a Clojure 3D Library

2011-04-06 Thread Ken Wesson
On Wed, Apr 6, 2011 at 10:32 PM, Ken Wesson kwess...@gmail.com wrote: [blank message] Dammit, I didn't send that. More Chrome glitchiness. I clicked the Reply link on Shantanu's message dated 10:10 PM April 6, the browser did nothing, and I clicked Reply again after a few seconds. Then it

Re: How to profile my app?

2011-04-06 Thread Base
Fantastic. I will look into all of them! Thanks much all. On Apr 6, 7:47 pm, Hwee-Boon Yar hweeb...@gmail.com wrote: On Apr 5, 7:31 am, Base basselh...@gmail.com wrote: Hi Group! I am hoping to get a little help figuring out how to profile my app. I have been working on this for a

Re: Redirection from inferior lisp to clojure

2011-04-06 Thread MohanR
I think my question wasn't clearly stated but it has solved itself. Question was : How do I redirect stack traces and Sys out statements which are appearing in the inferior-lisp buffer to my repl so that I can view them there ? This line (add-hook 'slime-mode-hook