Re: Executing Future

2011-04-28 Thread MohanR
The problem was elsewhere but I realized that Clojure has support for futures at the level of the language even though it relies on java.util.concurrent. So I have this question. I have heard that Clojure's data structures are immutable and it has support for promises, agents, atoms etc. What

Re: newbie question

2011-04-28 Thread lesni bleble
Simple switch from openjdk to sun-java6 problem resolved. On Apr 22, 8:18 pm, lesni bleble lesni.ble...@gmail.com wrote: hello again, i have another problem.  I'm trying simple applet: $ cat src/foo/applet.clj (ns foo.applet   (:import (java.awt Graphics2D Graphics Frame Color Image

Re: How to determine a function name at runtime

2011-04-28 Thread MohanR
There should be a way to print the currently executing function and the calling function logging purposes ? I believe Java has StackTraceElement[] to do this. Thanks, Mohan -- You received this message because you are subscribed to the Google Groups Clojure group. To post to this group, send

Re: Executing Future

2011-04-28 Thread Jonathan Fischer Friberg
So I have this question. I have heard that Clojure's data structures are immutable and it has support for promises, agents, atoms etc. It's not that clojure's data structures support promises, agents ... It's more like promises, agents ... support clojure's data structures. Changing something in

Re: Executing Future

2011-04-28 Thread Paul deGrandis
Another great resource for Clojure is ClojureDocs. The doc for 'future' has a simple example: http://clojuredocs.org/clojure_core/clojure.core/future Not only does it show you the doc string and an example, if your scroll down you can see the source code for the function. You'll see that lot

Re: (just) emacs mode

2011-04-28 Thread John V
On Apr 28, 6:23 am, Phil Hagelberg p...@hagelb.org wrote: On Apr 27, 6:07 am, John V johnv02...@gmail.com wrote: So, I would include info about using -*- in the .clj file and how to modify the auto-mode-alist and enable or disable fontifying the buffer. This is the kind of thing that

Logos - core.logic

2011-04-28 Thread David Nolen
Logos has been accepted into Clojure contrib: https://github.com/clojure/core.logic. There's a considerable amount of work still to do but I'm excited to see how the Clojure community might take advantage of a logic programming library. Two things I'd like to see: 1) Make it faster (it's pretty

Re: dead simple compile to jar file

2011-04-28 Thread Mike Meyer
On Wed, 27 Apr 2011 10:45:58 -0700 (PDT) cej38 junkerme...@gmail.com wrote: Hi, I would like the simplest method to compile a few lines of clojure code into a jar file that I can distribute to some fellow scientists that don't know much (if anything) about java or clojure. Since I am not

Re: Logos - core.logic

2011-04-28 Thread Paul deGrandis
This is quality work David, that I feel opens up Clojure to even more exciting domains. I'd love to get involved in helping your second goal. As ideas and projects come up, please advertise them on the list or email me directly. Paul On Apr 28, 8:59 am, David Nolen dnolen.li...@gmail.com

Re: Logos - core.logic

2011-04-28 Thread Ambrose Bonnaire-Sergeant
This is really exciting! Well done! Looking forward to playing around with this in its new home. Ambrose On Thu, Apr 28, 2011 at 11:59 PM, David Nolen dnolen.li...@gmail.comwrote: Logos has been accepted into Clojure contrib: https://github.com/clojure/core.logic. There's a considerable

Re: Serialising functions...

2011-04-28 Thread Jules
well spotted :-) I have ported it up to 1.3.0-alpha5 - alpha6 gave me some trouble that I haven't had time to sort out. [BTW - the following is from memory] You set the JVM's UID via a sys property. If this property is set it is incorporated into the names of new classes created in this JVM.

Re: Serialising functions...

2011-04-28 Thread Jules
BTW... Here is the code that runs Jetty : https://github.com/JulesGosnell/dada/blob/master/dada-core/src/main/clojure/org/dada/web.clj I have also found that I need to explicitly set up a DCL in my client :

Re: Logos - core.logic

2011-04-28 Thread Nick Zbinden
Hallo David, Very cool that this is moving to contrib. I saw that you gave a presentation at NYC Clojure User Groupe. Was that tapped? If not I think it would be very cool if you could do a screencast with simular content. The videos of rich showing of clojure a reason why some of use are here

Re: Logos - core.logic

2011-04-28 Thread David Nolen
On Thu, Apr 28, 2011 at 3:05 PM, Nick Zbinden nick...@gmail.com wrote: Hallo David, Very cool that this is moving to contrib. I saw that you gave a presentation at NYC Clojure User Groupe. Was that tapped? If not I think it would be very cool if you could do a screencast with simular

Re: dead simple compile to jar file

2011-04-28 Thread Armando Blancas
Before maven, I used the repl and jar. My root dir had src\myapp \*.clj, ... and classes. 1-In directory classes: jar xf path\to\clojure.jar, same for any other deps. 2-In root, java -cp src;classes clojure.main; - (compile 'myapp.main) 3-Back to classes: jar cfe myapp.jar myapp.main *.* 4-To run:

Re: Who's using Clojure?

2011-04-28 Thread Christopher Redinger
We've got a good start to the list going http://dev.clojure.org/display/community/Clojure+Success+Stories Any more we should get listed? -- 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

Re: Serialising functions...

2011-04-28 Thread kovas boguta
Thats some serious hacking. Definitely agree that distributed clojure would be awesome. Two points/questions: 1) Is this just a bug in DynamicClassLoader? Why doesn't it call super.defineClass instead of falling back on the URLClassLoader?: public Class defineClass(String name, byte[] bytes){

Re: How to determine a function name at runtime

2011-04-28 Thread Ken Wesson
On Thu, Apr 28, 2011 at 6:36 AM, MohanR radhakrishnan.mo...@gmail.com wrote: There should be a way to print the currently executing function and the calling function logging purposes ? I believe Java has StackTraceElement[] to do this. And therefore so does Clojure: user= ((fn foo [] (map

Re: Who's using Clojure?

2011-04-28 Thread Ken Wesson
This fractal video claims to have been made using Clojure: http://vimeo.com/22725635 I stumbled on it earlier today while bored and was quite surprised to see the word Clojure about halfway down the lengthy description text. I doubt it was very idiomatic Clojure. The described use,