On Oct 21, 9:04 pm, "Meikel Brandmeyer (kotarak)"
wrote:
> Hi,
>
> may I question the transitivity of state information?
>
> Maybe the world's state is that player "Trantor" is at position [15 34]. Now
> Trantor eats an appel. The appel is removed from his inventory and his
> health is raised by 5
> The problem with identities of actors comes in when you consider code
> like the following:
>
> (def trantor (get-actor "Trantor" world-state))
>
> (:hit-points trantor)
> => 10
>
> (def new-world-state ((command "Trantor" :eat "apple") world-state))
>
> (:hit-points trantor)
> => 10 (s
How can people toggle between the various commits I mentioned using Maven?
Rich
On Oct 23, 2011, at 9:52 PM, Stuart Sierra wrote:
> As a reminder, you don't need Git to use the latest development version of
> Clojure. Just set your Clojure dependency version to "1.4.0-master-SNAPSHOT"
> and ad
hmm ... last time i visited the starter_packages-page
the link to clojure was inactive.
howsoever ... i apologise. thanks for implementing this.
no clojure-program in top chart so far ... ;-)
On Oct 22, 8:46 am, Chris Granger wrote:
> Hm? My starter package is there:
>
> http://aichallenge.org
After watching Rich's talk the other day about "Making Simple Easy", I
started thinking about how to incorporate parts of this talk into the
software we're writing at work. During this thought process, I have
begun to wonder, are simple and statically typed languages mutually
exclusive?
Let me exp
Thanks for the explanation All. I have a much better grasp of what's going on
now.
Just one more question: It is defined behavior, or should I submit a patch for
Clojure 1.3?
Micah
On Oct 20, 2011, at 7:55 PM, Chouser wrote:
> On Thu, Oct 20, 2011 at 4:31 PM, Chris Perkins
> wrote:
>> Not
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
i have some (10 years) experience with difference statically typed
languages and a bit with dynamic ones. i encountered a few typesafe
solutions that don't introduce a lot of overhead - for example the
types of scala. in addition to interfaces and clas
On Fri, Oct 21, 2011 at 10:05 AM, Michael Forster wrote:
> Yes: Was that a nil value for the key :foo in my map or did :foo not
> exist?
If you need to distinguish between ":foo is missing" and ":foo's value
indicates non-existence", what about:
(get my-map :foo ::missing)
--
Sean A Corfield -
Or:
(if-let [[_ v] (find my-map key)]
v
:something-else)
On Tue, Oct 25, 2011 at 1:19 AM, Sean Corfield wrote:
> On Fri, Oct 21, 2011 at 10:05 AM, Michael Forster
> wrote:
> > Yes: Was that a nil value for the key :foo in my map or did :foo not
> > exist?
>
> If you need to distinguish b
;; lein for all 3 commits
[org.clojure/clojure "1.4.0-master-20111023.210239-5"]
and I imagine you can do something similar with maven, the main thing
is you need to add the sonatype snapshot repo.
but you can't access individual commits because the build machine
polls and gathers the latest comm
I'm struggling with a basic feature of how macros behave. I understand
how the
problem arises, and I can cobble together my own fix in the specific
places
where it's causing me trouble, but it seems like a prettier, more
general
solution would be desirable. Below is a brief transcript demonstrating
Hi everyone,
I'm working my way through Practical Clojure's macro chapter, and I'd like
to check my understanding about one of the examples.
The book discusses writing a macro to randomly evaluate a form out of a list
of forms--essentially a cond that randomly selects which branch to evaluate.
Yes, definitely. Your version selects which form to evaluated once, at
compile time; the original selects a form every time the expansion is
evaluated.
user> (defn rand-num [] (rand-expr-mulit 1 2 3 4 5 6 7 8 9))
#'user/rand-num
user> (rand-num)
7
user> (rand-num)
7
user> (rand-num)
7
user> (rand-
it's not a macro issue, it's a syntax quote issue
On Mon, Oct 24, 2011 at 11:54 AM, Alan Malloy wrote:
> I'm struggling with a basic feature of how macros behave. I understand
> how the
> problem arises, and I can cobble together my own fix in the specific
> places
> where it's causing me trouble
I'm not sure I buy that. If I write my macro as (defmacro call [f arg]
(list f arg)), which I did consider doing for this post, the same
thing happens. Perhaps you could explain what you mean?
On Oct 24, 12:37 pm, Kevin Downey wrote:
> it's not a macro issue, it's a syntax quote issue
>
>
>
>
>
>
syntax quote effectively does that it, it rewrites your forms as a
series of calls to various sequence functions like concat and in the
shuffling it loses metadata.
On Mon, Oct 24, 2011 at 12:43 PM, Alan Malloy wrote:
> I'm not sure I buy that. If I write my macro as (defmacro call [f arg]
> (lis
That would be relevant if I were talking about losing metadata on
arguments to the macro, say like (call .length ^String (identity
"test")). But I'm talking about metadata on &form - syntax-quote never
sees that at all, so there's nothing for it to lose.
On Oct 24, 12:50 pm, Kevin Downey wrote:
>
Ah, got it. Your last sentence is very well-put!
--
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 are moderated - please be patient with your
first post.
To
> Just one more question: It is defined behavior, or should I submit a patch
> for Clojure 1.3?
>
> Micah
What exactly would the patch do?
Stu
--
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 Oct 24, 2011, at 3:22 PM, Stuart Halloway wrote:
>> Just one more question: Is it defined behavior, or should I submit a patch
>> for Clojure 1.3?
>>
>> Micah
>
> What exactly would the patch do?
The patch would pass the following test:
(list
(declare ^:dynamic p)
(defn q [] @p))
(shoul
I tried submitting the started package and it crashed as hills weren't
implemented.
I have patched the starter package to include hills (although I
suspect I'm doing the wrong thing; I blindly copied the behaviour of
keeping track of the coords for hills too).
The code resides in: https://github.
More about Scala:
http://www.slideshare.net/El_Picador/scala-vs-ruby
--
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 are moderated - please be patient with
I've gotten as far as changing to a directory with a project.clj and
execute C-c C-j C-i
I see this in my *swank* buffer:
Process swank exited abnormally with code 127
sh: line 1: lein: command not found
lein is on my search path (in ~/bin). Where do I update things so
that it is on the path
some kind soul gave me this on the mailing list a while ago, works for me:
;; fix the PATH variable
(defun set-exec-path-from-shell-PATH ()
(let ((path-from-shell (shell-command-to-string "$SHELL -i -c 'echo $PATH'")))
(setenv "PATH" path-from-shell)
(setq exec-path (split-string path-fr
On Mon, Oct 24, 2011 at 4:28 PM, Howard Lewis Ship wrote:
> lein is on my search path (in ~/bin). Where do I update things so
> that it is on the path for the Swank process?
In Mac OS X, usually programs that are launched from the GUI don't get
their environment variables (like $PATH) set correc
This was helpful:
http://www.emacswiki.org/emacs/MacOSTweaks#toc14
I added the following to my init.el:
(setenv "PATH" (concat (getenv "PATH") ":~/bin"))
(setq exec-path (append exec-path `("~/bin")))
Seems like I could have used (add-to-list 'exec-path "~/bin") for the
second line, is that ri
So Swank appears to be running, but when I edit a Clojure file and hit
C-x C-e I get an error:
Symbol's function definition is void: lisp-eval-last-sexp
I also see this in my *messages* buffer:
error in process filter: require: Symbol's value as variable is void: slime-clj
Any ideas ... even on
You should use 'do' for that kind of thing, not list.
Rich
On Oct 20, 2011, at 1:53 PM, Micah Martin wrote:
> I recently tried to get Speclj running on Clojure 1.3 and came across the
> following problem:
>
> (list
> (declare ^:dynamic p)
> (defn q [] @p))
>
> (binding [p (atom 10)]
> (q))
> I think that's the issue. Expecting your def-ed trantor to change once
> the world state has been updated is what would be expected in a world
> of pointers, OOP, etc. However, the new updated world (in my view) has
> a new trantor which you need to extract with your (get-actor ...).
>
> This wou
> this: There may be situations, now or in the future, where it is desirable
> to create Keywords containing non-`read`able characters. Therefore, don't
> use Keywords for things that may contain non-`read`able characters if you
> want to print and read them.
>
> -Stuart Sierra
> clojure.com
Stuar
Hi! Since both (:a {:a 1 :b 2}) and ({:a 1 :b 2} :a) return the
correct value, is there any difference between the two? What is the
preferred form?
Thanks.
--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@g
You can't jump around at a per-commit level (unless there's one build for
each commit) but you can jump around among individual builds.
You can see a list of all completed builds on our Hudson server:
http://build.clojure.org/view/Clojure/job/clojure/
The "module builds" pages show the Git commi
http://stackoverflow.com/q/7034803/625403
On Oct 24, 2:58 pm, pistacchio wrote:
> Hi! Since both (:a {:a 1 :b 2}) and ({:a 1 :b 2} :a) return the
> correct value, is there any difference between the two? What is the
> preferred form?
>
> Thanks.
--
You received this message because you are subs
Confirm, as Jake said it is enough to delete the folder
/Library/Application Support/Aquamacs Emacs/SLIME/; my problem was
probably derived from having previously installed also
Aquamacs-SLIME-2011-xxx.pkg.tgz, the SLIME plugin from
http://aquamacs.org/download.shtml.
(Lein's swank plugin uses an
It seems you're having some problems with incompatible slime versions.
On Mac I'm successfully using Acquamacs
(http://aquamacs.org/download.shtml - do NOT install
Aquamacs-SLIME-xx.pkg.tgz) without any particular workaround. Just
install it, install lein (my script is /usr/bin/lein) and the
clojur
I modified the repljs.bat to include the current directory src/clj, src/cljs,
lib/, test/cljs, and test/clj to use with emacs inferior lisp mode in Windows.
https://gist.github.com/1310468
Matt Hoyt
--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
T
On Mon, Oct 24, 2011 at 5:06 PM, Howard Lewis Ship wrote:
> error in process filter: require: Symbol's value as variable is void:
> slime-clj
slime-clj is a different poorly-named library that has been renamed to
ritz. Unfortunately the packages are still available for installation.
The swank-c
I am running Vista. I installed Clojure as c:\clojure.
Where and how do you put the file
[org.clojure/java.jdbc "0.0.3-SNAPSHOT"]]
--
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
John McCarthy, the father of Lisp, died last night at the age of 84.
--
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 are moderated - please be patient with
> John McCarthy, the father of Lisp, died last night at the age of 84.
Here lies a Lisper
Uninterned from this mortal package
Yet not gc'd
While we retain pointers to his memory
Source - https://twitter.com/#!/mtraven/status/128603266933198848
Regards,
BG
--
Baishampayan Ghose
b.ghose at gmail
Hi Ulises,
I get a "bad submission key found" error when I submit the zip file that
contains
ants.clj
MyBot.clj
Am I doing something wrong?
I did run the test_bot.sh with MyBot.clj .. It seems to work fine.
Thanks,
Sunil.
On Tue, Oct 25, 2011 at 3:52 AM, Ulises wrote:
> I tried submitting
I failed to mention that both the files are in a directory named
mybot
On Tue, Oct 25, 2011 at 10:58 AM, Sunil S Nandihalli <
sunil.nandiha...@gmail.com> wrote:
> Hi Ulises,
> I get a "bad submission key found" error when I submit the zip file that
> contains
> ants.clj
> MyBot.clj
>
> Am I d
Hi all,
though i am at the early stages of clojure, i think it is right
time to share our fellow clojurian conversation with The Great McCarthy.
Here is the link..
http://nathanmarz.com/blog/my-conversation-with-the-great-john-mccarthy.html
--
You received this message because you are
On Mon, Oct 24, 2011 at 8:36 PM, jayvandal wrote:
> I am running Vista. I installed Clojure as c:\clojure.
You don't need to "install" Clojure if you're using Leiningen (and I'd
recommend you use Leiningen for managing project dependencies).
> Where and how do you put the file
>
> [org.clojure/j
44 matches
Mail list logo