Re: [ANN] kibit, A static code analyzer

2012-03-04 Thread Tassilo Horn
Jonas writes: Hi Jonas, > Kibit[1] is a simple code analysis tool (and leiningen plugin) which > someone hopefully will find interesting or useful. The purpose of the > tool is to tell its users that "Hey, There's already a function for > that!". It's awesome! It even caught a rather exotic ca

Re: Google Summer of Code 2012 - any mentors?

2012-03-04 Thread Christopher Redinger
I've created a new page in Confluence with questions from the application. http://dev.clojure.org/display/community/Google+Summer+of+Code+2012+Application+Questions If some people can take a pass at getting answers posted to those questions, I can submit the application this week. Also needed:

Re: [ANN] kibit, A static code analyzer

2012-03-04 Thread Jonas
On Monday, March 5, 2012 12:44:14 AM UTC+2, Alex Baranosky wrote: > > Hi Jonas, > > Kibit just helped me find some good uses for inc, pos? when and when-not > in Midje, thanks :) > > https://github.com/marick/Midje/commit/b0525b7237bf615e3013317d2a0c2fc56f14bfe2 > That's very nice to hear! -

Re: [ANN] kibit, A static code analyzer

2012-03-04 Thread Jonas
On Sunday, March 4, 2012 9:39:19 PM UTC+2, David Nolen wrote: > > This is just ... fantastic! :D > > David, quick question about the core.logic unifier. Is it possible to unify on a sequence? For example (when ?x ??body) would unify with both (when (some pred) a) and (when (

Re: Performance of thread-local binding

2012-03-04 Thread jaime
Interesting 在 2012年3月4日星期日UTC+8上午8时56分56秒,Mikhail Kryshen写道: > > If I understand Clojure's dynamic vars correctly, in a context where some > var *bar* is already thread-bound, the following code: > > (binding [*bar* new-val] >(foo)) > > is semantically equivalent to: > > (let [old-val *b

Re: using contains? on transient collections

2012-03-04 Thread Sunil S Nandihalli
Thanks everybody. From your replies it seems like its in my best interest to just work around it .. :) Thanks again Sunil. On Thu, Mar 1, 2012 at 12:38 PM, Andy Fingerhut wrote: > Some related JIRA tickets, > > http://dev.clojure.org/jira/browse/CLJ-700 > http://dev.clojure.org/jira/browse/CLJ-7

Re: [ANN] kibit, A static code analyzer

2012-03-04 Thread Ambrose Bonnaire-Sergeant
What an awesome idea! Nice work Jonas. Ambrose On Mon, Mar 5, 2012 at 3:23 AM, Jonas wrote: > Kibit[1] is a simple code analysis tool (and leiningen plugin) which > someone hopefully will find interesting or useful. The purpose of the > tool is to tell its users that "Hey, There's already a fun

Re: How I can use InteractionEvent in clojure?

2012-03-04 Thread Aaron Cohen
On Sun, Mar 4, 2012 at 2:17 PM, Antonio Recio wrote: > If it is not possible to use AddObserver, how I can use gen-class in this > example? Hi Antonio, I can't use vtk on my laptop at the moment and don't want to send you down any more blind alleys with anything I can't confirm to work, so I'l

Re: Is it possible to extend a parameterized type using gen-class?

2012-03-04 Thread sim
Hi Daniel, Thanks for that but what if the type your extending is parameterised? For example using your example: (ns ExampleCollection (:gen-class :extends java.util.AbstractCollection)) How do I do the bit? Forgive me if this is obvious my java foo is weak :) -- sim On Saturday, 3 Mar

Re: [ANN] kibit, A static code analyzer

2012-03-04 Thread Moritz Ulrich
It would be awesome if this would be integrated in the REPL of in Clojure itself so it automatically checks *every* form it compiles. On Sun, Mar 4, 2012 at 23:44, Alex Baranosky wrote: > Hi Jonas, > > Kibit just helped me find some good uses for inc, pos? when and when-not in > Midje, thanks :)

Re: [ANN] kibit, A static code analyzer

2012-03-04 Thread Alex Baranosky
Hi Jonas, Kibit just helped me find some good uses for inc, pos? when and when-not in Midje, thanks :) https://github.com/marick/Midje/commit/b0525b7237bf615e3013317d2a0c2fc56f14bfe2 On Sun, Mar 4, 2012 at 5:14 PM, Alex Baranosky < alexander.barano...@gmail.com> wrote: > Indeed very cool idea.

Re: [ANN] kibit, A static code analyzer

2012-03-04 Thread Alex Baranosky
Indeed very cool idea. Thanks. -- 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. To unsubscribe from

Re: Google Summer of Code 2012 - any mentors?

2012-03-04 Thread Alexander Yakushev
I hate to be boring but if the application has not been filed yet then now is the best time to do it. Only five days left, and it is good to have some spare time to correct the mistakes, you know:). -- You received this message because you are subscribed to the Google Groups "Clojure" group. To

Re: extenders doesn't work for deftypes and defrecords

2012-03-04 Thread Tassilo Horn
Tassilo Horn writes: Hi Meikel, >> extenders is related to extend. You want satisfies?. > > It seems extends? and satisfies? are equivalent, at least with my > minimal example. > > user> (for [t [MyRecord MyType Number Object]] > [(extends? MyProt t) (satisfies? MyProt t)]) > ([true true]

Re: extenders doesn't work for deftypes and defrecords

2012-03-04 Thread Tassilo Horn
Meikel Brandmeyer writes: Hi Meikel, > extenders is related to extend. You want satisfies?. It seems extends? and satisfies? are equivalent, at least with my minimal example. --8<---cut here---start->8--- user> (for [t [MyRecord MyType Number Object]]

Re: extenders doesn't work for deftypes and defrecords

2012-03-04 Thread Meikel Brandmeyer
Hi, extenders is related to extend. You want satisfies?. Sincerely Meikel -- 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 patien

Re: [ANN] kibit, A static code analyzer

2012-03-04 Thread David Nolen
This is just ... fantastic! :D David On Sun, Mar 4, 2012 at 2:23 PM, Jonas wrote: > Kibit[1] is a simple code analysis tool (and leiningen plugin) which > someone hopefully will find interesting or useful. The purpose of the > tool is to tell its users that "Hey, There's already a function for

extenders doesn't work for deftypes and defrecords

2012-03-04 Thread Tassilo Horn
Hi all, I just found out that `extenders' doesn't return types defined with defrecord or deftype (1.4.0-beta1). --8<---cut here---start->8--- user> (defprotocol MyProt (magick [this])) MyProt user> (deftype MyType [x] MyProt (magick [t

Re: [ANN] kibit, A static code analyzer

2012-03-04 Thread James Reeves
On 4 March 2012 19:23, Jonas wrote: > Kibit[1] is a simple code analysis tool (and leiningen plugin) which > someone hopefully will find interesting or useful. The purpose of the > tool is to tell its users that "Hey, There's already a function for > that!". That sounds really cool. I did spot a

[ANN] kibit, A static code analyzer

2012-03-04 Thread Jonas
Kibit[1] is a simple code analysis tool (and leiningen plugin) which someone hopefully will find interesting or useful. The purpose of the tool is to tell its users that "Hey, There's already a function for that!". Kibit uses the core.logic[2] unifier to search for patterns of code for which there

Re: How I can use InteractionEvent in clojure?

2012-03-04 Thread Antonio Recio
If it is not possible to use AddObserver, how I can use gen-class in this example? -- 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 b

Re: PersistentHashMap vs PersistentArrayMap in Postal Question

2012-03-04 Thread Brad Lucas
That did the trick. Thanks. Oh and I'll be careful on StackOverflow :) - Brad On Mar 4, 12:51 pm, Dave Ray wrote: > Brad, > > As Kevin points out, because the values in the property file go > through read-string, they're read as Clojure literals, symbols in this > case. One solution is to make

ANN: evaljs 0.1.0

2012-03-04 Thread James Reeves
I've just released a library for evaluating Javascript within Clojure. It's effectively a Clojure-friendly interface over Mozilla's Rhino Javascript interpreter. https://github.com/weavejester/evaljs I wrote it so I'd have an easy way of wrapping Javascript libraries like LESS (http://lesscss.org

Re: PersistentHashMap vs PersistentArrayMap in Postal Question

2012-03-04 Thread Dave Ray
Brad, As Kevin points out, because the values in the property file go through read-string, they're read as Clojure literals, symbols in this case. One solution is to make the string values look like string literals to the reader: host="foo.com" port=2525 user="me" pass="pwd" Try that and never b

Re: How I can use InteractionEvent in clojure?

2012-03-04 Thread Antonio Recio
This example works if you have installed vtk in your system, but it is not possible to re-size the cone using the boxWidget. I have disabled the line of AddObserver because it gives an error (Exception in thread "main" java.lang.NoSuchMethodError: invoke). What I am doing wrong? The source of t

Re: How I can use InteractionEvent in clojure?

2012-03-04 Thread Antonio Recio
I obtain this error: Exception in thread "main" java.lang.NoSuchMethodError: invoke -- 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 b

Re: PersistentHashMap vs PersistentArrayMap in Postal Question

2012-03-04 Thread Kevin Downey
Your example is calling read-string so the resulting map has symbols instead of strings On Mar 4, 2012 7:23 AM, "Brad Lucas" wrote: > I'm using Postal (https://github.com/drewr/postal) and found something > I don't know how to fix. > > I have my application working fine if I have a var with my sm

Re: How I can use InteractionEvent in clojure?

2012-03-04 Thread Aaron Cohen
On Sun, Mar 4, 2012 at 10:07 AM, Antonio Recio wrote: > How I can use proxy to set the AddObserver? I'm not sure what you mean, sorry, but I'll take a guess. If for some reason you want to use proxy rather than fn, it's possible. Also note, there's nothing magic about using IFn here, any interfa

PersistentHashMap vs PersistentArrayMap in Postal Question

2012-03-04 Thread Brad Lucas
I'm using Postal (https://github.com/drewr/postal) and found something I don't know how to fix. I have my application working fine if I have a var with my smtp properties created as follows: (def smtp-original {:host "foo.com" :port 2525 :user "me"

Re: How I can use InteractionEvent in clojure?

2012-03-04 Thread Antonio Recio
How I can use proxy to set the AddObserver? -- 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. To unsu

Re: Clojurescript One and Websockets

2012-03-04 Thread Hubert Iwaniuk
IIRC WebSocket support was not yet released in Google Closure Library. You will need to run against development version of closure-library. For project using it check out: https://github.com/neotyk/ws-cljs/ and live demo: http://lab01.kungfoo.pl:8108/ Cheers, Hubert On Fri, Mar 2, 2012 at 4:51

Re: (.containsKey {:one 1} :one) throws Exception

2012-03-04 Thread Alf Kristian Støyle
Thanks for the feedback guys. I have submitted a jira issue for the bug: http://dev.clojure.org/jira/browse/CLJ-944 By the way, tried this with Clojure 1.2.1, and there it works fine. Cheers, Alf On Sat, Mar 3, 2012 at 16:11, Herwig Hochleitner wrote: > Looks like the type inferencer inserts

Re: Looking to help out with an open source project...

2012-03-04 Thread Hubert Iwaniuk
IMHO it is crucial that you contribute to project that you personally find interesting. So I would suggest to follow with learning and most likely you will find a project you want to contribute to. Enjoy, Hubert On Thu, Mar 1, 2012 at 4:46 AM, Sam Garrett wrote: > Hello google Clojure group. >