HI Phil. Tried the clojure-install on a fairly clean ubuntu / emacs23
Here is what went and what went wrong:
Had to use a different .emacs. Just autoload and add-to-list didn't
seem to load clojure-mode.el. Took a moment to figure out that I had
to set clojure-src-root as well, as that isn't
Slowly wrestling myself through getting to know emacs.
Ok. autoload works fine. Didn't realize I have to open emacs with
a .clj file for the clojure-mode to load. Now looking where this
'Cannot open load file:slime-repl' is coming from.
On Feb 9, 10:36 am, bOR_ boris.sch...@gmail.com wrote:
HI
(let [basedir (if-let [bdir (:basedir *locs)] bdir .)]
...)
I'd personally write that as:
(let [basedir (or (:basedir *locs*) .)]
...)
There is also when-let, which can be used to iterate over sequences:
(loop [items some-sequence]
(when-let [item (first items)]
(do something)
Looks like you're moving apace!
Have you considered query/subquery optimization instead of magic sets?
Rich
On Feb 8, 7:51 pm, Jeffrey Straszheim straszheimjeff...@gmail.com
wrote:
By the way, if anyone on this list has experience implementing bottom-up
optimizations for logic programs,
On Sat, Feb 7, 2009 at 9:16 PM, Jason Wolfe jawo...@berkeley.edu wrote:
merge-with says it returns a map, but if you give it no arguments it
gives you back nil instead of the empty map.
In my code, I had something like:
((apply merge-with concat maps) key)
and got NPE rather than nil
Hi everyone
first of all, this is my first post, so if I ask FAQs or deserve to
RTFM, please tell me.
I am learning clojure, and trying to adapt some game code written in a
Java framework called Slick. After a couple of beginner's mistake (the
kind you do to learn ;) ), I got a working
Cool, thanks.
On Mon, Feb 9, 2009 at 7:14 AM, Rich Hickey richhic...@gmail.com wrote:
On Feb 8, 5:13 pm, Jeffrey Straszheim straszheimjeff...@gmail.com
wrote:
I have this piece of code:
(defn- run-work-elements-in-parallel
Runs a group of work elements in parallel. Returns an
No, but I'm really learning as I go here. I'll look into it.
On Mon, Feb 9, 2009 at 7:58 AM, Rich Hickey richhic...@gmail.com wrote:
Looks like you're moving apace!
Have you considered query/subquery optimization instead of magic sets?
Rich
On Feb 8, 7:51 pm, Jeffrey Straszheim
Did this work for you? Do you understand what the problem was?
On Sun, Feb 8, 2009 at 8:06 PM, Jeffrey Straszheim
straszheimjeff...@gmail.com wrote:
In fact, try this:
(defn add-children [searchtype statelist]
(let [c (children (first statelist))
s (rest statelist)]
Since you say you're an Eclipse user, one answer could be : use clojuredev
(eclipse plugin supporting clojure development),
and wait patiently for this feature to be included :-).
More seriously : clojuredev, while still a baby compared to slime, has some
interesting features worth considering
I wanted to say compared to emacs+slime+clojure-swank, of course.
There are also netbeans and jetbrain Ideas implementations, also.
I just posted here because you told about eclipse, but those other
environments are good, too !
--
Laurent
2009/2/9 Laurent PETIT laurent.pe...@gmail.com
Since
I know I could just go read the docs, but I hope someone familiar with this
Cells stuff could save me some time:
1. Does Cells handle circular dependencies in your computation? If so,
(briefly) how?
(e.g. if the value of X depends on Y, and Y depends on X, can it handle
it?)
2. How is state
On Feb 7, 9:36 pm, Jeffrey Straszheim straszheimjeff...@gmail.com
wrote:
With the help of the IRC folks I solved my own problem.
I thought I'd share my findings:
You cannot safely call pmap inside of another pmap function. Because
pmap is implemented on top of agents, the actual calls to
Good. This one concerned me, as I'd like to use pmap given its simplicity,
but that would prevent other from calling my code in their own pmap (and how
would they know not to do that).
On Mon, Feb 9, 2009 at 11:29 AM, Rich Hickey richhic...@gmail.com wrote:
On Feb 7, 9:36 pm, Jeffrey
Oh, don't worry, I used clojuredev for this ;) I noticed a few bugs
here and there, by the way, so i'll have to find some time and
report / patch ... anyway on this topic you really have the same
probleme with java, except that propers tools just hide the hugly list
of import anyway.
Cheers
PH
Oh, don't worry, I used clojuredev for this ;) I noticed a few bugs
here and there, by the way, so i'll have to find some time and
report / patch ... anyway on this topic you really have the same
probleme with java, except that propers tools just hide the hugly list
of import anyway.
Cheers
PH
How does one make a standard clojure based class file or jar file without
embedding clojure source files.
Hank
--
blog: whydoeseverythingsuck.com
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
Clojure group.
To
I agree with what Laurent said about clojuredev, I've been having
great success using it myself, for my clojure/slick creations. My
first project was converting Kevin Glass's platformer example over to
clojure which gave me a chance to learn slick and Clojure all in one
go! Unfortunately, the
Oh nice !
So there's more clojuredev users than the ones having subscribed to the
clojuredev-user ml :-)
Feel free to report bugs. I like them :-) Correcting a bug is like a step
forward to perfection :-) :-)
--
Laurent
2009/2/9 phtrivier phtriv...@gmail.com
Oh, don't worry, I used
Ahead of Time compilation might be what you are looking for . This lets you
distribute.class files rather than your .clj source files, and makes for
slightly faster code at startup.
http://groups.google.com/group/clojure/msg/58e3f8e5dfb876c9
Joshua
On Mon, Feb 9, 2009 at 6:52 PM, hank williams
Hi,
Am 09.02.2009 um 17:52 schrieb hank williams:
How does one make a standard clojure based class file or jar file
without embedding clojure source files.
http://clojure.org/compilation
You might want to read also the other items on the left
hand side in the reference section.
Sincerely
For some reason I could not reply to the original thread...
Begin forwarded message:
From: Stephen C. Gilardi squee...@mac.com
Date: February 6, 2009 12:49:34 PM EST
To: Eric Thorsen ethor...@enclojure.org
Subject: Re: Patch: universal main() with repl/script/compile
Hi Eric,
I've been
On Feb 9, 2:10 pm, Thorsen Eric ethor...@enclojure.org wrote:
For some reason I could not reply to the original thread...
Begin forwarded message:
From: Stephen C. Gilardi squee...@mac.com
Date: February 6, 2009 12:49:34 PM EST
To: Eric Thorsen ethor...@enclojure.org
Subject: Re:
Thanks for all the explanations. I'll try again this wednesday!
--~--~-~--~~~---~--~~
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
To unsubscribe from this
Hello hank,
How does one make a standard clojure based class file or jar file without
embedding clojure source files.
Shameful plug:
http://en.wikibooks.org/wiki/Clojure_Programming/Tutorials_and_Tips#Distributing_application_as_self_contained_.jar
(the above URL should be 1 line..., it
I know there is no way to import org.newdawn.slick.* (as discussed
here :http://groups.google.com/group/clojure/browse_thread/thread/fa00a0ff4...
). What do you do in programs that need huge list of imports ? I'm
kinda spoiled by the Eclipse way of doing this, which is roughly :
import
I like that implementation. The recursive call makes it much cleaner.
A slight improvement (?) yet:
(defmacro let-
Provide a name that will be bound to the result of the first form.
For each additional form, the variable will be
used in the evaluation, and then rebound to the result
On Feb 9, 2009, at 2:13 PM, Rich Hickey wrote:
On Feb 9, 2:10 pm, Thorsen Eric ethor...@enclojure.org wrote:
For some reason I could not reply to the original thread...
Begin forwarded message:
From: Stephen C. Gilardi squee...@mac.com
Date: February 6, 2009 12:49:34 PM EST
To: Eric
I like that implementation. The recursive call makes it much cleaner.
A slight improvement (?) yet:
(defmacro let-
Provide a name that will be bound to the result of the first form.
For each additional form, the variable will be
used in the evaluation, and then rebound to the result
A conversation on IRC tonight[1] got me thinking... Although most
collections can be safely printed, such as at the REPL, this is not
true of all collections. Probably the best-known exception in Clojure
are infinite lazy sequences, where printing can cause an infinite
loop:
(prn (iterate inc
30 matches
Mail list logo