Re: Entity component system

2011-01-12 Thread msappler
No i do not mind. A blog is being planned for promotion of my game and sharing. Only have to find a domain name which i like. On 12 Jan., 01:32, Daniel Kersten dkers...@gmail.com wrote: Thanks for sharing! Entity component systems are something I'm very interested in and something I have

Re: ANN: Gloss, a byte-format DSL

2011-01-12 Thread pepijn (aka fliebel)
It is not. Thanks for the information anyway. The real problem consists of a set of tags, with a type identified by a byte. One of those tags is a compound tag which can contain any number of other tags and is terminated by a \0. This means I need parser behavior, rather than a linear regex-alike

Re: distributeted computing newby, clojure ...

2011-01-12 Thread Nurullah Akkaya
Hi Nick, You can reach me from this email. If you have a patch, you can send a pull request or email it directly. Regards... -- Nurullah Akkaya http://nakkaya.com On Wed, Jan 12, 2011 at 1:13 AM, Nick Zbinden nick...@gmail.com wrote: I have a simple library that mimics newLISP's net-eval

Re: Multidimensional Float arrays

2011-01-12 Thread WoodHacker
This is a much better solution. It's shorter and is easier to read. Thanks for tip! Bill On Jan 10, 11:49 pm, Sunil S Nandihalli sunil.nandiha...@gmail.com wrote: Hi Bill , the following is one way of doing it .. (into-array (map float-array  [[1.0 1.0 2.0 2.0] [3.0 2.2 4.0 0.0]]))

Re: java 7

2011-01-12 Thread Marko Koci?
If Java 7 gives Clojure significant performance boost (invokedynamic and frields) wouldn't it make sense to have separate versions of Clojure that will be optimized for target JRE version? I suppose that only small part of clojure codebase would be affected, with small improvements to build

Re: java 7

2011-01-12 Thread Stuart Sierra
A branch is certainly a possibility. But from what I've heard, the primary benefit of invokedynamic is convenience for language implementors. The performance benefits, if any, are modest. -S clojure.com -- You received this message because you are subscribed to the Google Groups Clojure

Re: How do I find implemented protocols in Clojure object?

2011-01-12 Thread Stuart Sierra
One way: (ancestors (type the-object)) This will include every interface implemented by the object, including protocols. -S clojure.com -- You received this message because you are subscribed to the Google Groups Clojure group. To post to this group, send email to

Re: running just one test

2011-01-12 Thread Stuart Sierra
Invoking tests as functions doesn't work when the tests use fixtures. -S clojure.com -- 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: ANN: clojurejs -- a Clojure (subset) to Javascript translator

2011-01-12 Thread Daniel Werner
On Jan 11, 4:20 pm, Ram Krishnan kriyat...@gmail.com wrote: * Mozilla's JS 1.7 supports a let statement[1] with lexical scoping, ... That's an interesting idea, although I'm not too keen on specializing for any one browser. The other problem is I don't see any reasonable way of providing

Re: Multidimensional Float arrays

2011-01-12 Thread Ken Wesson
On Wed, Jan 12, 2011 at 8:15 AM, WoodHacker ramsa...@comcast.net wrote: This is a much better solution.   It's shorter and is easier to read. Thanks for tip! On Jan 10, 11:49 pm, Sunil S Nandihalli sunil.nandiha...@gmail.com wrote: (into-array (map float-array  [[1.0 1.0 2.0 2.0] [3.0 2.2

Re: running just one test

2011-01-12 Thread rob levy
On Wed, Jan 12, 2011 at 1:41 AM, ka sancha...@gmail.com wrote: (detest xyz ...) Freudian slip? ;) -- 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: Question about sorted-sets

2011-01-12 Thread Travis Treseder
Yes that compareTo doesn't define a total order on your class. I think you are missing a clause in cond: You're right on. I refactored the toCompare function to meet the requirements outlined in its javadoc, and it worked. I'm a little ashamed I didn't do that before wasting people's time...

Re: which IDEs are you all using?

2011-01-12 Thread Benny Tsai
Hi Mark, Could you elaborate on this part? On Jan 11, 8:40 pm, Mark Engelberg mark.engelb...@gmail.com wrote: well.  Lots of little things don't work quite right in emacs (at least on Windows), for example, dragging a file onto emacs to edit it, and copying and pasting between apps. I've

Re: which IDEs are you all using?

2011-01-12 Thread Wilson MacGyver
On Wed, Jan 12, 2011 at 1:49 AM, Meikel Brandmeyer m...@kotka.de wrote: 2.  An easy way to load all the relevant code and dependencies into a REPL. Check. Vim itself does not provide that. But it is easy to use lein, cake or gradle to fire up the backend server. For lein there exists a

Re: ANN: clojurejs -- a Clojure (subset) to Javascript translator

2011-01-12 Thread Ram Krishnan
On Jan 12, 5:56 am, Daniel Werner daniel.d.wer...@googlemail.com wrote: On Jan 11, 4:20 pm, Ram  Krishnan kriyat...@gmail.com wrote: * Mozilla's JS 1.7 supports a let statement[1] with lexical scoping, ... That's an interesting idea, although I'm not too keen on specializing for any

Re: which IDEs are you all using?

2011-01-12 Thread Philip Hudson
On 12 Jan, 2011, at 4:21 pm, clojure+nore...@googlegroups.com wrote: My #1 issue with emacs is that I don't know how save my workspace so that I can return to emacs and automatically open the last set of files I was working on, and my places within them. It's always a big hassle when I sit

Re: java 7

2011-01-12 Thread Peter Schuller
A branch is certainly a possibility. But from what I've heard, the primary benefit of invokedynamic is convenience for language implementors. The performance benefits, if any, are modest. If your language is doing dynamic dispatch a lot, invokedynamic can be game-changing since suddenly the

Re: which IDEs are you all using?

2011-01-12 Thread Meikel Brandmeyer
Hello Wilson, Am 12.01.2011 um 17:18 schrieb Wilson MacGyver: I think you meant the next release of Clojuresque. No. I really meant VimClojure. I think the plugin does not fit to clojuresque, since the latter is independent of one's editor. Sincerely Meikel -- You received this message

Re: which IDEs are you all using?

2011-01-12 Thread Wilson MacGyver
ah, ok. just wanted to make sure. On Wed, Jan 12, 2011 at 2:22 PM, Meikel Brandmeyer m...@kotka.de wrote: Hello Wilson, Am 12.01.2011 um 17:18 schrieb Wilson MacGyver: I think you meant the next release of Clojuresque. No. I really meant VimClojure. I think the plugin does not fit to

[ANN] fs - file system utilities for Clojure

2011-01-12 Thread Miki
[fs 0.2.0-SNAPSHOT] is out, featuring: abspath Return absolute path basename Return the last part of path copy Copy a file cwd Return the current working directory delete Delete path directory? True if path is a directory dirname Return directory name executable?

Re: [ANN] fs - file system utilities for Clojure

2011-01-12 Thread László Török
Good stuff, just what I was looking for, can't wait to try... sent from my mobile device On Jan 12, 2011 9:48 PM, Miki miki.teb...@gmail.com wrote: [fs 0.2.0-SNAPSHOT] is out, featuring: abspath Return absolute path basename Return the last part of path copy Copy a file cwd Return the

Re: How do I find implemented protocols in Clojure object?

2011-01-12 Thread Bob Hutchison
On 2011-01-12, at 8:38 AM, Stuart Sierra wrote: One way: (ancestors (type the-object)) This will include every interface implemented by the object, including protocols. This seems to only work if the protocol is mentioned in the defrecord. If it's applied using the extend function

Re: ANN: lein-cdt 1.0.0 - a leiningen plugin for the Clojure Debugging Toolkit

2011-01-12 Thread Travis Vachon
Unfortunately I haven't used cake at all, sorry! Travis On Tue, Jan 11, 2011 at 12:15 AM, Sunil S Nandihalli sunil.nandiha...@gmail.com wrote: Hi,  Thanks Travis. This is something I have wanted for  a long time .. Have you tried using it with cake?  would it work with Cake? Sunil. On Mon,

Re: which IDEs are you all using?

2011-01-12 Thread Phil Hagelberg
On Jan 11, 10:40 pm, Mark Engelberg mark.engelb...@gmail.com wrote: lein/emacs - Getting lein to run under Windows has been an ongoing struggle.  It sort of works, but there are a lot of little problems. I've made lots of edits to my batch file to try to address the problems, but then it

Re: How do I find implemented protocols in Clojure object?

2011-01-12 Thread Stuart Sierra
You're right, it will only work for protocol implementations defined in-line in a type. -S -- 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: which IDEs are you all using?

2011-01-12 Thread Mark Engelberg
On Wed, Jan 12, 2011 at 8:13 AM, Benny Tsai benny.t...@gmail.com wrote: Hi Mark, Could you elaborate on this part? The version number is: GNU Emacs 23.1.1 (i386-mingw-nt5.1.2600) When I drag a file onto the emacs icon, it starts up, but instead of showing me the file, it says: command-line-1:

Re: which IDEs are you all using?

2011-01-12 Thread Mark Engelberg
On Wed, Jan 12, 2011 at 9:56 AM, Philip Hudson phil.hud...@iname.com wrote: I have something like this: (setq desktop-dirname /foo/bar      desktop-path    '(/foo/bar)) (setq-default desktop-path '(/foo/bar)) (add-hook 'kill-emacs-hook (lambda () (desktop-save desktop-dirname))) (require

Re: which IDEs are you all using?

2011-01-12 Thread Mark Engelberg
On Wed, Jan 12, 2011 at 3:57 PM, Phil Hagelberg p...@hagelb.org wrote: From the problems you are seeing it sounds like you are using Leiningen 1.1.0. Have you tried 1.4.2, the latest release? I'm on lein 1.3.1. I downloaded, but have not yet tried 1.4.2. I haven't sent you my changes because

Re: which IDEs are you all using?

2011-01-12 Thread buckmeisterq
Try setting %HOME% to something like c:\home, create the dir if needed, and put your .emacs etc in that folder. I've found that spaces in paths are still often to blame for issues with command line and gnu-esque tools. Thanks, Peter -Original Message- From: Mark Engelberg

When to use #'

2011-01-12 Thread Alex Baranosky
Hi, I find it extremely hard to google this to learn more! I'd like to know some good sources of further information on when to use #' . It is a bit mysterious to me at this point. -- You received this message because you are subscribed to the Google Groups Clojure group. To post to this

Re: When to use #'

2011-01-12 Thread gaz jones
its a reader macro equivalent to the var special form: (var symbol) The symbol must resolve to a var, and the Var object itself (not its value) is returned. The reader macro #'x expands to (var x). from: http://clojure.org/special_forms#var On Wed, Jan 12, 2011 at 9:11 PM, Alex Baranosky

Re: which IDEs are you all using?

2011-01-12 Thread Benny Tsai
Hi Mark, I don't know much about the error msg you encountered, but I think Peter's onto something with the recommendation to set %HOME% yourself to help emacs find your init file(s). This page has good info on how emacs goes about determining your %HOME% directory:

my newbie question...

2011-01-12 Thread Sean Allen
So i've used this because I picked it up from numerous tutorials but I've never really understood it, can I get a some decent background information on - and -? I picked them up from compojure tutorials and don't feel anywhere near comfortable enough w/ what is actually going on. Thanks. -Sean-

Re: my newbie question...

2011-01-12 Thread Alex Baranosky
- and -- are macros in clojure.core, both (- one #(two % a) three) (- one #(two a %) three) expands to (three #(two one a)) and (- one #(two %1 %2) three) expands to (three #(two a one)) On Wed, Jan 12, 2011 at 10:40 PM, Sean Allen s...@monkeysnatchbanana.comwrote: So i've used this

Re: my newbie question...

2011-01-12 Thread Alex Baranosky
Oops. Sorry, I'm clearly too tired to post. Thsoe examples aren't quite right. Those are the threading macros. (- one two three) expands to (three (two one)) - and - do the same things, except - threads through the first argument of the functions, and - threads through the second argument.

Re: my newbie question...

2011-01-12 Thread Sean Corfield
On Wed, Jan 12, 2011 at 8:04 PM, Alex Baranosky alexander.barano...@gmail.com wrote: - and - do the same things, except - threads through the first argument of the functions, and - threads through the second argument. - threads through the last argument. Both macros are useful for unnesting

Re: When to use #'

2011-01-12 Thread rob levy
One common use is for referring to private functions in other namespaces. For example, say you want to write tests for foo.core/p, a privately defined function. It is private in terms of your intent as expressed in your API, but you can still access the var from foo.core-test and call the

Re: Clojure Quizzes?

2011-01-12 Thread Stuart Campbell
On 12 January 2011 14:07, Robert McIntyre r...@mit.edu wrote: You can use the latest version of clojure if you include it as a dependency in your submission, so even though they say they only support clojure1.0 they really support all of them. Are other 3rd-party libs allowed, too? Cheers,

Re: Clojure Quizzes?

2011-01-12 Thread Robert McIntyre
They seem to allow you to include anything in a lib directory that you'd want. I sometimes include apache commons-io and clojure-contrib1.2 without any problems. I also included a sql connection library for one of the problems, so it seems fine :) --Robert McIntyre On Thu, Jan 13, 2011 at 2:00