Re: [GSOC 2013] Program analysis suite, based on Rich Hickey's Codeq

2013-04-30 Thread Ambrose Bonnaire-Sergeant
Hi Navgeet, I'm not sure if rewriting jvm.tools.analyzer is a good idea, given that there is CinC project for this year's GSoC. Perhaps you could contribute to the CinC analyzer, and then follow with integration with Codeq? Thanks, Ambrose On Wed, May 1, 2013 at 1:45 AM, Navgeet Agrawal wrote:

Re: Something like cond, but with test-fns

2013-04-30 Thread Ken Scambler
That's the one I want. Thanks! On 29 April 2013 04:37, Stuart Sierra wrote: > You could do it with `condp`: > > (condp #(%1 %2) value > foo-pred? (foo-result) > bar-pred? (bar-result) > else? (default-result)) > > -S > > > > On Saturday, April 20, 2013 5:15:14 AM UTC-4, Ken Scambler wrot

Re: Using a Java game engine in my project

2013-04-30 Thread Alex Fowler
Finally it works! Had some more issues with Eclipse running on Java 7, but wiping out all Java and installing the latest JDK of version 7 and showing some little attention to Eclipse did the trick! Thank you very much for the directions, atkaaz and other buddies - I would've never been able to f

Re: Clojure Login form error: java.lang.ClassCastException: clojure.lang.Var$Unbound cannot be cast to clojure.lang.Atom

2013-04-30 Thread David Toomey
To clarify, I was suspecting that I did something wrong in the (POST) route. I tried using (:syms) as well as (:strs). I'm really stuck on what is happening here. -- -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to

Re: Clojure Login form error: java.lang.ClassCastException: clojure.lang.Var$Unbound cannot be cast to clojure.lang.Atom

2013-04-30 Thread David Toomey
On Tuesday, April 30, 2013 6:25:11 AM UTC-7, Tassilo Horn wrote: > > David Toomey > writes: > > Hi David, > > > The error, as mentioned in the title: java.lang.ClassCastException: > > clojure.lang.Var$Unbound cannot be cast to clojure.lang.Atom > > In which line? > > The error is where the b

Re: Using a Java game engine in my project

2013-04-30 Thread AtKaaZ
I had the issue here: https://code.google.com/p/counterclockwise/issues/detail?id=567 I think the fix is to use java 7 for eclipse not java 6 On Tue, Apr 30, 2013 at 10:01 PM, Alex Fowler wrote: > Same thing... I have no firewall or other restrictions... Have just > deleted the ccw folder, and

Re: Using a Java game engine in my project

2013-04-30 Thread Alex Fowler
Same thing... I have no firewall or other restrictions... Have just deleted the ccw folder, and now it creates the folder, but does not fetch a jar into it. And the error is the same... reaally strange that :) Tried removing all the Run Configs just to be sure.. still same :) Idk, maybe if I r

Re: Using a Java game engine in my project

2013-04-30 Thread AtKaaZ
actually looks like I spoke too soon, what I said doesn't seem to apply to you because the console message says ccw.server instead of ccw-server (dot vs dash), so it should be able to fetch that unless you're not allowing it in firewall? I emptied my .m2 folder and it works for me, ccw fetches all

Re: Using a Java game engine in my project

2013-04-30 Thread AtKaaZ
also I think Ctrl+Alt+S is my Ctrl+Alt+L , either that or they both do the same thing. I forgot whether I added Ctrl+Alt+L myself but it's meant to mean Load File In REPL On Tue, Apr 30, 2013 at 9:35 PM, Alex Fowler wrote: > Right, I had the stable version, not beta, and Ctrl+Alt+L had no effect

Re: Using a Java game engine in my project

2013-04-30 Thread AtKaaZ
sorry I meant, Run As->Run Configurations... :) On Tue, Apr 30, 2013 at 9:41 PM, AtKaaZ wrote: > oh yes that thing, just do Run->Run As... on your project > and delete all the children inside Clojure > things like: > fightingsail Leiningen > where fightingsail is the name of the project > > an

Re: Using a Java game engine in my project

2013-04-30 Thread AtKaaZ
oh yes that thing, just do Run->Run As... on your project and delete all the children inside Clojure things like: fightingsail Leiningen where fightingsail is the name of the project and when you try to start the REPL again, it will create a new one with the correct Arguments On Tue, Apr 30, 20

Re: Using a Java game engine in my project

2013-04-30 Thread Alex Fowler
Right, I had the stable version, not beta, and Ctrl+Alt+L had no effect at all. So now I have updated to the latest beta. Now repl does not start at all :) The error in the console is: Could not transfer artifact ccw:ccw.server:pom:0.1.0 from/to central (http://repo1.maven.org/maven2/): re

Re: Using a Java game engine in my project

2013-04-30 Thread AtKaaZ
oh nevermind I misread that. So it doesn't work for you with ccw? are you using latest ccw beta? When I start the core.clj file with Ctrl+Alt+L to load it in a repl it works for me Eclipse SDK Version: 4.3.0 Build id: I20130430-0031 Counterclockwise (Clojure plugin for Eclipse)0.13.0.201304

Re: Using a Java game engine in my project

2013-04-30 Thread AtKaaZ
seems to be working fine for me, are you not starting the repl from the project's folder ? tested with lein 2.2.0 from master On Tue, Apr 30, 2013 at 8:49 PM, Alex Fowler wrote: > Just tried that! Very nice! Got it running with "lein repl" from Windows > command prompt!!! However, when I fire up

Re: Using a Java game engine in my project

2013-04-30 Thread Alex Fowler
Just tried that! Very nice! Got it running with "lein repl" from Windows command prompt!!! However, when I fire up the repl from Eclipse CCW, I get: ClassNotFoundException com.jme3.app.SimpleApplication java.net.URLClassLoader$1.run (URLClassLoader.java:366) I assume, this is due to the fact t

Re: [GSOC 2013] Program analysis suite, based on Rich Hickey's Codeq

2013-04-30 Thread Navgeet Agrawal
Hi all, I've started with the application, though it has gotten quite late. I've explained what I intend to do in this gist - https://gist.github.com/Navgeet/5490202 I'm kinda stuck in the last part - analysis techniques. I would appreciate suggestions that are not too heavy to deal with, given my

Re: login with friend, but username blank, despite keyword-params middleware in place

2013-04-30 Thread Nelson Morris
On Tue, Apr 30, 2013 at 10:57 AM, larry google groups < lawrencecloj...@gmail.com> wrote: > > This at least gets me a different error, which is good. But how did you > know this? Where is this documented? Why does the order matter? > > > I knew this because the :params map had strings instead of k

[ANN] Portugal Clojure

2013-04-30 Thread Plínio Balduino
Hi there (I'll translate the announcement) We opened a Clojure group for discussion in Portuguese (Brazilian, European and African Portuguese). It's a small effort to increase the usage of Clojure in Brazil and Portugal and help the newcomers to enjoy this awesome language. Regards Plínio 2013/

Re: Portugal Clojure

2013-04-30 Thread https://github.com/jmaandrade/orchestration
Viva, foi criado o grupo https://groups.google.com/forum/#!forum/clojure-portugal para discusão e divulgação do Clojure Segunda-feira, 25 de Março de 2013 10:48:57 UTC, https://github.com/jmaandrade/orchestration escreveu: > > Viva, > > Gostaria de abrir um tema de discussão sobre a utilização

Re: [ANN] repetition-hunter

2013-04-30 Thread mynomoto
Now you can find repetitions in your code across multiple namespaces, Alex. And filter the results. https://github.com/mynomoto/repetition-hunter On Sunday, April 28, 2013 5:45:06 PM UTC-3, mynomoto wrote: > > Not yet, but doesn't look hard to do. Will put in the todo list. > > On 4/28/13, Ale

Re: memorize-clj

2013-04-30 Thread Alex Fowler
Agreed! Totally worthwhile. I even do this consciously sometimes. понедельник, 29 апреля 2013 г., 11:01:17 UTC+4 пользователь Chris Ford написал: > > Jorge, reinventing the wheel is a very worthwhile pursuit. Maybe you'll > come up with something new, and certainly you'll learn something. > > Th

Re: login with friend, but username blank, despite keyword-params middleware in place

2013-04-30 Thread larry google groups
> is in the wrong order. It needs to be > > (-> > > (wrap-keyword-params) > (wrap-nested-params) > (wrap-params)) This at least gets me a different error, which is good. But how did you know this? Where is this documented? Why does the order matter? On Monday, Apri

Re: Clojure special forms

2013-04-30 Thread David Simmons
Thanks Christophe. Love the book BTW. cheers Dave -- -- 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

Re: Clojure special forms

2013-04-30 Thread David Simmons
Hi All thank you for your answers. I think I now understand (@Gregory - completely agree about Clojure being pragmatic). Onwards and Upwards Kind Regards Dave -- -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email

Re: Observing namespace changes

2013-04-30 Thread Dave Sann
Out of interest, did any library come out of this? On Thursday, 15 January 2009 06:46:52 UTC+11, Laurent PETIT wrote: > > OK thank you both Chris & Mike for your answer. > > What I've done for the moment is similar to what Mike did: at any > place where there is a chance for something to change

Re: Clojure special forms

2013-04-30 Thread Christophe Grand
Hi David, Special forms exist because they have special semantics and evaluation rules. Is there some overlap between them? Absolutely: when you have fn you don't need let. Still we have let. About reduce: originally reduce was pure clojure with no interop, the .reduce you see is just for the chu

Re: Clojure special forms

2013-04-30 Thread Gregory Graham
This shows the pragmatic nature of Clojure. A founding idea of Lisp is that the whole language can be built up from a handful of simple elements, and this is a good thing for a lot of reasons. However, practical concerns such as efficiency and interoperability may lead implementers to access the

Re: http-kit on heroku?

2013-04-30 Thread Feng Shen
Hi, here is how to do hot code reload: http://http-kit.org/migration.html#reload On Monday, April 15, 2013 12:48:50 PM UTC+8, Wei Hsu wrote: > > Thanks guys, got it sorted out. > > If I may ask a followup question, how do you run it in development? > Pre-http-kit, I've been using lein ring se

Re: Clojure Login form error: java.lang.ClassCastException: clojure.lang.Var$Unbound cannot be cast to clojure.lang.Atom

2013-04-30 Thread Tassilo Horn
David Toomey writes: Hi David, > The error, as mentioned in the title: java.lang.ClassCastException: > clojure.lang.Var$Unbound cannot be cast to clojure.lang.Atom In which line? Hm, the message tells that you are using an atom function like swap! on something that's not an Atom but Unbound.

Re: Using a Java game engine in my project

2013-04-30 Thread Alex Fowler
Good that you've mentioned it! While I use JME for a long time already, I started researching LibGDX not so long ago. For now, I program right on my Android Tablet PC, using AIDE with libgdx jars in the project. But the language is Java... sadly, I find that Clojure did not yet make it into Dal

Re: Using a Java game engine in my project

2013-04-30 Thread Alex Fowler
Yeah, to have an option is a good idea! I just wanted to say, that I wouldn't want it to be removed completely :) As far as I understand, you're making up some library-type project.. Do you have a page or a blog where I could track the progress and be up-to-date with the current version? I thin

Re: Using a Java game engine in my project

2013-04-30 Thread Mikera
Depending on exactly what you want, it may also be worth taking a look at LibGDX: http://libgdx.badlogicgames.com/ Seems like a pretty promising library, with plenty of cross platform support. Not as much of a complete game engine as jMonkeyEngine, but perhaps more in keeping with the Clojure

Re: Using a Java game engine in my project

2013-04-30 Thread Jonathan Fischer Friberg
> > I think that for today I will stick with the "lib" folder solution, > proposed by James, but I encourage the knowledgefull people Jonathan and > James to work together to deliver a Clojars or Amazonaws online repository > with more-or-less daily update, since the engine is really well-maintaine

The order of lazy-seq

2013-04-30 Thread Liao Pengyu
Code: (def fib (lazy-seq (concat [0 1] (map + fib (rest fib) (take 10 fib) ;; Bomb Got the error message: _StackOverflowError clojure.lang.RT.more (RT.java:589)_ And the following solutions works well: (def fib (concat [0 1] (lazy-seq (map + fib (rest fib)

Re: testing for nil may not be enough

2013-04-30 Thread AtKaaZ
On Tue, Apr 30, 2013 at 10:51 AM, Tassilo Horn wrote: > "Jim - FooBar();" writes: > > > funny you should mention that!!! that is exactly what I meant by 'my > > fault'...I've come to realise that dynamic scope is almost evil, thus > > I go to great lengths to avoid it completely...in the rare ca

Re: testing for nil may not be enough

2013-04-30 Thread AtKaaZ
On Tue, Apr 30, 2013 at 11:00 AM, Tassilo Horn wrote: > Gary Trakhman writes: > > > If you're passing the var itself, I don't see why you'd need a macro. > > If you want to check the namespace for a var matching an unquoted > > symbol, you could do that in a macro. > > In case you really don't h

Re: Using a Java game engine in my project

2013-04-30 Thread Alex Fowler
Thankew to all who have answered. A relief is to find me not alone. I will write a composite answer to all proposals at once. I have done an extensive googling during my initial search and found the Aurellem blog to be a very insighting and profound. I planned to start coupling Clojure and JME3

Re: Iota, reducers, word counting

2013-04-30 Thread Meikel Brandmeyer (kotarak)
Hello, your function does not follow the contract of fold. What you provided is basically the reduce function, but it doesn't work together with fold. For fold you need to merge the different maps you created in the subtasks. So the combine function must look different. (defn my-frequencies

Lib-Noir session error: java.lang.ClassCastException: clojure.lang.Var$Unbound cannot be cast to clojure.lang.Atom

2013-04-30 Thread David Toomey
Hello, I am trying to get a login form to work in Compojure. I had originally written this app in Noir, but now I'm trying to move it off of Noir. I am now using Lib-Noir and the (noir.session) namespace doesn't seem to be working the same way as Noir. I'm now confused. The error, as mentioned

Clojure Login form error: java.lang.ClassCastException: clojure.lang.Var$Unbound cannot be cast to clojure.lang.Atom

2013-04-30 Thread David Toomey
Hello, I am trying to get a login form to work in Compojure. I had originally written this app in Noir, but now I'm trying to move it off of Noir. I am now using Lib-Noir and the (noir.session) namespace doesn't seem to be working the same way as Noir. I'm now confused. The error, as mentioned

Iota, reducers, word counting

2013-04-30 Thread Catonano
Hello people, I would like you to take a look at the question I posted here http://meta.stackoverflow.com/questions/178326/why-is-this-question-not-good-enough I´m trying to implement a word count of a large file using the machinery by Iota ( https://github.com/thebusby/iota#readme ) just as an

Re: testing for nil may not be enough

2013-04-30 Thread Tassilo Horn
Gary Trakhman writes: > If you're passing the var itself, I don't see why you'd need a macro. > If you want to check the namespace for a var matching an unquoted > symbol, you could do that in a macro. In case you really don't have the var itself but just its value, then "unbound" is a value, to

Re: testing for nil may not be enough

2013-04-30 Thread Tassilo Horn
AtKaaZ writes: > Seems like a good idea to have the root binding be nil. How would you > make it check for bound inside the function? do we need some kind of > macro? If the var has a root binding of nil, then you can't distinguish the cases "explicitly bound to nil" and "root binding", so I thi

Re: testing for nil may not be enough

2013-04-30 Thread Tassilo Horn
"Jim - FooBar();" writes: > funny you should mention that!!! that is exactly what I meant by 'my > fault'...I've come to realise that dynamic scope is almost evil, thus > I go to great lengths to avoid it completely...in the rare cases where > I do use it I always make sure it is bound to a init/

Re: Clojure special forms

2013-04-30 Thread Tassilo Horn
Michael Klishin writes: Hi Michael, > or http://clojure-doc.org/articles/language/macros.html#special_forms :) Technically, fn, letfn, and loop are no special forms but macros built on top of the real special forms fn*, letfn*, and loop*. That distinction is made for let/let* in the itemize li