Exactly!
I meant (slide #22) that some functions should extract (capture) the values
you are interested in so that your macros only need to deestructure this
result: macros should do as little as possible.
I hope this clarifies my point.
Christophe
Le mercredi 19 septembre 2012, Matching Socks
Timothy Washington twash...@gmail.com writes:
(defun nrepl-jack-in (prompt-project)
(interactive P)
*=*(let* ((cmd (if prompt-project
(format cd %s %s (ido-read-directory-name Project:
)
*nrepl-server-command*)
That form has several
Thanks for the added explanation. I understand now that your advice is
simply to write a function for each binding macro, which returns the
value(s) bound by the macro.
Thanks also for a great talk! The Clojure community is very fortunate to
have all this stuff publicly available on video.
--
Thanks a lot David. As much as I'd like to contribute, I've only just
started looking into logic programming.
Stathis
On Wednesday, 19 September 2012 17:42:09 UTC+1, David Nolen wrote:
On Wed, Sep 19, 2012 at 11:11 AM, Stathis Sideris
sid...@gmail.comjavascript:
wrote:
Hello,
Is
... JIRA ... The contributions we've received so far have been stellar -
so I'm inclined to think the barrier is an illusion.
Yes it would, but by and large the users of ClojureScript are Clojure
users. So we haven't seen much real interest in this yet.
Basically, what You are saying is -
Hi all,
this may sounds like a silly question but I have to ask it!
Let's assume there are 2 nested opportunities for parallel execution of
some code...so for example I've got a genetic algorithm (scoring the
organisms can be run in parallel) and some reducers code that does the
actual
On Thursday, September 20, 2012, Alexey Petrushin wrote:
... JIRA ... The contributions we've received so far have been stellar -
so I'm inclined to think the barrier is an illusion.
Yes it would, but by and large the users of ClojureScript are Clojure
users. So we haven't seen much real
Stuart:
Regarding making clojure.test/clojure.string/etc. contrib libraries, does
it make sense to also move clojure.core to a contrib style library. The
idea here would be that Clojure 1.6 is the bundling of all smaller
Clojure lib/contrib subsets, whose version number is always in sync
i stumbled upon this:
http://page.mi.fu-berlin.de/prechelt/phonecode/
the results:
http://page.mi.fu-berlin.de/prechelt/Biblio/jccpprt_computer2000.pdf
summary: concise languages bashed c, c++ and java if you look at the time
needed to complete the program. however, in 1999, there were no good
On Thu, Sep 20, 2012 at 10:52 AM, Dennis Haupt d.haup...@googlemail.comwrote:
i stumbled upon this:
http://page.mi.fu-berlin.de/prechelt/phonecode/
the results:
http://page.mi.fu-berlin.de/prechelt/Biblio/jccpprt_computer2000.pdf
summary: concise languages bashed c, c++ and java if you
what i am really interested in is the time necessary to finish the task.
i'll probably need to modify the requiremet so the participants cannot
cheat - or i'll allow cheating deliberately and say this is the result
under optimal conditions (meaning the raw coding time is measured, no
debugging,
This problem would be ideally suited for core.logic except because of the
hint (http://page.mi.fu-berlin.de/prechelt/phonecode/hint2.html) you'd
need to do something far more ugly.
On Thursday, September 20, 2012 5:07:52 PM UTC+2, David Nolen wrote:
On Thu, Sep 20, 2012 at 10:52 AM, Dennis
sal salka...@gmail.com writes:
i am able to run clojure-jack-in and start swank server
Are you able to use the repl?
, but never see the
command slime-mode, slime-connect in emacs.
Not sure what you mean by this. Are these commands not available once
the repl is running? The jack-in
On Thu, Sep 20, 2012 at 1:19 PM, Jules julesjac...@gmail.com wrote:
This problem would be ideally suited for core.logic except because of the
hint (http://page.mi.fu-berlin.de/prechelt/phonecode/hint2.html) you'd
need to do something far more ugly.
The solution I came up with doesn't attempt
gaaah you almost made me read it
Am 20.09.2012 19:19, schrieb Jules:
This problem would be ideally suited for core.logic except because of
the hint (http://page.mi.fu-berlin.de/prechelt/phonecode/hint2.html)
you'd need to do something far more ugly.
On Thursday, September 20, 2012 5:07:52
How about trying:
nrepl-jack-in
This is working good here, at least from within a leiningen project.
Regards,
Greg
On Saturday, September 15, 2012 2:39:36 AM UTC-4, sal wrote:
Hi Everyone,
Trying to setup emacs 24.2 on mac osx clean setup, nothing else.
clojure-mode 20120808
On Wednesday, September 19, 2012 10:52:26 AM UTC+1, Patrik Sundberg wrote:
On Tuesday, September 18, 2012 10:10:35 PM UTC+1, hutch wrote:
On 2012-09-16, at 3:21 PM, Patrik Sundberg patrik@gmail.com wrote:
I'm asking myself though if there's a more functional design for
accomplishing
Heyya, thanks for your help so far on this. See comments inlined...
On Thu, Sep 20, 2012 at 2:40 AM, Tassilo Horn t...@gnu.org wrote:
Timothy Washington twash...@gmail.com writes:
(defun nrepl-jack-in (prompt-project)
(interactive P)
*=*(let* ((cmd (if prompt-project
i came to a correct solution without that hint :)
just like in reality, i started coding without reading the spec. a few
surprises came along the way (what? they want it like this? they just
added this to mock me!)
i spent about 50% of the time writing code and 50% thinking about it.
i'll tell my
I create a ref to an array:
(def r (ref (make-array Integer/TYPE 5)))
(type @r) - [I
Then, I try to alter the array:
(dosync
(alter r aset-int 0 9))
I would then expect to be able to write (aget @r 0) and get result of 9,
but what actuall happens is that r becomes reference to
It would be really interesting to see a course about Clojure on
coursera.org, where a Scala and functional programming course just started
https://class.coursera.org/course/progfun
--
You received this message because you are subscribed to the Google
Groups Clojure group.
To post to this
his seems strange to me:
We're trying to call the submit(Callable) method on the ExecutorService,
passing in a Clojure function.
First of all we use an executor in a global def, and submit a function, and
it appears to use the submit(Runnable) method i.e. we're getting nil
instead of the
Piotr:
The most direct answer to your specific question is that aset-int modifies the
array, and returns the value 9. The return value 9 is what the ref r is being
set to after the (dosync (alter ...)) call.
However, there is a bigger issue here. Even if you replace aset-int with a
23 matches
Mail list logo