Earn $1000-$2500 per month

2011-06-04 Thread roseanjel03
Earn $1000-$2500 per month If you Register your name You Get Sign-up bonus $5 AND Get $.20 cent for each referral. Further details http://www.earnbyforex.com/index.php?id=35678365

Re: example usage for the 5 argument form of subseq?

2011-06-04 Thread Sunil S Nandihalli
aha.. .. thanks Ken. The argument name key got me a little confused. Sunil. On Sat, Jun 4, 2011 at 11:15 AM, Ken Wesson kwess...@gmail.com wrote: On Sat, Jun 4, 2011 at 12:27 AM, Sunil S Nandihalli sunil.nandiha...@gmail.com wrote: Hello everybody, I have not been able to figure out how

summing shorts vs summing ints

2011-06-04 Thread bOR_
Hi all, Noticed in Clojure 1.3-Alpha8 that there is a large difference in speed when adding two Short/TYPE arrays rather than two Integer/TYPE java arrays. Is that something related to clojure, my code, or just a CPU-related thing when it comes to summing. I'd like to save some memory by using

Re: another question on macros defining functions

2011-06-04 Thread Mark Nutter
Ok, so what you really want is not to change how your program functions, but how your IDE/editor functions. That means what you really want is not a clojure macro, but an emacs macro--you want to extend the functionality of emacs to make your editing easier. The clojure code you write is not going

Re: summing shorts vs summing ints

2011-06-04 Thread David Nolen
On Sat, Jun 4, 2011 at 6:32 AM, bOR_ boris.sch...@gmail.com wrote: (defn plusS ^shorts [^shorts array ^shorts arr2] adds two Short arrays (amap array idx ret (short (+ (aget array idx) (aget arr2 idx) (defn plusI ^ints [^ints array ^ints arr2] adds two Int arrays.

Re: summing shorts vs summing ints

2011-06-04 Thread Stuart Sierra
I get reflection warnings on your `plusS` function. I think it's from adding the two `short`s. Remember that Clojure 1.3 only supports `long` and `double` primitives natively. The compiler may be a missing a case for conversion from `short` to `long`. If this is performance-critical code

Re: Clojurebox/emacs setup

2011-06-04 Thread Scott Sutherland
I'm far from an expert, but clojurebox uses slime for the REPL. I believe that what you are going to want is to use: lein swank to start a local swank server, then start emacs and M-x slime-connect typically, the default connection params (localhost, port 4005) should work to get you connected

Best Installation Option

2011-06-04 Thread flebber
Firstly, I have successfully installed clojure 1.3 alpha8. Just an enquiry as I am relatively new to the community, according to this guide http://en.wikibooks.org/wiki/Clojure_Programming/Getting_Started . clojure box is the best way to install on a windows machine, I notice however that this

[noob] porting an old project - where to begin?

2011-06-04 Thread Daniel
I suppose the noob tag is appropriate ie I was around sometime last year and earlier but RLing got in the way of doing anything useful with this lovely language. Anyway, I've got this old project (https://github.com/doubleagent/ Magic--legacy- ) which I've recently gained a renewed interest in,

Re: Best Installation Option

2011-06-04 Thread Jonathan Fischer Friberg
That was a weird guide. I don't see any real benefits from using some sort of 'installer' for clojure. In my view it's better to simply use maven or leiningen for actual management of dependencies (such as clojure). If you don't want that it's still simpler to just download a clojure jar file.

Re: [noob] porting an old project - where to begin?

2011-06-04 Thread Robert McIntyre
You might want to take a look at jMonkeyEngine (http://jmonkeyengine.org/) It's a 3D java screengraph library with quite good performance. I've found it to be fun to use in the past, and it has a good userbase and lots of tutorials online. Even if it's not what you want exactly, many people

Re: example usage for the 5 argument form of subseq?

2011-06-04 Thread Ken Wesson
On Sat, Jun 4, 2011 at 6:24 AM, Sunil S Nandihalli sunil.nandiha...@gmail.com wrote: aha.. .. thanks Ken. You're welcome. The argument name key got me a little confused. It also works on sorted maps, sorting on their keys and returning a seq of entries, hence key. = (subseq (sorted-map 4 :x

Re: porting an old project - where to begin?

2011-06-04 Thread MiltondSilva
This, https://github.com/CharlesStain/clj3D , is probably what you are looking for. Though I'm not sure how the inputs are handled. Penumbra ( https://github.com/ztellman/penumbra ) is a very powerful abstraction over opengl and to it's very easy to handle inputs. On Jun 4, 8:24 am, Daniel

Re: Best Installation Option

2011-06-04 Thread Sean Corfield
I'm not a Windows user so I can't speak to any special needs in that environment but I'll +1 Leiningen as the simplest way I've found to get people up and running with Clojure. Clojure doesn't really need to be installed - it's just a JAR file that needs to be on your classpath - and Leiningen

Re: another question on macros defining functions

2011-06-04 Thread jweiss
If you are connected to a swank server, have you tried C-c C-k to compile the file you're editing? On Jun 4, 1:15 am, nil ache...@gmail.com wrote: Mark, it turns out that everything I need is known and static at hack- time. (Sorry for making it sound otherwise) I know all the names, values,

Re: porting an old project - where to begin?

2011-06-04 Thread Gregg Williams
I'm currently using the Java-based Piccolo2D (http://code.google.com/p/ piccolo2d/, http://www.piccolo2d.org/), which is robust and has a good development community and lots of sample code. It provides built-in zooming in and out of the image, which could be very useful in your situation. Good