Thanks Mike. This is what I was looking for.
On Nov 20, 8:31 pm, Mike K mbk.li...@gmail.com 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
Does anybody know how to redirect the output into the repl?
On Nov 20, 7:45 pm, HiHeelHottie hiheelhot...@gmail.com 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 ulises.cerv...@gmail.com wrote:
This is how I'm
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
2010/11/21 HiHeelHottie hiheelhot...@gmail.com:
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
2010/11/21 HiHeelHottie hiheelhot...@gmail.com:
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
On Sun, Nov 21, 2010 at 7:05 AM, Rasmus Svensson r...@lysator.liu.se 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
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 field
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
On Sun, Nov 21, 2010 at 12:21 PM, Shantanu Kumar
kumar.shant...@gmail.com 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)
On Sun, Nov 21, 2010 at 1:39 PM, Tim Visher tim.vis...@gmail.com wrote:
On Sat, Nov 20, 2010 at 4:16 PM, Glen Stampoultzis gst...@gmail.com 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
On Sat, Nov 20, 2010 at 4:16 PM, Glen Stampoultzis gst...@gmail.com wrote:
On 20 November 2010 02:37, Tim Visher tim.vis...@gmail.com 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
On Nov 21, 11:56 am, HiHeelHottie hiheelhot...@gmail.com 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
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
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 lau.jen...@bestinclass.dk wrote:
Hi gents,
For those of
On Sun, Nov 21, 2010 at 2:42 PM, Anton Dorozhkin
anton.dorozh...@gmail.com 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);
On 21 November 2010 19:01, Ken Wesson kwess...@gmail.com wrote:
On Sun, Nov 21, 2010 at 1:39 PM, Tim Visher tim.vis...@gmail.com wrote:
On Sat, Nov 20, 2010 at 4:16 PM, Glen Stampoultzis gst...@gmail.com wrote:
Also, I think the Clojure logo is copyrighted so permission might need to
be
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 want to be in a different
clojure runtime here
RT.var(user, function).invoke();
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
On 21 November 2010 20:55, Ken Wesson kwess...@gmail.com wrote:
On Sun, Nov 21, 2010 at 3:43 PM, Daniel Kersten dkers...@gmail.com wrote:
On 21 November 2010 19:01, Ken Wesson kwess...@gmail.com wrote:
On Sun, Nov 21, 2010 at 1:39 PM, Tim Visher tim.vis...@gmail.com wrote:
On Sat, Nov 20, 2010
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
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
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! I can't find
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
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 subscribed
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
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
Thanks, it works for me.
On Nov 21, 1:11 am, Alex Osborne a...@meshy.org wrote:
Dilvan dil...@gmail.com 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
On Sun, 21 Nov 2010 16:26:07 -0800 (PST)
coco clasesparticulares...@gmail.com 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
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
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
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
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
On Sun, Nov 21, 2010 at 11:02 PM, Alex Baranosky
alexander.barano...@gmail.com 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,
On 22 November 2010 15:02, Alex Baranosky alexander.barano...@gmail.comwrote:
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,
Alex Baranosky alexander.barano...@gmail.com 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
On 22 November 2010 15:30, Glen Stampoultzis gst...@gmail.com wrote:
On 22 November 2010 15:02, Alex Baranosky
alexander.barano...@gmail.comwrote:
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
Glen Stampoultzis gst...@gmail.com 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
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
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
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,
Alex Baranosky alexander.barano...@gmail.com 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
On Mon, Nov 22, 2010 at 12:35 AM, Alex Osborne a...@meshy.org wrote:
Alex Baranosky alexander.barano...@gmail.com 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
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.
On Sun, Nov 21, 2010 at 10:08 PM, Gregg Williams greg...@innerpaths.net 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
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
45 matches
Mail list logo