Re: How I can use InteractionEvent in clojure?

2012-03-05 Thread Antonio Recio
Yes I have tried using fn and I gives me the same 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

Re: [ANN] kibit, A static code analyzer

2012-03-05 Thread David Nolen
It should unify: (foo ?x . ?y) If it doesn't we should open up a ticket for that. On Sunday, March 4, 2012, Jonas jonas.enl...@gmail.com wrote: 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

Re: [ANN] kibit, A static code analyzer

2012-03-05 Thread Jonas
On Monday, March 5, 2012 2:51:23 PM UTC+2, David Nolen wrote: It should unify: (foo ?x . ?y) If it doesn't we should open up a ticket for that. It seems to work, thanks! https://github.com/jonase/kibit/commit/4ec52462d3920470be63916928021f266f838f1b -- You received this message

Re: Google Summer of Code 2012 - any mentors?

2012-03-05 Thread David Nolen
Thanks! Unless somebody else wants to - I'm willing to be the backup admin. David On Mon, Mar 5, 2012 at 1:21 AM, Christopher Redinger redin...@gmail.comwrote: I've created a new page in Confluence with questions from the application.

Clojurescript: persistent data structures?

2012-03-05 Thread László Török
Hi, I may not be fully up to speed with the latest developments re. Clojurescript, so please bear with me. I was wondering, what are the impediments of implementing persistent data structures in Clojurescript similar to those Clojure already has? (and getting rid of the current copy-on-write

Re: Clojurescript: persistent data structures?

2012-03-05 Thread David Nolen
On Mon, Mar 5, 2012 at 10:55 AM, László Török ltoro...@gmail.com wrote: Hi, I may not be fully up to speed with the latest developments re. Clojurescript, so please bear with me. I was wondering, what are the impediments of implementing persistent data structures in Clojurescript similar

Re: Clojurescript: persistent data structures?

2012-03-05 Thread László Török
David, Was it a straight port of the jvm implementation? Is there any gist, blog post of your findings? Thx L sent from my mobile device On Mar 5, 2012 5:05 PM, David Nolen dnolen.li...@gmail.com wrote: On Mon, Mar 5, 2012 at 10:55 AM, László Török ltoro...@gmail.com wrote: Hi, I may not

Re: Clojurescript: persistent data structures?

2012-03-05 Thread David Nolen
Straight port of the Java code: https://github.com/swannodette/persistent-vector/blob/master/persistent-vector.js Some quick performance notes: 10-25X longer to build than JS Array (could be improved w/ transients) 5-6X slower to access than JS Array But of course versus copy-on-write there's

datomic has been announced

2012-03-05 Thread kovas boguta
Since not everyone reads twitter or hacker news, http://datomic.com/ has been updated with an unveiling of Rich's new project. -- 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

Re: Heroku and lein-cljsbuild

2012-03-05 Thread Phil Hagelberg
Timothy Licata timothy.lic...@gmail.com writes: I've tried a few things. First of all, heroku doesn't put :dev-dependencies on the classpath by default[1]. When I enable LEIN_DEV, the :dev-dependencies are downloaded, but the app times out while booting[2]. If I try moving lein-cljsbuild

Re: Heroku and lein-cljsbuild

2012-03-05 Thread Phil Hagelberg
Sorry, that wasn't too clear. Using :plugins is the correct approach here. -Phil -- 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

Re: Google Summer of Code 2012 - any mentors?

2012-03-05 Thread Paul deGrandis
I'll happily be a backup mentor. I've gone through the Summer of Code program twice as a student (Nmap and PyPy). I'll actively help any mentor or pair with any student. Paul On Mar 5, 10:38 am, David Nolen dnolen.li...@gmail.com wrote: Thanks! Unless somebody else wants to - I'm willing to

Re: How I can use InteractionEvent in clojure?

2012-03-05 Thread Aaron Cohen
Actually, one last try before I build vtk and try it myself. The problem seems to me that vtk is looking for a method that takes no parameters and return void. invoke returns Object, let's use run instead. So try this: (def myCallback (fn [] (let [t (vtkTransform.)]

Re: Pretty print defn

2012-03-05 Thread Nikem
java -jar lib/clojure-1.3.0.jar user= (defn qw [] (inc 2)) #'user/qw user= (use 'clojure.repl) nil user= (clojure.repl/source-fn qw) ClassCastException user$qw cannot be cast to clojure.lang.Symbol clojure.core/ns-resolve (core.clj:3879) user= (clojure.repl/source-fn 'qw) nil user= (println

Re: Rich Hickey Video - unit conversion language

2012-03-05 Thread martintrojer
And now there is Frinj! :) https://github.com/martintrojer/frinj On Monday, 21 June 2010 12:46:55 UTC+1, Julian wrote: Rich Hickey made reference in one of his videos to a language that could convert between all different kinds of units and dimensions. Does anybody recall what that was?

Weird issue with :require in clojurescript

2012-03-05 Thread Aaron
It seems that when I require two namespaces in a namespace definition, the clojurescript compiler misses the first require. I have a module that has a ns definition more or less like the following: (ns my-namespace (:require [lib1 :as l1]) (:require [lib2 :as l2])) Using clojurescript master

Re: [ANN] kibit, A static code analyzer

2012-03-05 Thread Chip Collier
I'm picturing flymake-clojure in our futures. On 03/04/2012 05:05 PM, Ambrose Bonnaire-Sergeant wrote: What an awesome idea! Nice work Jonas. Ambrose On Mon, Mar 5, 2012 at 3:23 AM, Jonas jonas.enl...@gmail.com mailto:jonas.enl...@gmail.com wrote: Kibit[1] is a simple code analysis

Re: Disable colored output

2012-03-05 Thread Stuart Sierra
Sorry, I am not actively working on Lazytest right now. I suggest patching your local version, or just ignoring it. -S On Monday, February 27, 2012 11:35:10 PM UTC-5, Vladimir Matveev wrote: mvn goalname -Dinsert.property.here=true I tried this and it didn't work. AFAICT, the lazytest

Re: Weird issue with :require in clojurescript

2012-03-05 Thread Stuart Sierra
Yes, it is incorrect, in both Clojure and ClojureScript, to repeat the (:require ...) or (:use ...) forms in an `ns` declaration. -S On Monday, March 5, 2012 12:26:03 PM UTC-5, Aaron wrote: It seems that when I require two namespaces in a namespace definition, the clojurescript compiler

Re: Pretty print defn

2012-03-05 Thread Phil Hagelberg
Nikem gni...@gmail.com writes: java -jar lib/clojure-1.3.0.jar user= (defn qw [] (inc 2)) #'user/qw user= (use 'clojure.repl) nil user= (clojure.repl/source-fn qw) ClassCastException user$qw cannot be cast to clojure.lang.Symbol clojure.core/ns-resolve (core.clj:3879) user=

Re: How I can use InteractionEvent in clojure?

2012-03-05 Thread Antonio Recio
I have tried the new code. There are not errors in the prompt, but the boxWidget still doesn't work. It seems like boxWidget and the cone are not well connected. The final code that I have after using run: (ns example (:import (javax.swing JFrame JPanel SwingUtilities)))

Re: datomic has been announced

2012-03-05 Thread Linus Ericsson
Mindblowing! I can imagine many applications for datomic, it looks like a very powerful abstraction which is overcoming many of the problems I've been encountering when I've built applications. Thanks, Rich! Chris Grangers awesome experimental UI for developing javascript games is covered in

Re: Weird issue with :require in clojurescript

2012-03-05 Thread Sean Corfield
On Mon, Mar 5, 2012 at 2:15 PM, Stuart Sierra the.stuart.sie...@gmail.com wrote: Yes, it is incorrect, in both Clojure and ClojureScript, to repeat the (:require ...) or (:use ...) forms in an `ns` declaration. Really? Most of the Clojure code I've seen out in the wild has a :require for each

Re: datomic has been announced

2012-03-05 Thread Hank
From watching the presentation, it seems to include (but not be limited to!) the some of the good parts of Prevayler and CouchDB, so anyone familiar with those will find the Datomic concept familiar, too. Prevayler (www.prevayler.org) was announced on Slashdot in 2003 (!) and they basically

Re: Weird issue with :require in clojurescript

2012-03-05 Thread Aaron
Thanks Stuart. In the documentation for ns it says that references can be zero or more of: (:refer-clojure ...) (:require ...) (:use ...) (:import ...) (:load ...) (:gen-class). Also, using (:require...) twice in clojure (1.3) actually does work. Maybe there could be some clarification in

Re: Weird issue with :require in clojurescript

2012-03-05 Thread Weber, Martin S
Then both Clojure and ClojureScript's `ns` macro should complain about multiple present (:require ..) or (:use ..) forms at compile-time. At lest Clojure's `ns` macro doesn't do that on clj-1.3. Regards, -Martin On 2012-03-05 17:15 , Stuart Sierra the.stuart.sie...@gmail.com wrote: Yes, it is

ANN: Seesaw 1.4.0

2012-03-05 Thread Dave Ray
Hi, Seesaw 1.4.0 is out now. The release notes [1] have highlights of all the changes since 1.3.0. Note there are two breaking changes in the API. I believe the impact of these changes should be minimal since they were in areas of the API even I was never able to use effectively. I'd also like