Re: Calling Clojurescript code from Clojure

2012-09-17 Thread Shantanu Kumar
On Sep 18, 8:27 am, Brent Millare wrote: > I forgot to mention an additional condition, this should work with the > browser as an eval environment Quiddity (URL below) may not load an entire file, but you can eval an S-expression by supplying all values: https://github.com/kumarshantanu/quidd

Re: Calling Clojurescript code from Clojure

2012-09-17 Thread Brent Millare
And yes by eval I mean compile and run on the target (browser) -- 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

Re: Calling Clojurescript code from Clojure

2012-09-17 Thread Brent Millare
I forgot to mention an additional condition, this should work with the browser as an eval environment -- 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

Re: Immutant 0.3.0 released

2012-09-17 Thread Jim Crossley
Hi Ali, Ali M writes: > Can you please elaborate more on this line ... maybe give examples > > On Wednesday, September 12, 2012 3:45:56 AM UTC+2, Jim Crossley wrote: >> >> For certain applications, I would recommend using libraries to access >> external processes like Memcached, RabbitMQ, or cr

ANN: tween-clj 0.4.0 (Tweening library for Clojure)

2012-09-17 Thread Glen Stampoultzis
tween-clj is a Clojure library designed to tween a value between two points. Inbetweening or tweening is the process of generating intermediate points between two points. Source code: https://github.com/gstamp/tween-clj Jar file: https://clojars.org/tween-clj Clojure Libraries Page: http:/

Re: ANN Quartzite 1.0 (final)

2012-09-17 Thread Glen Stampoultzis
On 18 September 2012 06:53, Michael Klishin wrote: > * Solid documentation (my favorite feature) Mine too! Nice job. -- 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 fro

Re: ANN Quartzite 1.0 (final)

2012-09-17 Thread Michael Klishin
2012/9/18 Simone Mosciatti > Just a little note: fantastic would be add documentation for durable > scheduler... This part is covered by the Quartz documentation, see http://quartz-scheduler.org/documentation/quartz-2.1.x/tutorials/tutorial-lesson-09 It may be easier to try it out with this st

Re: ANN Quartzite 1.0 (final)

2012-09-17 Thread Simone Mosciatti
OMG I was waiting for that, thank you guys so much, really... Just a little note: fantastic would be add documentation for durable scheduler... On Monday, September 17, 2012 10:53:57 PM UTC+2, Michael Klishin wrote: > > Quartzite [1] is a Clojure DSL on top of the Quartz scheduler. It has a > f

ANN Quartzite 1.0 (final)

2012-09-17 Thread Michael Klishin
Quartzite [1] is a Clojure DSL on top of the Quartz scheduler. It has a few convenience features in addition, but primarily tries to make core Quartz features as easy to use as possible without heavy use of Java interop in your apps. Here's a list of what you get out of the box: * Ability to def

Re: Nested functions on #() reader

2012-09-17 Thread Alan Malloy
Indeed, there's no need for anything to be a reader macro, except concision. You can write this as an ordinary macro, eg, (crazy-fn %a %%b %%%c). If you try that and find it's awesome, share it with others. If it's universally loved, perhaps someday it could be a reader macro. On Monday, Septem

Re: [lein] Depending on tools.jar

2012-09-17 Thread Patrik Sundberg
On Monday, September 17, 2012 3:05:57 PM UTC+1, Patrik Sundberg wrote: > > On Monday, November 28, 2011 9:52:55 PM UTC, Walter van der Laan wrote: >> >> You can add something like this to project.clj: >> :resources-path "/usr/lib/jvm/java-6-sun/lib/tools.jar" >> >> Walter >> > > I found this thread

Re: Some feedback on clojurescript

2012-09-17 Thread David Nolen
On Sun, Sep 16, 2012 at 8:32 PM, Irakli Gozalishvili wrote: > Hi Folks, > > I'm still new to clojurescript, but I thought I would share with you some of > the annoyances that person > person coming from JS (like myself) will likely run into: > > http://jeditoolkit.com/2012/09/16/coljurescript-feed

Re: Calling Clojurescript code from Clojure

2012-09-17 Thread David Nolen
On Sun, Sep 16, 2012 at 7:05 PM, Brent Millare wrote: > Background: I'm developing a web based development environment. > > Problem: Is there a way to evaluate clojurescript code from clojure? I need > to call clojurescript code like (load-file "foo.cljs") from clojure. Note > this is different th

Re: Is anyone relying on the js* special form?

2012-09-17 Thread David Nolen
On Wed, Sep 12, 2012 at 10:16 PM, Alexander Hudek wrote: > I've used it in conjunction with goog/base due to a problem with > simple/advanced compilation. I'm not sure if things have changed since I > encountered this problem, or if there is something else I'm doing wrong. See > the code and comme

Re: core.logic - DCG

2012-09-17 Thread David Nolen
On Sun, Sep 16, 2012 at 11:52 PM, Alexsandro Soares wrote: > (def-->e expr1 [t e] >([t1 ?e1] (fresh [tk t2] > (token '+ tk) (term t2) (expr1 {:binop '+ t1 t2} ?e1))) >([_ t] [])) > (def-->e term1 [f t] >([f1 ?t1] (fresh [tk f2] > (token '* tk) (factor f2) (term1 {:binop '*

Re: ANN Drip: A fast JVM launcher

2012-09-17 Thread Gary Johnson
I'm getting the same multiple JVM starting behavior on Arch Linux using lein 2.0.0-preview10 and drip 0.1.7. Hmm... On Monday, September 17, 2012 2:57:00 AM UTC-4, Tassilo Horn wrote: > > Denis Labaye > writes: > > >> I am still seeing a new JVM being started every drip run. I am > >> testing

Re: [lein] Depending on tools.jar

2012-09-17 Thread Patrik Sundberg
On Monday, November 28, 2011 9:52:55 PM UTC, Walter van der Laan wrote: > > You can add something like this to project.clj: > :resources-path "/usr/lib/jvm/java-6-sun/lib/tools.jar" > > Walter > I found this thread an a couple of other ones relating to the problematic tools.jar and lein 2. Does

Re: println inside a inside a for print some "nil values"

2012-09-17 Thread Giuliani Sanches
Thanks. And sorry for the duplicated post. I thought that my first message as not posted; On Monday, September 17, 2012 4:01:28 AM UTC-3, Tassilo Horn wrote: > > Giuliani Sanches > writes: > > > In this code > > > > http://pastebin.com/tJNhabJw > > > > When the second case is executed the

Re: Why do Clojure collections have (seq) rather than supporting the ISeq interface directly?

2012-09-17 Thread Alex Dowad
Thanks, SS!!! -- 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 this group, send

Re: Nested functions on #() reader

2012-09-17 Thread DAemon
So you would introduce all of the functions first, then insert the body into the inside? Major issue that I can see is that it's very powerful and very useful only in very specific circumstances, but isn't extensible at all. Looks cool, though. Maybe you could write a macro that does something like

Re: Nested functions on #() reader

2012-09-17 Thread Ben Smith-Mannschott
On Sun, Sep 16, 2012 at 6:16 AM, vhsmaia wrote: > Hello. I'm new here, so, not sure if those were already posted. But why is > this not used? An example would be: > #(%a %%b %%%c) would be the same as (fn [a] (fn [b] (fn [c] (a b c))) My eyes! The goggles to nothing! -- You received this messag

Re: Nested functions on #() reader

2012-09-17 Thread Moritz Ulrich
I think the most simple reason is that it's unreadable for humans. On Sun, Sep 16, 2012 at 6:16 AM, vhsmaia wrote: > Hello. I'm new here, so, not sure if those were already posted. But why is > this not used? An example would be: > #(%a %%b %%%c) would be the same as (fn [a] (fn [b] (fn [c] (a b

Re: println inside a inside a for print some "nil values"

2012-09-17 Thread Tassilo Horn
Giuliani Sanches writes: > In this code > > http://pastebin.com/tJNhabJw > > When the second case is executed the output is: > > The output is (Juice > Sandwich > nil Banana > nil nil) > > Where these "nil" come from ? The nils are the values of the `for`. (println item) prints Juice, Sandwich