Re: Elegant way of expressing this in Clojure?

2010-05-28 Thread Meikel Brandmeyer
Hi, On May 27, 9:50 pm, Laurent PETIT laurent.pe...@gmail.com wrote: But you will still have the cost of creating 2 or 3 times several millions of Seq objects, even if they are quickly made GCable. But then: why do it in Clojure, when you need close control anyway? I see the main benefit in

Re: Which GUI toolkit would you like to see wrapped in an idiomatic Clojure library?

2010-05-28 Thread Laurent PETIT
2010/5/28 Luke VanderHart luke.vanderh...@gmail.com Why not design it so that it can be backed by Swing or SWT or HTML (perhaps with some AJAX) or whatever? It seems kind of silly to do an abstraction on a single backend, don't you think? Ideally, yes. In practice, I'd rather implement

Re: Elegant way of expressing this in Clojure?

2010-05-28 Thread Laurent PETIT
2010/5/28 Meikel Brandmeyer m...@kotka.de Hi, On May 27, 9:50 pm, Laurent PETIT laurent.pe...@gmail.com wrote: But you will still have the cost of creating 2 or 3 times several millions of Seq objects, even if they are quickly made GCable. But then: why do it in Clojure, when you need

Re: Clojure Master on android

2010-05-28 Thread Remco van 't Veer
On 2010/05/28 01:45, MHOOO wrote: After reading on the dev group about running clojure on android I figured I might just as well try the hello-dalvik example myself. However the master branch fails because it is exhausing the heap?:

Re: Newbie (with no Java experience) - how best to learn?

2010-05-28 Thread Alex Ott
Re all Dave Pawson at Thu, 27 May 2010 20:08:53 +0100 wrote: DP Is there a wiki where all these info sources could be collected please? DP Sounds really quite useful to the newbie. Just FYI - I have special page (http://alexott.net/en/clojure/video.html) with links to video

Re: Newbie (with no Java experience) - how best to learn?

2010-05-28 Thread Dave Pawson
On 28 May 2010 08:30, Alex Ott alex...@gmail.com wrote: Re all Dave Pawson  at Thu, 27 May 2010 20:08:53 +0100 wrote:  DP Is there a wiki where all these info sources could be collected please?  DP Sounds really quite useful to the newbie. Just FYI - I have special page

Re: Problem seeing fn metadata unless I eval or load a file

2010-05-28 Thread Christophe Grand
Actually it's a duplicate of ticket #270 http://www.assembla.com/spaces/clojure/tickets/270 On Thu, May 27, 2010 at 4:52 PM, Jim Menard jim.men...@gmail.com wrote: Christophe, Thank you for your research and for opening the ticket. Jim On Thu, May 27, 2010 at 9:59 AM, Christophe Grand

Re: Newbie (with no Java experience) - how best to learn?

2010-05-28 Thread Alex Ott
Dave Pawson at Fri, 28 May 2010 08:56:40 +0100 wrote: DP On 28 May 2010 08:30, Alex Ott alex...@gmail.com wrote: Re all Dave Pawson  at Thu, 27 May 2010 20:08:53 +0100 wrote:  DP Is there a wiki where all these info sources could be collected please?  DP Sounds really quite useful to

Re: Mersenne Twister

2010-05-28 Thread Lauri Pesonen
Hi Paul, On 27 May 2010 23:24, Paul Moore p.f.mo...@gmail.com wrote: Can someone recommend a good Mersenne Twister implementation I could use? A web search finds a number of implementations in Java - presumably I can use these via Java interop - is that a sensible thing to do? It is very

Re: Elegant way of expressing this in Clojure?

2010-05-28 Thread Christophe Grand
On Thu, May 27, 2010 at 9:07 PM, CuppoJava patrickli_2...@hotmail.comwrote: The purpose is quite straightforward. I just have to call process() on every word in the w and d array. But I don't want to load docs if they have already been loaded. And I want to stop when it hits the first

Clojure script with shebangoid on windows

2010-05-28 Thread alux
Hello! Short: It works, but is not perfect. (this may need an windows expert to make it better) After seeing a script for Scala using something shebang like for a windows system: scalascript.cmd ::#! @echo off call scala -savecompiled %0 %* goto :eof ::!#

lein, slime, project management

2010-05-28 Thread Catonano
Hello people, so, my questions are not about Clojure, they're about the tools of the trade. I hope no one will be bothered. In my opinion the tools are a part of this. So, the swank-clojure-project is gonna be deprecated and I should settle on slime-connect instead. Fine. But being a beginner

Re: Which GUI toolkit would you like to see wrapped in an idiomatic Clojure library?

2010-05-28 Thread Matthew Elder
I will send patches!! get on github no. ;) On 5/27/10, Luke VanderHart luke.vanderh...@gmail.com wrote: Thanks, Heinz... I may. Right now I'm still exploring what I want the API to be. I was hoping to achieve something a bit thicker that could insulate the user from Java classes

Datatype Usage Examples

2010-05-28 Thread SinDoc
L.S., I was wondering if someone could point me to recent usage examples of deftype, defrecord, and reify. Reading [1] helped a lot but it wasn't particularly easy to find it since it's not linked from the sidebar. Specifically, what I'd like to know is: - How to define and access member data

Re: Mersenne Twister

2010-05-28 Thread Artur Matos
Hi Paul, I've used Sean Luke's implementation quite a few times before: http://cs.gmu.edu/~sean/research/mersenne/MersenneTwister.java It is pretty good, fast and battle tested (it is used extensively in ECJ - an genetic algorithm and genetic programming java package, another project of his).

57 varieties

2010-05-28 Thread Philip Hudson
I've been trying for the best part of a month to get SLIME/SWANK/ Clojure/clojure-mode working in emacs 23.2 on Mac OS X 10.5 without using ELPA, which unfortunately seems to break everything including itself in my setup. Using Bill Clementson's checkout recommendations (see below) I've got

Re: M-X slime

2010-05-28 Thread Oleg
Hello! Thank you. It was just not fully downloaded clojure 1.2 I've asked lein to update all deps again and now it works. On 28 май, 04:10, Joost jo...@zeekat.nl wrote: On May 27, 8:24 pm, Oleg oleg.richa...@gmail.com wrote: Hello Guys! Yes, i know that i can run lein swank in my project

Re: Mersenne Twister

2010-05-28 Thread dmathei
Hello Paul, The following thread [1] mentions the MT by Sean Luke [2]. If you compile/jar the source and put it into your classpath (e.g. / lib) you should be able to use it directly from your clojure project as shown in the thread. (Rich's answer) There is a synch'ed version and a fast one ...

Re: Clojure Master on android

2010-05-28 Thread MHOOO
On May 28, 9:26 am, Remco van 't Veer rwvtv...@gmail.com wrote: Try giving the dx command a bit more memory by adding something like:   -Jmx1024m before --dex. Unfortunately that didn't work quite so well. The java process ended up using 1.4GB ram without terminating (waited approximately

Re: Which GUI toolkit would you like to see wrapped in an idiomatic Clojure library?

2010-05-28 Thread Matthew Elder
Yes but not too much yak shaving, it is important to run with the simplest thing that will work first. On 5/27/10, Jason Smith ja...@lilypepper.com wrote: Why not design it so that it can be backed by Swing or SWT or HTML (perhaps with some AJAX) or whatever? It seems kind of silly to do an

Elegant way to replace a few words in string

2010-05-28 Thread Oleg
Hello Guys! I have a string for example Foo12 Bar130 Qoo20 and map like this {Foo XF Bar XB Qoo XQ}. I want get: XF12 XB130 XQ20 I want to replace words in string based on map association. What is the elegant way to do it? Sure, i can use loop and recur to make string enter the next replacement,

Re: Clojure Master on android

2010-05-28 Thread Remco van 't Veer
Hmm, I have a 32 bit setup to that's probably the issue: java version 1.6.0_18 OpenJDK Runtime Environment (IcedTea6 1.8) (6b18-1.8-0ubuntu1) OpenJDK Server VM (build 14.0-b16, mixed mode) Don't have a clue how to fix this. On 2010/05/28 11:06, MHOOO wrote: On May 28, 9:26 am, Remco

Re: Elegant way to replace a few words in string

2010-05-28 Thread Laurent PETIT
(reduce (fn [#^String s [#^CharSequence what #^CharSequence with]] (.replace s what with)) Foo12 Bar130 Qoo20 {Foo XF Bar XB Qoo XQ}) 2010/5/28 Oleg oleg.richa...@gmail.com Hello Guys! I have a string for example Foo12 Bar130 Qoo20 and map like this {Foo XF Bar XB Qoo XQ}. I want

Re: Elegant way of expressing this in Clojure?

2010-05-28 Thread CuppoJava
d,w are arrays that are passed to me by a machine learning algorithm so it's not something that I have control over. There are roughly 100 words per doc. Thanks for everyone's help. I wonder if directly mutable primitives is something that is hard to put into Clojure? Or something that's

Re: 57 varieties

2010-05-28 Thread Ramakrishnan Muthukrishnan
On Fri, May 28, 2010 at 4:09 PM, Philip Hudson phil.hud...@iname.com wrote: I've been trying for the best part of a month to get SLIME/SWANK/Clojure/clojure-mode working in emacs 23.2 on Mac OS X 10.5 without using ELPA, which unfortunately seems to break everything including Here are my

Re: Elegant way of expressing this in Clojure?

2010-05-28 Thread Meikel Brandmeyer
Hi, On May 28, 3:09 pm, CuppoJava patrickli_2...@hotmail.com wrote: Thanks for everyone's help. I wonder if directly mutable primitives is something that is hard to put into Clojure? Or something that's explicitly avoided because it distracts from the FP paradigm. The lack of them is making

Newbie question about vector performance

2010-05-28 Thread Rubén Béjar
Hi all, I am new to the list and to Clojure. I have been working in implementing some 2D cellular automata (CA) just to have a project to teach Clojure to myself. After some work I have something that works, but it is pretty slow. The function that takes a CA of 500x500 cells (integers) and

Re: Which GUI toolkit would you like to see wrapped in an idiomatic Clojure library?

2010-05-28 Thread Sean Devlin
For those of you complaining about the Swing LAF, learn to use the UIManager class :) (defn set-laf! [laf-name] (javax.swing.UIManager/setLookAndFeel laf-name)) On May 27, 7:51 pm, Armando Blancas armando_blan...@yahoo.com wrote: Remember, the actual API won't matter - that will be

Re: Elegant way of expressing this in Clojure?

2010-05-28 Thread Christophe Grand
On Fri, May 28, 2010 at 3:09 PM, CuppoJava patrickli_2...@hotmail.comwrote: d,w are arrays that are passed to me by a machine learning algorithm so it's not something that I have control over. There are roughly 100 words per doc. ok Thanks for everyone's help. I wonder if directly mutable

Re: Which GUI toolkit would you like to see wrapped in an idiomatic Clojure library?

2010-05-28 Thread mmwaikar
I work on .Net, so my observation could be totally wrong, but I think JavaFx could be an option to consider (specially because of its JSON kind of syntax). I am working on a WPF project currently, and although WPF is big and complex, the kind of UIs one can build with it is amazing, and JavaFx

Re: Datatype Usage Examples

2010-05-28 Thread Meikel Brandmeyer
Hi, On May 28, 9:52 am, SinDoc s...@khakbaz.com wrote: I was wondering if someone could point me to recent usage examples of deftype, defrecord, and reify. Reading [1] helped a lot but it wasn't particularly easy to find it since it's not linked from the sidebar. Specifically, what I'd like

Re: Which GUI toolkit would you like to see wrapped in an idiomatic Clojure library?

2010-05-28 Thread Martin DeMello
On Fri, May 28, 2010 at 7:29 PM, mmwaikar mmwai...@gmail.com wrote: QT Jambi Pros: native widgets, huge widget selection, highly-regarded framework Cons: requires platform-specific libs, writing custom widgets is hairy, momentum and support seem to be lagging since Nokia dropped official

Re: Which GUI toolkit would you like to see wrapped in an idiomatic Clojure library?

2010-05-28 Thread Luke VanderHart
My understanding may be wrong, but I think JavaFX is intended more as a competitor to Flash or Silverlight than a GUI toolkit. It'd probably be great for a Clojure games framework, or for simple graphical drawing and such, but I'm not sure it's appropriate for a complex, high performance GUI. In

Re: Which GUI toolkit would you like to see wrapped in an idiomatic Clojure library?

2010-05-28 Thread Luke VanderHart
I would love to see an idiomatic clojure QtJambi wrapper that solves the writing custom widgets is hairy problem. I think QT Jambi's basic architecture precludes this. Jambi is basically a bunch of JNI calls to a backend C++ QT app. As soon as you start delving into Jambi's internals, you end

Android 'dex' stage takes a very long time with Clojure

2010-05-28 Thread Matt Clark
I'm new to Android, but I've been wanting to give it a try for a while so I thought I'd try using Clojure's master branch. It all seems to be working fairly well except the dex stage of installation takes around 2 minutes for a simple Hello World app. How do others get around this lag? I'm

Re: Which GUI toolkit would you like to see wrapped in an idiomatic Clojure library?

2010-05-28 Thread laseray
+1 Swing If I had my druthers I would go with QtJambi, but since Nokia dropped development for that it has not been able to keep pace with Qt. So that would be immediately out of sync. Plus the need for platform native compiled code is a minus. Fine for the main three (Linux, Mac, Windows) with

Re: Which GUI toolkit would you like to see wrapped in an idiomatic Clojure library?

2010-05-28 Thread Mikhail Kryshen
I vote for Swing. Swing components conform to JavaBeans specification, so a generic Clojure library to construct and manipulate JavaBeans would make a large part of the GUI framework. On 27 май, 19:18, Luke VanderHart luke.vanderh...@gmail.com wrote: My side project is a fairly complex GUI

Re: Clojure script with shebangoid on windows

2010-05-28 Thread Paul Moore
On 28 May 2010 09:48, alux alu...@googlemail.com wrote: Hello! Short: It works, but is not perfect. (this may need an windows expert to make it better) Try this: --- myscript.bat --- :x (comment @echo off java -cp clojure.jar clojure.main %~f0 %* goto eof ) (println Hi!

Lazy map implementation

2010-05-28 Thread Robert Luo
I need a lazy map in my compojure based application to inject data into handlers. I searched the web for an implementation, I got one from Meikel which was written in 2008. Is there any recommendation? Thanks. -- You received this message because you are subscribed to the Google Groups Clojure

Re: Datatype Usage Examples

2010-05-28 Thread Krukow
On May 28, 9:52 am, SinDoc s...@khakbaz.com wrote: L.S., I was wondering if someone could point me to recent usage examples of deftype, defrecord, and reify. Reading [1] helped a lot but it wasn't particularly easy to find it since it's not linked from the sidebar. I've used protocols and

Re: Lazy map implementation

2010-05-28 Thread Sean Devlin
Can memoize do the job for you? On May 28, 10:39 am, Robert Luo robort...@gmail.com wrote: I need a lazy map in my compojure based application to inject data into handlers. I searched the web for an implementation, I got one from Meikel which was written in 2008. Is there any recommendation?

Re: Clojure script with shebangoid on windows

2010-05-28 Thread alux
Hello Paul, thats much better, many thanks! Regards, alux On 28 Mai, 16:09, Paul Moore p.f.mo...@gmail.com wrote: On 28 May 2010 09:48, alux alu...@googlemail.com wrote: Hello! Short: It works, but is not perfect. (this may need an windows expert to make it better) Try this: ---

Re: lein, slime, project management

2010-05-28 Thread Catonano
I reply to myself. The answer is here: http://clojure.org/compilation http://clojure.org/compilationSorry 2010/5/28 Catonano caton...@gmail.com Hello people, so, my questions are not about Clojure, they're about the tools of the trade. I hope no one will be bothered. In my opinion the

Re: Elegant way to replace a few words in string

2010-05-28 Thread John Cromartie
I feel like the type hints should be left out until you really need them, since they kind of clobber the routine's readability. -John On May 28, 9:07 am, Laurent PETIT laurent.pe...@gmail.com wrote: (reduce   (fn [#^String s [#^CharSequence what #^CharSequence with]]     (.replace s what

Re: Newbie question about vector performance

2010-05-28 Thread Rubén Béjar
Hi again, I have tried a few more things: I have done the same in Java but using an array of Integers, instead of an array of ints. It just takes 78 ms. (more than 16, still far less than 4 secs). I have also tried with an update function which just returns a fixed 1. It still takes some

Re: Newbie question about vector performance

2010-05-28 Thread Michael Gardner
On May 28, 2010, at 8:47 AM, Rubén Béjar wrote: I would thank a lot any hint, suggestion, comment, or whatever... :-) As a style issue I'd suggest using inc, dec, neg?, pos?, and zero? instead of the various (+ x 1), ( x 0), etc. in your code. This actually seems to improve performance a bit

Re: Elegant way of expressing this in Clojure?

2010-05-28 Thread CuppoJava
Thanks Christophe. That looks relatively clean as well. (As clean as the Java version anyway). And it's the fastest version shown so far. -Patrick On May 28, 9:57 am, Christophe Grand christo...@cgrand.net wrote: On Fri, May 28, 2010 at 3:09 PM, CuppoJava patrickli_2...@hotmail.comwrote:

Re: Lazy map implementation

2010-05-28 Thread Robert Luo
On 5月28日, 下午11时01分, Sean Devlin francoisdev...@gmail.com wrote: Can memoize do the job for you? No. What I need is something can act as a map to replace the request map in compojure/ring so that it can be used in any middleware/ handles. -- You received this message because you are subscribed

Re: Lazy map implementation

2010-05-28 Thread Joost
On May 28, 4:39 pm, Robert Luo robort...@gmail.com wrote: I need a lazy map in my compojure based application to inject data into handlers. I searched the web for an implementation, I got one from Meikel which was written in 2008. Is there any recommendation? Thanks. I don't really see what

Re: Newbie question about vector performance

2010-05-28 Thread Luke VanderHart
I can't see your code due to the IT policies here, but I can make some generalizations - these are assuming your code is correct and you're not accidentally using an exponential algorithm (which I wouldn't preclude, 4 minutes does sound truly excessively slow, even for vectors). Vectors are

Re: Elegant way to replace a few words in string

2010-05-28 Thread Laurent PETIT
The rule should really always be: no warning at all (with *warn-on-reflection* set to true, of course). And in this case, I did what is necessary to avoid reflection warnings. Try it yourself. 2010/5/28 John Cromartie jcromar...@gmail.com I feel like the type hints should be left out until you

Re: Elegant way to replace a few words in string

2010-05-28 Thread Michael Gardner
On May 28, 2010, at 12:42 PM, Laurent PETIT wrote: The rule should really always be: no warning at all (with *warn-on-reflection* set to true, of course). I strongly disagree. Why should you care about those sorts of warnings unless you've already identified a bottleneck that needs

Re: 57 varieties

2010-05-28 Thread Steve Purcell
On 28 May 2010, at 11:39, Philip Hudson wrote: I've been trying for the best part of a month to get SLIME/SWANK/Clojure/clojure-mode working in emacs 23.2 on Mac OS X 10.5 without using ELPA, which unfortunately seems to break everything including itself in my setup. If it helps, I've

Re: Lazy map implementation

2010-05-28 Thread Meikel Brandmeyer
Hi, On Fri, May 28, 2010 at 07:39:55AM -0700, Robert Luo wrote: I need a lazy map in my compojure based application to inject data into handlers. I searched the web for an implementation, I got one from Meikel which was written in 2008. Is there any recommendation? Just FYI: It's still

Re: Elegant way to replace a few words in string

2010-05-28 Thread Laurent PETIT
2010/5/28 Michael Gardner gardne...@gmail.com On May 28, 2010, at 12:42 PM, Laurent PETIT wrote: The rule should really always be: no warning at all (with *warn-on-reflection* set to true, of course). I strongly disagree. Why should you care about those sorts of warnings unless you've

Re: Elegant way to replace a few words in string

2010-05-28 Thread Laurent PETIT
2010/5/28 Michael Gardner gardne...@gmail.com On May 28, 2010, at 12:42 PM, Laurent PETIT wrote: The rule should really always be: no warning at all (with *warn-on-reflection* set to true, of course). I strongly disagree. Why should you care about those sorts of warnings unless you've

Re: Datatype Usage Examples

2010-05-28 Thread Sina K. Heshmati
Hi Meikel, Meikel Brandmeyer wrote: SinDoc wrote: I was wondering if someone could point me to recent usage examples of deftype, defrecord, and reify. Reading [1] helped a lot but it wasn't particularly easy to find it since it's not linked from the sidebar. Specifically, what I'd like to

Re: Datatype Usage Examples

2010-05-28 Thread Sina K. Heshmati
Hi Krukow, Krukow wrote: SinDoc wrote: I was wondering if someone could point me to recent usage examples of deftype, defrecord, and reify. Reading [1] helped a lot but it wasn't particularly easy to find it since it's not linked from the sidebar. Blog:

Re: do clojure and la(tex) have something in common ?

2010-05-28 Thread Perry Trolard
Hi Mike, On May 25, 9:04 am, Mike Meyer mwm-keyword-googlegroups. 620...@mired.org wrote: I find the reference to old fashioned xslt amusing, considering that how new it is. Or maybe how old I am. Of course, part of the point of XML is that you have a wide variety of tools to pick from for

Re: Anyone experienced in using clojure as a database

2010-05-28 Thread Erik Söhnel
I haven't had a chance to play with your code yet but at first glance it looks good. Does the above mean that all set operations are automatically supported and the accelerated? Unfortunately not for all operations. For example, clojure.set/join uses its own index function, which builds an

Re: Clojure script with shebangoid on windows

2010-05-28 Thread Paul Moore
On 28 May 2010 16:17, alux alu...@googlemail.com wrote: Hello Paul, thats much better, many thanks! I've added it to the Wikibooks page, http://en.wikibooks.org/wiki/Clojure_Programming/Tutorials_and_Tips#Shebang_Scripting_in_Clojure Paul. -- You received this message because you are

Re: Datatype Usage Examples

2010-05-28 Thread Krukow
On May 28, 9:59 pm, Sina K. Heshmati s...@khakbaz.com wrote: Hi Krukow, [snip] The only member data _I'm_ able find are the ones that are passed to the default constructor, namely at the time that the abstraction is reified. What if I'd have to give create a member field that is not

Re: API in Clojure for Java folklore

2010-05-28 Thread ka
I've also added a :class-doc key to the macro - (gen-class+javadoc :class-doc Class Docs ul li One /li li Two /li /ul :name a.b.c.MyCoolClass :methods [ #^{:static true} [method1 [clojure.lang.PersistentArrayMap] int]

Re: Some suggestions for transients

2010-05-28 Thread ka
Oops didn't know that Rich had already answered. Google seems to think that our posts are commutative :/ (often they're not, or are they? I can't take a stand on this) and just uses the commute fn instead of using alter and failing the transaction (informing us); but it does allow for more

Re: Clojure Master on android

2010-05-28 Thread MHOOO
Worked around the issue by removing some unnecessary stuff from the clojure build.xml, thus making the final clojure.jar smaller. (In particular the dx program would halt on generating code for zip $remove). On May 28, 2:59 pm, Remco van 't Veer rwvtv...@gmail.com wrote: Hmm, I have a 32 bit

Re: Android 'dex' stage takes a very long time with Clojure

2010-05-28 Thread MHOOO
I've just started with development on android myself, but from what I've read on the internets, you could probably write a .dex loader in the default classes.dex (which will be loaded when you start your application) and write your actual program in other .dex files. This way you'll be able to

Re: Lazy map implementation

2010-05-28 Thread Robert Luo
Just FYI: It's still maintained and will soon move to deftype to be ready for 1.2. Then I will also put a release on Clojars. Sincerely Meikel Thanks Meikel, I will try your implementation in my application. -- You received this message because you are subscribed to the Google Groups

Re: Lazy map implementation

2010-05-28 Thread Robert Luo
On 5月29日, 上午12时50分, Joost jo...@zeekat.nl wrote: I don't really see what you're trying to do with this, but as an alternative, you can assoc lazy-seqs to a standard map. That is, if your values are going to be seqs (IME, most of the things you want lazy evaluation for are). Joost. The

(apply interleave [[1 2]])

2010-05-28 Thread Eugen Dück
When I do (apply interleave some-colls) and some-colls is a sequence/collection of only one sequence/ collection, it will throw: user= (apply interleave [[1 2]]) java.lang.IllegalArgumentException: Wrong number of args passed to: core$interleave (NO_SOURCE_FILE:0) (Of course I don't need the

Re: Any issues with launching in clojure, calling Java code, Java code calling clojure

2010-05-28 Thread BerlinBrown
So a lot of Clojure variables are set at the JVM/Class level Hmm... On May 27, 10:29 pm, Jason Smith ja...@lilypepper.com wrote: The issue that you'll run into is that there is one lexical scope that is shared by all calls toClojure.  The only ways around this are (1) run it in another

Re: Any issues with launching in clojure, calling Java code, Java code calling clojure

2010-05-28 Thread BerlinBrown
I don't think option 2 would take that long. Even my clojure startup is not half a second on a modern machine. On May 27, 10:29 pm, Jason Smith ja...@lilypepper.com wrote: The issue that you'll run into is that there is one lexical scope that is shared by all calls toClojure.  The only ways

Android activity fails because of dependency on java.beans.Introspector

2010-05-28 Thread MHOOO
I've just now tried to get an android activity to run, however when executing the application (hello world, really) I get the following error: I/ActivityManager( 59): Starting activity: Intent {

Re: Android activity fails because of dependency on java.beans.Introspector

2010-05-28 Thread MHOOO
Doing some digging I found the problem: I forgot to include the clojure/version.properties file in my .apk. On May 29, 4:02 am, MHOOO thomas.karol...@googlemail.com wrote: I've just now tried to get an android activity to run, however when executing the application (hello world, really) I get

Re: Running Clojure scripts in Maven

2010-05-28 Thread Jason Smith
Yeah, I might still eventually move it over. I decided to keep it separate for several reasons: * I need to work out some classloader issues that might affect other mojos in the same plugin. Clojure maintains lexical scope for everything run in the same classloader, and I think this can bleed

Re: do clojure and la(tex) have something in common ?

2010-05-28 Thread Dave Pawson
On 28 May 2010 21:15, Perry Trolard trol...@gmail.com wrote: Re: a clojure XPath/XQuery library that returns a lazy seq of the results, check out my wrapper of Michael Kay's Saxon library:  http://github.com/pjt/saxon Saxon computes XPath results mostly lazily, I retain this laziness in

JIT Compilation on Android

2010-05-28 Thread MHOOO
I've got 1.2.0-master running on android froyo with a repl. Froyo supports JIT compilation, but whenever I call code which is defining a new class (e.g.: (defn blub [] nil)), I get an Exception: - clojure.core= (defn blub [] 1)