Re: Macro with odd behavior

2013-01-26 Thread Andy Fingerhut
I do not know exactly what is going on, but suspect it is something to do with conversion between float and double (or Java Float and Double). Try replacing the argument 19.1 with each of these possibilities, and you should see what I mean: (double 19.1) (Double. 19.1) (float 19.1) (Float 19.1)

Macro with odd behavior

2013-01-26 Thread dabd
I defined this macro https://gist.github.com/4646206 that expands to a function. It behaves like this mycode.core> ((interval-test-fn "9.0,9.7-10.8,19.1+") 19.1) false mycode.core> (macroexpand-1 '(interval-test-fn "9.0,9.7-10.8,19.1+")) (clojure.core/fn [v8568] (clojure.core/or (clojure.core/<

Re: Installing Clojure on Windows 7

2013-01-26 Thread Eric MacAdie
OT: It looks like Gnuwin32 has not been updated in a while. When I use a Windows machine, I always install cygwin: http://cygwin.com/ You can install emacs from that. I feel like attaching a pic with the Dos Equis Most Interesting Man meme: I don't always use Windows. But when I do, I install Cy

Re: Installing Clojure on Windows 7

2013-01-26 Thread Ravi Sundaar
I am running into problems getting emacs (24.2) to work with clojure as well on windows 7. I have installed leiningen fine. Clojure (1.4.0) itself seems to be behaving. The packages seem to install fine in emacs - no problems. When I invoke "nrepl-jack-in" from emacs, I get an "Access Denied" e

Re: Installing Clojure on Windows 7

2013-01-26 Thread Gregory Graham
I'm a Clojure newbie, and during Christmas break I decided to learn Clojure, and installed it on my Mac, using Emacs, Nrepl, and Leiningen 2. When I got back to work, I put the same setup on my Windows 7 machine, and the only issue was the lack of wget. So, I installed Gnuwin32

Re: iOS and Windows RT support?

2013-01-26 Thread Gregory Graham
For iOS, I would take a look at clojure-scheme, which translates Clojure to Gambit Scheme, which then compiles to C. Gambit Scheme has been used successfully to create iOS apps. You can see more discussion here

Re: Blog Post: "The Magic of Macros: Lighting-Fast Templating in ClojureScript"

2013-01-26 Thread Curtis Gagliardi
Great use of macros, and I found Chris Granger's protocol commit enlightening as well, thanks. On Tuesday, January 22, 2013 12:45:34 PM UTC-6, Aria Haghighi wrote: > > Hi all, > > I've done a follow-up post on the Prismatic blog about our dommy, our > ClojureScript templating library. We added

Re: Installing Clojure on Windows 7

2013-01-26 Thread Sean Corfield
On Sat, Jan 26, 2013 at 3:24 AM, wrote: > If that is so should the developers not be frank up front and say > that Clojure is not meant to be used on Windows? Clojure works just fine on Windows. As I said, I've set up Clojure development environments on a number of Windows machines now and it re

Re: Importing gen-class classes from one namespace into another, like Java?

2013-01-26 Thread Meikel Brandmeyer
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi, you have to add a (:require com.rycole.bukkit-plugin.listeners) before you import the class. And you have to replace dashes with underscores on import. Kind regards Meikel -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.11 (GNU/Linux) Comment:

Re: Importing gen-class classes from one namespace into another, like Java?

2013-01-26 Thread Ryan Cole
I forgot to mention, I also tried replacing the dashes with underscores, in the import namespace in the core.clj file. Same error. Ryan On Saturday, January 26, 2013 4:21:24 PM UTC-6, Ryan Cole wrote: > > I'm basically writing a jar to be used entirely from a Java application, > in Clojure. I d

Re: Installing Clojure on Windows 7

2013-01-26 Thread Ryan Cole
It's actually pretty simple, if you decide to use leiningen and light table, the editor. All you have to do is install the JDK (decline the JRE option, when it asks) and then put leiningen and light table on your system path. You're done. Leiningen and light table will download dependencies as

Importing gen-class classes from one namespace into another, like Java?

2013-01-26 Thread Ryan Cole
I'm basically writing a jar to be used entirely from a Java application, in Clojure. I don't know if it's better to just use Java for this yet, or not. I'm experimenting, though. I've got every namespace in my Clojure project compiling using AOT. In one namespace, I use gen-class to create a cl

Re: Installing Clojure on Windows 7

2013-01-26 Thread Laurent PETIT
On Jan 26, 2013 12:29 PM, "AtKaaZ" wrote: > > so, wait, are you having any trouble with eclipse+counterclockwise ? it seems to be pretty straight forward, considering that I actually failed to use emacs myself (although I did get emacs-live working, i prefer eclipse+ccw for now) > I confirm that

Re: [ANN] Overtone 0.8.0 - "Performance Ready"

2013-01-26 Thread Sam Aaron
On 26 Jan 2013, at 20:17, Sam Aaron wrote: > I pulled out the GUI widgets from this release as I found a number of issues > with them at the last minute and want them to be super stable and polished > when we release them. I should also say that these GUI widgets are currently in the MASTER b

Re: [ANN] Overtone 0.8.0 - "Performance Ready"

2013-01-26 Thread Sam Aaron
Hey Craig, sorry, that was a tiny glitch which is now resolved. I pulled out the GUI widgets from this release as I found a number of issues with them at the last minute and want them to be super stable and polished when we release them. Hopefully this will be for the next release. Sam --- ht

[ANN] Overtone 0.8.0 - "Performance Ready"

2013-01-26 Thread Sam Aaron
Hi everyone, In case you were wondering how you might raise your spirits now that Christmas is well and truly over - I have the answer! Overtone 0.8 is here and is ready to bring joy to you all! We've been working hard for 7 long months on this release and things are really starting to shine.

Re: Installing Clojure on Windows 7

2013-01-26 Thread Phil Hagelberg
sampson.jo...@googlemail.com writes: > More positively, perhaps there could be a 'snapshot' build of > everything required, tested on Windows 7 and downloadable from > official sites. I'm confused; are you having trouble setting up Clojure or Emacs? Emacs is not affiliated with Clojure in any wa

Re: [ANN] Cloverage - clojure code coverage

2013-01-26 Thread Wolodja Wentland
On Sat, Jan 26, 2013 at 07:42 -0800, Jacek Lach wrote: > Cloverage 1.0.2 together with a leiningen plugin (lein-cloverage) were > recently > released. > > You can find the code at https://github.com/lshift/cloverage > > To try it out, add `[lein-cloverage "1.0.2"]` to your leiningen plugins list

[ANN] Cloverage - clojure code coverage

2013-01-26 Thread Jacek Lach
Cloverage 1.0.2 together with a leiningen plugin (lein-cloverage) were recently released. You can find the code at https://github.com/lshift/cloverage To try it out, add `[lein-cloverage "1.0.2"]` to your leiningen plugins list, and run `lein cloverage` in your project. Best Regards -- -- Y

Re: 2 issues (with workarounds) running ClojureCLR in ASP.NET

2013-01-26 Thread dmiller
ClojureCLR abides by the same restrictions on submitting code as the main Clojure project. Meaning that contribute code directly to ClojureCLR, you need a Contributor Agreement with Rich Hickey. Check out http://clojure.org/contributing. Doing so will allow you access to the JIRA site, which is

Re: Java annotations on functions, in conjunction with gen-class?

2013-01-26 Thread Hugo Duncan
Ryan Cole writes: > Hi all, beginner here, > > I'm trying to write a Minecraft plugin in Clojure, and use AOT so that the > Minecraft server can load it right up. I've got this much going, and all as > well. The server expect some of my functions in a class that I'm extending > to use an appro

Re: What people want from Clojure error messages

2013-01-26 Thread Hugo Duncan
Brian Marick writes: > I've also noticed that the messages that come from botched > macroexpansions are often not useful in that they contain no clues > about the original source, and sometimes not even a useful reference > to the original namespace. If these are macros that are under your contr

Best Clojure Platform?

2013-01-26 Thread Zed Dominic
Hi, I am a student, still trying to consider, if I should embrace Clojure as my language of choice. I have programmed in Java, C and Haskell (it brought me here) in the past, and I want to try out some list processing... Of everything I deduced on the Internet, Clojure is a JVM language, with

Re: Installing Clojure on Windows 7

2013-01-26 Thread AtKaaZ
so, wait, are you having any trouble with eclipse+counterclockwise ? it seems to be pretty straight forward, considering that I actually failed to use emacs myself (although I did get emacs-live working, i prefer eclipse+ccw for now) On Sat, Jan 26, 2013 at 12:24 PM, wrote: > > > On Friday, Jan

Re: Installing Clojure on Windows 7

2013-01-26 Thread sampson . john7
On Friday, January 25, 2013 6:19:38 PM UTC, Phil Hagelberg wrote: > > > sampso...@googlemail.com writes: > > > I have tried clojure-mode, creating .emacs.d in Emacs-24.2 - it > complained > > that there is no emacs_24.2/.emacs.d (note the underscore) and proceeded > to > > create one. Howev

namespace in gen-class/AOT classes

2013-01-26 Thread Zhao Shenyang
Hi All, I'm writing a Max/MSP [1] external in clojure by compile clojure code to java classes. A simplified version of my code is here: https://gist.github.com/195b4a3f3d1c7b559d82 . For most of you who are not familiar with MaxMSP external writing, MaxObject/post is just like println. In this co

Re: 1.5 alpha 5 - performance issues relating to hashing and equals

2013-01-26 Thread Mark Engelberg
On Fri, Jan 25, 2013 at 11:54 PM, Christophe Grand wrote: > Hi Mark, > > The hasheq chaching patch got applied between beta1 and beta2 so it's not > in alpha5. > Thanks. I tried the new release candidate, and the caching is definitely working, but the issues I raised still remain. Specifically,

Re: Blog Post: "The Magic of Macros: Lighting-Fast Templating in ClojureScript"

2013-01-26 Thread Zack Maril
That was seriously impressive, in terms of performance and simplicity. Way to go! Thanks for writing that up. -Zack On Tuesday, January 22, 2013 1:45:34 PM UTC-5, Aria Haghighi wrote: > > Hi all, > > I've done a follow-up post on the Prismatic blog about our dommy, our > ClojureScript templati