I updated my Clojure shootout web site benchmark programs so they
worked on 1.3 alpha1, and ran them on 4 JVMs on 3 different OSs. The
timing results are collected on the following ugly but quick-to-create-
from-an-Excel-spreadsheet web page:
http://homepage.mac.com/jafingerhut/files/clojur
As some of you know, I suffer from a seemingly interminable obsession
with improving the Clojure debugging story. It just seems so clear to
me that Clojure deserves a world class debugger, one befitting it's
power, beauty and elegance. Maybe one day, we'll get there. Till
then, here are my lates
I hadn't time to read the whole post, but, I I understand it well, this snipset
(defmacro with-context [options & body]
`(let [context# (create-context options)
thread# (create-thread context)
sources# (atom {})
receivers# (atom {})]
(binding [init-receiver (partial in
Hi,
blais is not talking 'bout openings, but closings.
When you have this (the pipe symbol for the cursor position) :
(def | foo [bar baz] (hello ) )
If you type
)
You will have with paredit the cursor which jumps after the last closing
paren, instead of just inserting this damn closing paren
2010/9/27 Tassilo Horn
> Hi,
>
> did you already try out paredit [1]? That mode is absolutely fabulous
> for programming any lisp and provides much more than just closing
> parens.
>
My bet is that it's exactly paredit's behavior the OP is complaining about.
We had the same discussions in coun
2010/9/28 George Jahad
> As some of you know, I suffer from a seemingly interminable obsession
> with improving the Clojure debugging story. It just seems so clear to
> me that Clojure deserves a world class debugger, one befitting it's
> power, beauty and elegance. Maybe one day, we'll get the
Wow, looks very useful. Quickly perusing the 'ridiculously long instructions'
it seems that it isn't compatible with slime.
Is this the case? Does slime fit into your workflow, and if so, how?
Sam
---
http://sam.aaron.name
On 28 Sep 2010, at 9.08 am, Laurent PETIT wrote:
> 2010/9/28 George
I regularly use both simultaneously.
While Slime and the CDT don't currently leverage each other, they
don't interfere with each other either as far as I know, unless you
happen to suspend the swank server thread. Not sure what all the
implications of that are. I'm still learning.
Why do you as
My standard practice is to split the (Emacs) screen, one side is a
Clojure mode edit session, the other a repl. Best of both worlds.
One can easily build up complex expressions as required, and still
easily evaluate expressions in either side of the screen.
If you are not familiar with Emacs and
On 28 Sep 2010, at 11.20 am, George Jahad wrote:
> Why do you ask? Is there some particular functionality you are
> interested in?
Well, I'm just learning too. Currently I rely on lein swank to start up my JVM
so that slime can connect to it. CDT seems to want you to manually start up the
JVM
On Tue, Sep 28, 2010 at 12:03 PM, David Cabana wrote:
> My standard practice is to split the (Emacs) screen, one side is a
> Clojure mode edit session, the other a repl. Best of both worlds.
> One can easily build up complex expressions as required, and still
> easily evaluate expressions in eit
Hello all,
Where can I download swank-clojure-1.1.0.jar? My attempts to compile (using
lein jar) are failing. I think is due to the repositories location.
Or, better, how can I fix the repositories in the swank-clojure code.
Thanks.
-- christian guimaraes
--
You received this message because
>> Why do you ask? Is there some particular functionality you are
>> interested in?
>
> Well, I'm just learning too. Currently I rely on lein swank to start up my
> JVM so that slime can connect to it. CDT seems to want you to manually start
> up the JVM with a particular set of flags. So, do yo
Dear all ,
any link where to find examples of clojure code used in business
appl. , domain model , etc
thanks
abraham
--
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
I'm new at clojure+emacs+slime+swank+leiningen and I wanted to run a
(simple?) test that goes like this:
$ lein new test-project; cd test-project
$ cat > ./src/core.clj
(ns test-project.core)
(def *argh* 1)
; loop, printing *argh* every sec, for 100 secs
(loop [i 0]
(if (= i 100)
(println
I could do this, but right now I'm just playing with C-c C-r to
evaluate regions, instead of compiling the entire file. And I'd swear
this used to put the evaluation in the REPL.
On Sep 27, 10:59 pm, Alan wrote:
> C-c C-k in the .clj buffer is easier and equivalent (or at least very
> similar)
>
I'm just doing simple Clojure exercises with simple evaluations of
regions in the .clj buffer. I don't have an ns form, but I was under
the impression that this put me in the user namespace, which is what
my REPL is in. If I evaluate *ns* in the .clj buffer I get # in the minibuffer, and I get the
Awesome !
On Sep 24, 4:39 am, David Nolen wrote:
> First off Acknowledgements:
>
> Aria Haghighi, did much of the heavy lifting on this project!
> Stephen Roller, created the first version of the bundle in 2008
> Mark McGranaghan, expanded Stephen Roller's version
> Justin Balthrop & Lance Brad
Indeed. Similar functionality will be implemented in cake very soon.
On Sep 27, 8:54 pm, Scott Jaderholm wrote:
> Daniel,
>
> If you install lein-search
> (http://clojars.org/lein-searchorhttp://github.com/Licenser/lein-search) you
> can do searches like that.
>
> lein search mail
>
> If you pu
On Tue, 28 Sep 2010 03:58:56 -0700 (PDT)
psfblair wrote:
> I could do this, but right now I'm just playing with C-c C-r to
> evaluate regions, instead of compiling the entire file. And I'd swear
> this used to put the evaluation in the REPL.
>
> On Sep 27, 10:59 pm, Alan wrote:
> > C-c C-k in t
yeah, that's what i was thinking of doing, but it didn't seem pretty.
thanks!
On Sep 27, 5:30 pm, Stuart Sierra wrote:
> Here's one popular form:
>
> (defn foo
> ([a b c] (foo a b c nil))
> ([a b c d] (if d ...)))
>
> Most multi-arity functions have the same behavior for every arity,
> with s
Christian Guimaraes wrote:
> Hello all,
>
> Where can I download swank-clojure-1.1.0.jar? My attempts to compile (using
> lein jar) are failing. I think is due to the repositories location.
>
> Or, better, how can I fix the repositories in the swank-clojure code.
>
> Thanks.
>
> -- christian guim
On Tue, Sep 28, 2010 at 3:40 AM, George Jahad
wrote:
> As some of you know, I suffer from a seemingly interminable obsession
> with improving the Clojure debugging story. It just seems so clear to
> me that Clojure deserves a world class debugger, one befitting it's
> power, beauty and elegance.
On Tue, Sep 28, 2010 at 3:29 AM, Andy Fingerhut wrote:
> I updated my Clojure shootout web site benchmark programs so they worked on
> 1.3 alpha1, and ran them on 4 JVMs on 3 different OSs. The timing results
> are collected on the following ugly but
> quick-to-create-from-an-Excel-spreadsheet we
George,
> As some of you know, I suffer from a seemingly interminable obsession
> with improving the Clojure debugging story. It just seems so clear to
> me that Clojure deserves a world class debugger, one befitting it's
> power, beauty and elegance. Maybe one day, we'll get there. Till
> then
Hi,
the problem is the
(concat "http://repo.technomancy.us/";
"swank-clojure-1.1.0.jar")
in the swank-clojure.el
this repo no longer exists.
-- christian
On Tue, Sep 28, 2010 at 12:59 PM, Joost wrote:
>
>
> Christian Guimaraes wrote:
> > Hello all,
> >
> > Where can I downlo
Christian Guimaraes wrote:
> Hi,
>
> the problem is the
>
> (concat "http://repo.technomancy.us/";
> "swank-clojure-1.1.0.jar")
>
> in the swank-clojure.el
>
> this repo no longer exists.
>
> -- christian
That's because swank-clojure.el no longer exists and is no longer
supported
I'm pleased to announce a new library for stream processing in Clojure
called Conduit.
Stream processing concepts are described in the book "Enterprise
Integration Patterns" and the Apache Camel project is a stream
processing library for Java.
This library is intended to abstract away the 'plumbi
There is the "ANN: Clojure Cookbook" thread that Dave Sletten just posted,
where he points out a new Clojure Cookbook he's working on:
http://www.gettingclojure.com/cookbook:clojure-cookbook
Tim
On Tue, Sep 28, 2010 at 4:10 AM, Abraham wrote:
> Dear all ,
>
> any link where to find examples of
Hey guys,
I'm looking for one of the following more affordable sleeping options at
clojure-conj (Thu, Fri, and Sat nights):
1) Someone willing to gift or rent space for an air mattress in their room.
2) Someone with a king w/ sofa bed room willing to rent out the sofa bed.
3) Someone interested
The message below pretty much sums it up.
My original problem with paredit and such is that it creates
"modality",
that is, the behaviour of insertion depends on the context.
This variable behaviour, this "modality problem" is what Jef Raskin
talks about in
"The Humane Interface" (a truly enlighte
your test has no (is ...)
On Mon, Sep 27, 2010 at 5:16 PM, Timothy Washington wrote:
> I suppose I've been looking at this code for too long, so I need a 2nd pair
> of eyes on it. I'm not getting some 'test.is' code to run. I'm trying to run
> the tests as in fig. 1. Suppose the tests are defined
On Sep 26, 2010, at 6:51 PM, blais wrote:
> Writing Clojure code tends to require a larger mix of "()",
> "[]" and "{}" characters than other LISPs I use. This
> sometimes makes it a bit tiring to write those balanced
> expressions.
For outer expressions I tend to use the verbose forms (hash-map
Hi,
Am 28.09.2010 um 19:07 schrieb Michael Gardner:
> Does anybody know of an equivalent for Vim?
Not yet, but it is on the radar for VC now. :)
Sincerely
Meikel
--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to
Maybe http://www.couchsurfing.org/ will be of help?
On Sep 28, 6:58 am, Scott Jaderholm wrote:
> Hey guys,
>
> I'm looking for one of the following more affordable sleeping options at
> clojure-conj (Thu, Fri, and Sat nights):
>
> 1) Someone willing to gift or rent space for an air mattress in th
I've been working on a library for representing molecules, atoms, chemical
bonds, etc... called chemiclj ( http://github.com/slyrus/chemiclj ) and I've
run into a design issue that has flummoxed me for a few weeks. I've written up
a blog post that goes into more detail (
http://slyrus.github.c
thanks for the lengthy reply! i will play around with these
suggestions. like the fact there are less parameters to pass around.
On Tue, Sep 28, 2010 at 1:10 AM, Meikel Brandmeyer wrote:
> Hi,
>
> I'm not sure my solution is 100% idiomatic, but has some advantages.
> General strategy: minimise ma
thanks for the reply, you are right! and in fact my real
implementation is more like this, i thought that by showing them both
as macros in the post it would be easier for people to just skim read
the post and compare them side by side. probably just confused the
issue, sorry.
the thing im really
I wrote this immediately after writing the code and running the test.
I should have waited a bit because in retrospect the test is bound to
fail. Guessing I should have used a transaction.
On Sep 28, 7:17 pm, Alex wrote:
> I'm new at clojure+emacs+slime+swank+leiningen and I wanted to run a
> (s
Looking at the api code helped me a lot, for what it's worth.
On Sep 28, 7:28 am, Timothy Washington wrote:
> There is the "ANN: Clojure Cookbook" thread that Dave Sletten just posted,
> where he points out a new Clojure Cookbook he's working
> on:http://www.gettingclojure.com/cookbook:clojure-c
Hi Mark,
I tested the change to expt-int. Unfortunately, still no performance
gain.
I'm afraid I don't have a solid enough grasp of Clojure to know what
tweaks are needed to get performance fast again. Do you think you'll
have time to play with 1.3 soon?
On Sep 27, 1:00 am, Mark Engelberg wro
Thanks Joost,
after fighting some hours with this stack (Clojure + Swank + Slime), finally
I could to put them to work together.
Thanks for the tips.
On Tue, Sep 28, 2010 at 2:03 PM, Joost wrote:
>
>
> Christian Guimaraes wrote:
> > Hi,
> >
> > the problem is the
> >
> > (concat "http://repo.t
Blais,
Thank you for contributing the emacs code. I have been looking for
the same thing, for the reasons you and Laurent PETIT described.
Bill Smith
Austin, Texas
--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to
On Tue, Sep 28, 2010 at 2:30 PM, Christian Guimaraes
wrote:
> Thanks Joost,
>
> after fighting some hours with this stack (Clojure + Swank + Slime), finally
> I could to put them to work together.
Where did you find the documentation telling you to use this method
rather than M-x slime-connect? I
On Sun, Sep 26, 2010 at 22:05, Robert McIntyre wrote:
>
>
> Here are my functions that they may be helpful to you:
>
> (defmacro ns-nuke
> ([]
> (let [current-ns# (symbol (str *ns*))]
> `(do
> (println "NUKING namespace" (quote ~current-ns#))
> (clojure.lang.Namespace/
On Sun, Sep 26, 2010 at 22:03, Phil Hagelberg wrote:
> On Sun, Sep 26, 2010 at 2:56 PM, Michael Ossareh
> wrote:
> > Situation: We've built a product, very rapidly thanks to being able to
> > produce stuff very quickly in clojure. However now that it is somewhat
> > settled I'm in the process of
Hi all -
I have an xml file structured something like
to retrieve the id attribute is easy enough:
(zf/xml-> myxmldata :b (zf/attr :id))
but i want to retrieve both the id and name attributes into a list
doing something like
(zf/xml-> myxmldata :b (zf/attr [:id :name] ))
Any i
Oh that's my mistake in the example code. My actual code does have an (is )
function. The example code should look like:
(deftest test-code []
*(is (= 5 5)) *
)
Tim
On Tue, Sep 28, 2010 at 12:29 PM, Kevin Downey wrote:
> your test has no (is ...)
>
> On Mon, Sep 27, 2010 at 5:16 PM, Timot
Following the excellent instructions here: http://clojure.org/patches
My assembla login is AnthonySimpson. :)
--
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 membe
Oops! Damn Chrome and it's URL autocomplete! This was meant to be on
clojure-dev. I'll cross-post. Sorry for the spam. :\
On Sep 28, 6:16 pm, Rayne wrote:
> Following the excellent instructions here:http://clojure.org/patches
>
> My assembla login is AnthonySimpson. :)
--
You received this mess
I'm having problems creating functions with the type hints generated
dynamically.
As a contrived example (my actual use case is somewhat complicated),
let's say I want to make a macro that takes in as input a class symbol
and returns a type hinted function that calls a method on the
argument:
(de
Type hints are just metadata. Instead of emitting the type-hint from
the macro, you set the :tag metadata on the relevant symbol.
On Sep 28, 5:20 pm, nathanmarz wrote:
> I'm having problems creating functions with the type hints generated
> dynamically.
>
> As a contrived example (my actual use
> You note that you're using ccw, is that because you have a clue that there
> could be something related to the "lazytest-ccw" combo in the issue you're
> facing ?
no, ccw is ok. its a big help for
us die-hard eclipse users. thank you.
i think its my mistake: i put tests
in a different src-file
That worked great, thanks.
On Sep 28, 5:42 pm, ataggart wrote:
> Type hints are just metadata. Instead of emitting the type-hint from
> the macro, you set the :tag metadata on the relevant symbol.
>
> On Sep 28, 5:20 pm, nathanmarz wrote:
>
>
>
> > I'm having problems creating functions with the
Baishampayan Ghose writes:
>>> Why do you ask? Is there some particular functionality you are
>>> interested in?
>>
>> Well, I'm just learning too. Currently I rely on lein swank to start
>> up my JVM so that slime can connect to it. CDT seems to want you to
>> manually start up the JVM with a p
On Tue, Sep 28, 2010 at 7:40 PM, Eric Schulte wrote:
> Currently I use the :jvm-opts keyword in project.clj, however it would
> be nice to be able to specify different argument when using different
> tools as mentioned in the thread above, or to be able to set different
> values (e.g. maximum heap
hmmm, you must be as big a debugger geek as I am, but I'm not sure
anyone else would be interested.
In any case the commands are almost trivial, which is why I don't
think it will be too hard to port this to other IDE's:
These are the CDT commands that were generated by the Emacs front end
in the
I forgot to make clear in my post that port 8021 is just an example,
you should use another if that one is in use, and you get this error:
[null] ERROR: transport error 202: bind failed: Address already in use
[null] ERROR: JDWP Transport dt_socket failed to initialize,
TRANSPORT_INIT(510)
Adie
On Tue, Sep 28, 2010 at 3:15 PM, Michael Ossareh wrote:
>> http://github.com/Seajure/radagast
>
> Funny you should mention that, I actually have a script which uses radagast
> and greps out the missed functions which begin with my namespace.
There's some customization built-in to Radagast (the
On Tue, Sep 28, 2010 at 4:17 AM, Alex wrote:
> Then, I did:
> $ lein swank
> user=> Connection opened on local port 4005
> # 127.0.0.1,port=0,localport=4005]>
>
> First question: why no visible output?
Running "lein swank" just launches a swank server. It doesn't run any
of your project's code.
60 matches
Mail list logo