Thank you for your response.
Everything is static in RT and Compiler classes, so different
ClassLoaders looks like to be the only solution.
Anton.
--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegro
On Sun, Nov 21, 2010 at 10:08 PM, Gregg Williams wrote:
> macscooter:clojurestuff gw$ lein new swank
> Created new project in: swank
>
> *** (here, I added :dev-dependencies [[swank-clojure "1.2.1"]] to
> project.clj)
>
> I discovered that one namespace in clojure-contrib, jmx, has a
> server.clj
Hi--I'm on Mac OS X Snow Leopard, and I'm going crazy trying to get a
slime server running (I've done it successfully before, on both OS X
and Windows). Leiningen is installed and running. Here's a completely
new terminal window:
-
Last login: Sun Nov 21 21:25:14 on ttys000
You have mail.
macs
On Mon, Nov 22, 2010 at 12:35 AM, Alex Osborne wrote:
> Alex Baranosky writes:
>
>> So for the case I had that method worked. I wonder though if I had
>> wanted to sort by multiple keys, with some of the keys sorting in
>> reverse order and others in regular order, how I could do that... Say
>>
Alex Baranosky writes:
> So for the case I had that method worked. I wonder though if I had
> wanted to sort by multiple keys, with some of the keys sorting in
> reverse order and others in regular order, how I could do that... Say
> last name ascending, date of
> birth descending for example.
Alex,
There might be some useful info here:
http://www.gettingclojure.com/cookbook:sequences#sorting
Have all good days,
David Sletten
On Nov 22, 2010, at 12:07 AM, Alex Baranosky wrote:
> So for the case I had that method worked. I wonder though if I had wanted to
> sort by multiple keys,
So for the case I had that method worked. I wonder though if I had wanted
to sort by multiple keys, with some of the keys sorting in reverse order and
others in regular order, how I could do that... Say last name ascending,
date of birth descending for example.
--
You received this message beca
So I really need to be able to specify the order be either ascending or
descending order, and thus to be able to have a mix of orders.
I guess that means I will need to use:
this
(sort-by :last-name #(compare %2 %1) persons)
or
(sort-by :last-name #(compare %1 %2) persons)
depending on the para
Glen Stampoultzis writes:
> (sort-by :last-name #(compare %2 %1) persons)
>
>
> Actually having put forward that second example there I'm not sure how
> it actually works. The docs suggest that the 2nd parameter needs to
> implement Comparator (peeking at the source confirms this) but co
On 22 November 2010 15:30, Glen Stampoultzis wrote:
>
> On 22 November 2010 15:02, Alex Baranosky
> wrote:
>
>> Hi guys,
>>
>> I'm trying to figure out how to use sort-by in reverse order.
>>
>> something like:
>>
>> (defn keyfn [p]
>> (:last-name p))
>>
>> (sort-by keyfn persons)
>>
>> wher
Alex Baranosky writes:
> I'm trying to figure out how to use sort-by in reverse order.
I tend to do this:
(sort-by :foo #(compare %2 %1) coll)
--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroup
On 22 November 2010 15:02, Alex Baranosky wrote:
> Hi guys,
>
> I'm trying to figure out how to use sort-by in reverse order.
>
> something like:
>
> (defn keyfn [p]
> (:last-name p))
>
> (sort-by keyfn persons)
>
> where persons is a map...
>
> I don't see it in the docs, what's the idiomatic
On Sun, Nov 21, 2010 at 11:02 PM, Alex Baranosky
wrote:
> Hi guys,
> I'm trying to figure out how to use sort-by in reverse order.
> something like:
> (defn keyfn [p]
> (:last-name p))
> (sort-by keyfn persons)
> where persons is a map...
> I don't see it in the docs, what's the idiomatic way
Hi guys,
I'm trying to figure out how to use sort-by in reverse order.
something like:
(defn keyfn [p]
(:last-name p))
(sort-by keyfn persons)
where persons is a map...
I don't see it in the docs, what's the idiomatic way to do this?
Thanks,
Alex
--
You received this message because yo
When I bring up the site, the new logo appears in the top left corner
but the tab still has the old favicon.
--
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
This is the logo I'm using for the time being. If anybody has any
ideas or art skills, I'll be more than happy to replace this with
something prettier.
On side note, any suggestions regarding content are welcome too. I am
working on some ideas for tutorials on programming games in a
functional sty
Having first learned Clojure and then Scheme, I recently started
learning Lisp. From my experience with these three languages I would
tend to agree with Mike Meyer in his observations.
Short of pimping a tutorial written by me, here is a quick
introduction to Clojure mean't to get beginners up to
On Sun, 21 Nov 2010 16:26:07 -0800 (PST)
coco wrote:
> Hi everybody...I'm interested in learning clojure but there're only a
> few books and more focused to advanced programmers...I found today a
> nice book about Clisp but I don't know how different is itplease
> can tell if can be recommen
Thanks, it works for me.
On Nov 21, 1:11 am, Alex Osborne wrote:
> Dilvan writes:
> > Do you know how can I "bootstrap" Clojure before using any Clojure
> > specific data structure (from Java or Jython)?
>
> It seems to be fine if you put it on the Java system classpath instead
> of python.pa
> Hi everybody...I'm interested in learning clojure but there're only a
> few books and more focused to advanced programmers...I found today a
> nice book about Clisp but I don't know how different is itplease
> can tell if can be recommendable learn first Clisp with a easy follow
> book..or i
Hi everybody...I'm interested in learning clojure but there're only a
few books and more focused to advanced programmers...I found today a
nice book about Clisp but I don't know how different is itplease
can tell if can be recommendable learn first Clisp with a easy follow
book..or if there ar
>>
>> > Does anybody know how to redirect the output into the repl?
>>
I actually think the preferred way of doing this is "M-x
slime-redirect-inferior-output"
or adding to your .emacs:
(add-hook 'slime-mode-hook 'slime-redirect-inferior-output)
--
You received this message because you are subs
Hallo all,
I know that what I'm asking here is not 100% about clojure but I hope
people in here can help me anyway.
Me and a classmade of mine have to do a project for school and we
though i would be cool to do some programming language benchmarking.
Its a good fit because he is a systems guy and
Hello All,
Dr. Evil is a simple web debugger that provides a REPL to your web
application in a "hidden" location.
Usage is simple - add "EVIL" definition to your application
"defroutes":
(defroutes app
(GET "/" [] "Nothing here! (try /evil)")
(EVIL "/evil")
(route/not-found "Dude!
By the way, I imagine using the logo in such a way (displaying it,
unmodified, on a website) would simply fall under fair use (according
to wikipedia: "A nonowner may also use a trademark nominatively—to
refer to the actual trademarked product or its source."), but since I
doubt any of us are lawye
Indeed.
I have emailed him again asking for further clarification (and asked
for what license it is released under, if any - though I think its
extremely important that it is released under some specific and
publicly disclosed terms).
The only other discussion on this issue that I could find was
I think the whole mess is in need of sorting out, and that Rich Hickey
is going to have to be the one to do that. I think there should be *a*
logo usable for any site that's primarily about Clojure or
Clojure-developed software; whether this is the blue-and-green-lambda
logo we've been discussing o
On 21 November 2010 20:55, Ken Wesson wrote:
> On Sun, Nov 21, 2010 at 3:43 PM, Daniel Kersten wrote:
>> On 21 November 2010 19:01, Ken Wesson wrote:
>>> On Sun, Nov 21, 2010 at 1:39 PM, Tim Visher wrote:
On Sat, Nov 20, 2010 at 4:16 PM, Glen Stampoultzis
wrote:
> Also, I think
ClojureQL is all about queries, right? As far as I can tell, it provides no
abstraction for creating tables, specifying indices, etc., correct?
--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.
On Sun, Nov 21, 2010 at 3:43 PM, Daniel Kersten wrote:
> On 21 November 2010 19:01, Ken Wesson wrote:
>> On Sun, Nov 21, 2010 at 1:39 PM, Tim Visher wrote:
>>> On Sat, Nov 20, 2010 at 4:16 PM, Glen Stampoultzis wrote:
Also, I think the Clojure logo is copyrighted so permission might need t
Hello,
Is there way you use several clojure runtime instances in one Java
process?
// Thread 1
RT.loadResourceScript("script1");
RT.var("user", "function").invoke();
// Thread 2
RT.loadResourceScript("script2"); //
On 21 November 2010 19:01, Ken Wesson wrote:
> On Sun, Nov 21, 2010 at 1:39 PM, Tim Visher wrote:
>> On Sat, Nov 20, 2010 at 4:16 PM, Glen Stampoultzis wrote:
>>> Also, I think the Clojure logo is copyrighted so permission might need to
>>> be obtained to reuse it.
>>
>> I think you're right.
On Sun, Nov 21, 2010 at 2:42 PM, Anton Dorozhkin
wrote:
> Hello,
>
> Is there way you use several clojure runtime instances in one Java
> process?
>
> // Thread 1
> RT.loadResourceScript("script1");
> RT.var("user", "function").invoke();
>
> // Thread 2
> RT.loadResourceScript("script2"); // <---
I've just been playing around with ClojureQL, and I'm very impressed
at how clean, elegant and idiomatic the syntax is. So far this is the
best SQL library I've come across - for any language.
- James
On 18 November 2010 19:10, LauJensen wrote:
> Hi gents,
>
> For those of you who have followed
Raek, thanks for taking the time to write this detailed explanation.
The alter-var-root works like a charm and I think I understand how
bound-fn would behave here.
For the case where you are using an existing java class that spawns a
thread, it seems to me that only alter-var-root would work sinc
On Nov 21, 11:56 am, HiHeelHottie wrote:
> What do you recommend for logging, especially to a set of rolling
> files? Simply use log4j?
Log4j has been a dead project for a few years now. Try slf4j and
logback.
--
You received this message because you are subscribed to the Google
Groups "Clojur
On Sat, Nov 20, 2010 at 4:16 PM, Glen Stampoultzis wrote:
> On 20 November 2010 02:37, Tim Visher wrote:
>>
>> Here's something quick I threw together this morning. I like your
>> logo a lot but I thought it had a little more potential. :)
>>
>> Anyway, free for you to use if you feel so incline
On Sun, Nov 21, 2010 at 1:39 PM, Tim Visher wrote:
> On Sat, Nov 20, 2010 at 4:16 PM, Glen Stampoultzis wrote:
>> Also, I think the Clojure logo is copyrighted so permission might need to be
>> obtained to reuse it.
>
> I think you're right. Any thoughts from anyone who has the right to
> say s
On Sun, Nov 21, 2010 at 12:21 PM, Shantanu Kumar
wrote:
> Hi,
>
> Not sure if it makes sense, but I thought I'd ask anyway. Why are type
> hints in a macro not passed to a body of code executed inside?
>
> user=> (set! *warn-on-reflection* true)
> true
> user=> (def s "Hello world")
> #'user/s
> u
Hi,
I sat in on Stuart Halloway's talk on Clojure's model of time (good
talk BTW). I dropped some of my thoughts onto a blog post:
http://bit.ly/bIZrLf.
Mike.
--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clo
Hi,
Not sure if it makes sense, but I thought I'd ask anyway. Why are type
hints in a macro not passed to a body of code executed inside?
user=> (set! *warn-on-reflection* true)
true
user=> (def s "Hello world")
#'user/s
user=> (.length s)
Reflection warning, NO_SOURCE_PATH:28 - reference to fiel
On Sun, Nov 21, 2010 at 7:05 AM, Rasmus Svensson wrote:
> (def my-thread
> (doto (Thread. (bound-fn [] (println "inside thread")))
> .start))
Strangely enough, if you try this in a NetBeans repl the repl hangs.
--
You received this message because you are subscribed to the Google
2010/11/21 HiHeelHottie :
>
> I think ruby has nice string interpolation. You can put the following
> in a textfield that a user can modify
>
> This is a #{adjective} string.
>
> Then, you can take that string, put it in quotes and have ruby
> evaluate it as a string. What is the clojure way of d
2010/11/21 HiHeelHottie :
>
> Does anybody know how to redirect the output into the repl?
Thread local bindings are not passed on to new threads. Since you
might have multiple connections to the swank server, there might me
multiple repls, each one with their own *out*. Most often though, you
only
Hello,
I am looking at adding memcache and redis support to a caching
library that I have written.
Ideally, I'd like TCP/IP connections to be pooled and reused. Pooling
should reduce the number of open connections and remove the latency of
creating new connections. In my experience with other s
Does anybody know how to redirect the output into the repl?
On Nov 20, 7:45 pm, HiHeelHottie wrote:
> I'm running it from a shell inside emacs and the output appears in
> that buffer. Thanks!
>
> On Nov 20, 6:44 pm, Ulises wrote:
>
>
>
> > > This is how I'm running the test in the slime-connec
Thanks Mike. This is what I was looking for.
On Nov 20, 8:31 pm, Mike K wrote:
> Check out the << macro from clojure.contrib.strint.
>
> http://clojure.github.com/clojure-contrib/strint-api.html
--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To p
47 matches
Mail list logo