License question

2010-08-15 Thread Krukow
This post http://groups.google.com/group/clojure-dev/browse_thread/thread/3e317c58d1f021ba/dc81c5a54eb2b63e has gone unanswered on the dev mailing list. Rich, can you answer this one? (I can't ask there since I am not on the list). This of interest to many since the data structures are getting a

Re: AOT compilation and calling Clojure from Java

2010-08-15 Thread Meikel Brandmeyer
Hi, On 15 Aug., 21:41, sebastien wrote: > Unfortunetly it doesn't work, pointing to h.hello() and saying "cannot > find symbol". > > Any suggestions? First the method is called sayhello. Not just hello. Then you have to declare the method in the gen-class clause. (ns semantic.hello (:gen-cla

Re: Flex as a Clojure Frontend

2010-08-15 Thread Vagif Verdi
Yes, I have a flex app, talking to compojure backend via JSON. On Aug 14, 12:40 pm, nchubrich wrote: > I'm wondering if anyone has any experience developing Clojure > applications with a Flex interface, and if so, what is the best way of > going about it. > > I also wonder if anyone has used Las3

Re: What is reference?

2010-08-15 Thread Wilson MacGyver
It's clojure's STM(Software Transaction Memory). More info at http://clojure.org/concurrent_programming On Aug 15, 2010, at 11:26 PM, HB wrote: > Hey, > I don't understand what "references" are. > (ref #{}) > This creates a reference to an empty set but what is "reference" any > way? > Thanks f

What is reference?

2010-08-15 Thread HB
Hey, I don't understand what "references" are. (ref #{}) This creates a reference to an empty set but what is "reference" any way? Thanks for help and time. -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@g

FSM

2010-08-15 Thread ngocdaothanh
I have used Erlang's gen_fsm and like it very much: http://erlang.org/doc/design_principles/fsm.html I want to write a game in Clojure and I need a FSM library (best if it supports timeout event). I would like to ask if there is any Java (or Clojure?) FSM library that works well with Clojure. Tha

Re: Game development in Clojure

2010-08-15 Thread Mark Engelberg
On Sun, Aug 15, 2010 at 7:45 AM, Brian Hurt wrote: > Circular dependencies are then the canary in the coal mine, warning you that > your code is trending (hard) towards unmaintainability, You ignore the > warning at your peril. Avoiding circular dependencies can result in either: a) Everything en

Re: For David Miller: ClojureCLR binary distribution?

2010-08-15 Thread Mike K
> I thought it better to just get caught up with all the changes going > into 1.2 before dealing with packaging a set of DLLs, but I could do a > quick zip tonight rather than waiting if that is preferred. No need. It's great to hear you're getting close! Mike -- You received this message b

Argument order / Documentation Mismatch

2010-08-15 Thread Timothy Washington
Hope I'm not missing something here, but the documentation for the split function ( http://clojure.github.com/clojure/clojure.string-api.html#clojure.string/split) on 'clojure/contrib/string' says that the input args are: *Usage: (split s re)* * (split s re limit)* But I took a look at the

Re: AOT compilation and calling Clojure from Java

2010-08-15 Thread sebastien
I tried to compile hello.clj with "lein compile" and with "(compile 'semantic.hello)", and also with old versions of clojure.jar and clojure.contrib.jar (current one is 1.2-beta1), but it all gave the same result. -- You received this message because you are subscribed to the Google Groups "Cloju

Re: AOT compilation and calling Clojure from Java

2010-08-15 Thread sebastien
> Can you run: > javap YourClass.class > and give us the result? Here it is: public class semantic.hello extends java.lang.Object { public static {}; public semantic.hello(); public java.lang.Object clone(); public int hashCode(); public java.lang.String toString();

Re: For David Miller: ClojureCLR binary distribution?

2010-08-15 Thread dmiller
I have two things left to do to bring ClojureCLR mostly up to 1.2RC3: implement gvec and one other commit on map/record equality. The latter is 20 minutes. The former, gvec, is mostly done, but I ran into a little compiler glitch I have to fix. At the moment, I run all relevant clojure-test test

Re: AOT compilation and calling Clojure from Java

2010-08-15 Thread Daniel Gagnon
> > > Any suggestions? > > Can you run: javap YourClass.class and give us the result? -- 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 - plea

For David Miller: ClojureCLR binary distribution?

2010-08-15 Thread Mike K
Hi David, I saw some comments recently about a potential binary distribution of ClojureCLR. Do you have any idea as to when you might be targeting this or what level of functionality it might contain? Thanks for all your hard work on this project! I'm very eager to try it out. Mike -- You

Re: AOT compilation and calling Clojure from Java

2010-08-15 Thread sebastien
Hi Meikel, Unfortunetly it doesn't work, pointing to h.hello() and saying "cannot find symbol". ^ Same with my Eclipse, which says that import "semantic" cannot be resolved, though both package and class are in the bin (classes) directory.

Re: ANN: Emacs auto-complete plugin for slime users

2010-08-15 Thread Steve Purcell
On 15 Aug 2010, at 10:13, Michał Marczyk wrote: > On the other hand, I'm having mixed luck with fuzzy completion... > slime-fuzzy-complete-symbol offers 'with-bindings and 'with-bindings* > as completions for 'wi-bi, but so far I haven't been able to provoke > ac + ac-slime to do the same (with (l

Re: ANN: Emacs auto-complete plugin for slime users

2010-08-15 Thread Steve Purcell
On 15 Aug 2010, at 10:43, sponge bob wrote: > > On 14 авг, 14:19, Steve Purcell wrote: >> >> A while ago I hooked Slime's completion and documentation features into the >> popular Emacs auto-completion framework "auto-complete" >> (http://www.emacswiki.org/emacs/AutoComplete). >> >> Since it

Re: Flex as a Clojure Frontend

2010-08-15 Thread Richard Lyman
On Sat, Aug 14, 2010 at 1:40 PM, nchubrich wrote: > I'm wondering if anyone has any experience developing Clojure > applications with a Flex interface, and if so, what is the best way of > going about it. > I have quite a bit of experience. I've been writing an internal implementation of the non-

Bug of instance? when called in deftype

2010-08-15 Thread Nicolas Oury
Dear all, I spotted something than I thought was unusual in 1.2-RC2 (haven't try RC3 yet) (defprotocol Test (test [x])) (deftype Foo [] Test (test [x] (instance? Foo x))) (test (Foo.)) => false (instance? Foo (Foo.)) => true Should I submit or I am missing something obvious? It is never

Re: Swank Break Issues.

2010-08-15 Thread George Jahad
try using clojure 1.2. On Aug 14, 11:56 am, Ivan Willig wrote: > Hi list, > I am trying to use swank.core/break while bugging. The break point gets > thrown but none of my local variables up  in the stack trace.  I am using > swank-clojure and leiningen > This is my project.clj file

Re: AOT compilation and calling Clojure from Java

2010-08-15 Thread Meikel Brandmeyer
Hi, Am 15.08.2010 um 18:04 schrieb sebastien: > I understand that after AOT compilation Clojure namespaces and > functions became completely normal Java classes and can be called from > any Java code, is it correct? If so, how will look like this call? For > example, I have clojure module: > > (

Re: RFC: New Clojure launcher

2010-08-15 Thread mac
On Aug 15, 6:02 pm, Wilson MacGyver wrote: > This still requires JDK installed right? On the OSX version, does it > create DMG file? > Since for an end user OSX app, that's what people expect. > It requires JRE installed, not JDK. It comes with the OS on everything but windows but should be easy t

AOT compilation and calling Clojure from Java

2010-08-15 Thread sebastien
I understand that after AOT compilation Clojure namespaces and functions became completely normal Java classes and can be called from any Java code, is it correct? If so, how will look like this call? For example, I have clojure module: (ns semantic.hello (:gen-class)) (defn -sayhello [] (print

Re: RFC: New Clojure launcher

2010-08-15 Thread Wilson MacGyver
This still requires JDK installed right? On the OSX version, does it create DMG file? Since for an end user OSX app, that's what people expect. On turning jars into .exe on windows, have you looked at jsmooth? http://jsmooth.sourceforge.net/index.php On Sun, Aug 15, 2010 at 11:51 AM, mac wrote:

RFC: New Clojure launcher

2010-08-15 Thread mac
Hello all. I have started work on a new Clojure launcher with the intent of making something that is nicely integrated with operating systems so that apps feel more native and are easier to start. This is probably mostly relevant for desktop apps but might be usable for server apps as well. The rea

Re: ANN: Emacs auto-complete plugin for slime users

2010-08-15 Thread sponge bob
On 14 авг, 14:19, Steve Purcell wrote: > > A while ago I hooked Slime's completion and documentation features into the > popular Emacs auto-completion framework "auto-complete" > (http://www.emacswiki.org/emacs/AutoComplete). > > Since it may be of interest to others, I've released the completi

Re: ANN: Emacs auto-complete plugin for slime users

2010-08-15 Thread Matthias Schneider
Really usefull, nice work! And a perfect time to finally update my old auto-complete installation to version 1.3. On Aug 14, 12:19 pm, Steve Purcell wrote: > Hi all, > > A while ago I hooked Slime's completion and documentation features into the > popular Emacs auto-completion framework "auto-co

Flex as a Clojure Frontend

2010-08-15 Thread nchubrich
I'm wondering if anyone has any experience developing Clojure applications with a Flex interface, and if so, what is the best way of going about it. I also wonder if anyone has used Las3rI'm a little reluctant to use it because the Flash Builder programming environment is so effective. Thanks

Swank Break Issues.

2010-08-15 Thread Ivan Willig
Hi list, I am trying to use swank.core/break while bugging. The break point gets thrown but none of my local variables up in the stack trace. I am using swank-clojure and leiningen This is my project.clj file . Has anyone run into this issue before. A

Re: ANN: Emacs auto-complete plugin for slime users

2010-08-15 Thread pmh
Great work, thank you for sharing. - Patrik On Aug 14, 12:19 pm, Steve Purcell wrote: > Hi all, > > A while ago I hooked Slime's completion and documentation features into the > popular Emacs auto-completion framework "auto-complete" > (http://www.emacswiki.org/emacs/AutoComplete). > > Since i

Re: Game development in Clojure

2010-08-15 Thread Brian Hurt
Sorry, hit send too soon. On Sun, Aug 15, 2010 at 10:43 AM, Brian Hurt wrote: > > > On Sat, Aug 14, 2010 at 10:33 AM, Eric Lavigne wrote: > >> >> I originally wanted to include the contents of the units file in the >> physics file, but then there would be a circular dependency between >> physics

Re: Game development in Clojure

2010-08-15 Thread Brian Hurt
On Sat, Aug 14, 2010 at 10:33 AM, Eric Lavigne wrote: > > I originally wanted to include the contents of the units file in the > physics file, but then there would be a circular dependency between > physics and io. So what was the problem with splitting units out into it's own name space? Circu

Re: ANN: Emacs auto-complete plugin for slime users

2010-08-15 Thread Michał Marczyk
On 15 August 2010 09:57, Steve Purcell wrote: > Excellent - so if there are any quirks with this plugin, at least there'll be > a couple more users to help fix it up now! Definitely. :-) > (For instance, it doesn't work perfectly if you type "some-namespace/" and > then try to start completion

Re: ANN: Emacs auto-complete plugin for slime users

2010-08-15 Thread Heinz N. Gies
Steve, this is awesome! Regards, Heinz -- 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 unsubscr

Re: ANN: Emacs auto-complete plugin for slime users

2010-08-15 Thread Steve Purcell
On 15 Aug 2010, at 08:45, Michał Marczyk wrote: > This is absolutely awesome! I notice it also works perfectly with > Common Lisp... I'm in a state of blissful exaltation. :-) Excellent - so if there are any quirks with this plugin, at least there'll be a couple more users to help fix it up now

Re: ANN: Emacs auto-complete plugin for slime users

2010-08-15 Thread Michał Marczyk
This is absolutely awesome! I notice it also works perfectly with Common Lisp... I'm in a state of blissful exaltation. :-) Sincerely, Michał -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.co