It contains significant new features, as well as many bug fixes and small enhancements. A larger number of contributors than ever before have pitched in. You can see an overview of the changes in the changes file at:
http://github.com/clojure/clojure/blob/1.2.x/changes.txt
For maven/leiningen users, your settings to get the beta from build.clojure.org/releases are:
:dependencies [[org.clojure/clojure "1.2.0-beta1"]
[org.clojure/clojure-contrib "1.2.0-beta1"]
To everyone who has contributed to 1.2, many thanks!
Stu
--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clo...@googlegroups.com
Note that posts from new members are moderated - please be patient with your first post.
To unsubscribe from this group, send email to
clojure+u...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--
/ Peter Schuller
> I didn't see mention of the new equals/equiv work.
> Is this going into a later beta or is this work tentatively going into
> a later release?
>
https://www.assembla.com/spaces/clojure/tickets/402-degenerate-defrecords-should-act-like-empty-maps
Stu
Thanks
REPRO:
0. install leiningen and then upgrade it
lein upgrade
The script at ./lein will be upgraded to the latest stable version.
Do you want to continue [Y/n]? y
Upgrading...
% Total % Received % Xferd Average Speed Time Time Time
Current
Dload Upload Total Spent Left
Speed
100 4061 100 4061 0 0 10731 0 --:--:-- --:--:-- --:--:--
17504
Downloading Leiningen now...
% Total % Received % Xferd Average Speed Time Time Time
Current
Dload Upload Total Spent Left
Speed
100 8076k 100 8076k 0 0 1093k 0 0:00:07 0:00:07 --:--:--
1271k
Now running Leiningen 1.1.0 on Java 1.6.0_20 Java HotSpot(TM) 64-Bit
Server VM
1. create a new app
lein new test02
1.a verify
cat project.clj
(defproject test02 "1.0.0-SNAPSHOT"
:description "FIXME: write"
:dependencies [[org.clojure/clojure "1.1.0"]
[org.clojure/clojure-contrib "1.1.0"]])
2. make sure lein works there
cd test02
lein help
3. ok, targets listed, now upgrade to clojure 1.2 beta 1
cat project.clj
(defproject test02 "1.0.0-SNAPSHOT"
:description "FIXME: write"
:dependencies [[org.clojure/clojure "1.2.0-master-SNAPSHOT"]
[org.clojure/clojure-contrib "1.2.0-SNAPSHOT"]])
lein deps
[copy] Copying 2 files to
/Users/todd/Documents/projects/clojure/lein-test/test02/lib
4. now try running help again...
lein help
WARNING: reader macro ^ is deprecated; use meta instead
Exception in thread "main" java.lang.RuntimeException:
java.lang.ClassCastException: clojure.lang.Cons cannot be cast to
clojure.lang.Named (help.clj:5)
at clojure.lang.Compiler$InvokeExpr.eval(Compiler.java:2780)
at clojure.lang.Compiler$DefExpr.eval(Compiler.java:302)
at clojure.lang.Compiler.eval(Compiler.java:4647)
at clojure.lang.Compiler.load(Compiler.java:4972)
at clojure.lang.RT.loadResourceScript(RT.java:330)
at clojure.lang.RT.loadResourceScript(RT.java:321)
at clojure.lang.RT.load(RT.java:399)
at clojure.lang.RT.load(RT.java:371)
at clojure.core$load__6449$fn__6458.invoke(core.clj:4171)
at clojure.core$load__6449.doInvoke(core.clj:4170)
at clojure.lang.RestFn.invoke(RestFn.java:413)
at clojure.core$load_one__6379.invoke(core.clj:4007)
at clojure.core$load_lib__6400.doInvoke(core.clj:4044)
at clojure.lang.RestFn.applyTo(RestFn.java:147)
at clojure.core$apply__4370.invoke(core.clj:438)
at clojure.core$load_libs__6417.doInvoke(core.clj:4070)
at clojure.lang.RestFn.applyTo(RestFn.java:142)
at clojure.core$apply__4370.invoke(core.clj:438)
at clojure.core$require__6440.doInvoke(core.clj:4138)
at clojure.lang.RestFn.invoke(RestFn.java:413)
at leiningen.core$resolve_task__38.invoke(core.clj:65)
at leiningen.core$_main__46$fn__49.invoke(core.clj:81)
at leiningen.core$_main__46.doInvoke(core.clj:78)
at clojure.lang.RestFn.invoke(RestFn.java:413)
at user$eval__55.invoke(NO_SOURCE_FILE:1)
at clojure.lang.Compiler.eval(Compiler.java:4642)
at clojure.core$eval__5236.invoke(core.clj:2017)
at clojure.main$eval_opt__7411.invoke(main.clj:227)
at clojure.main$initialize__7418.invoke(main.clj:246)
at clojure.main$null_opt__7446.invoke(main.clj:271)
at clojure.main$main__7466.doInvoke(main.clj:346)
at clojure.lang.RestFn.invoke(RestFn.java:426)
at clojure.lang.Var.invoke(Var.java:363)
at clojure.lang.AFn.applyToHelper(AFn.java:175)
at clojure.lang.Var.applyTo(Var.java:476)
at clojure.main.main(main.java:37)
Caused by: java.lang.RuntimeException: java.lang.ClassCastException:
clojure.lang.Cons cannot be cast to clojure.lang.Named
at clojure.lang.LazySeq.sval(LazySeq.java:47)
at clojure.lang.LazySeq.seq(LazySeq.java:63)
at clojure.lang.Cons.next(Cons.java:37)
at clojure.lang.PersistentHashSet.create(PersistentHashSet.java:41)
at clojure.core$hash_set__4294.doInvoke(core.clj:285)
at clojure.lang.RestFn.applyTo(RestFn.java:142)
at clojure.core$apply__4370.invoke(core.clj:436)
at clojure.core$set__5556.invoke(core.clj:2636)
at clojure.lang.AFn.applyToHelper(AFn.java:173)
at clojure.lang.AFn.applyTo(AFn.java:164)
at clojure.lang.Compiler$InvokeExpr.eval(Compiler.java:2775)
... 35 more
Caused by: java.lang.ClassCastException: clojure.lang.Cons cannot be
cast to clojure.lang.Named
at clojure.core$name__4748.invoke(core.clj:1053)
at leiningen.help$fn__67.invoke(help.clj:5)
at clojure.core$filter__5084$fn__5086.invoke(core.clj:1804)
at clojure.lang.LazySeq.sval(LazySeq.java:42)
... 45 more
-Todd
Clojure 1.2.0-master-SNAPSHOT
I also don't see any commits since 6/23; is that right?
Thanks and congratulations, btw. :)
Getting pack 9be7389ab68fea4a8309596c2916961599d2b06c
which contains 833f9f368d2274766aa4699195b3fba3f9e4e8f0
error: Unable to get pack file
http://github.com/clojure/clojure.git/objects/pack/pack-9be7389ab68fea4a8309596c2916961599d2b06c.pack
transfer closed with 2113048 bytes remaining to read
error: Unable to find 833f9f368d2274766aa4699195b3fba3f9e4e8f0 under
http://github.com/clojure/clojure.git
Cannot obtain needed object 833f9f368d2274766aa4699195b3fba3f9e4e8f0
while processing commit d184ed95817c5ddfd5874ea75e83e0df7e753c24.
fatal: Fetch failed.
Any ideas?
> --
Should be git clone git://github.com/clojure/clojure.git
Sorry for the noise.
Yes, it looks like Leiningen 1.1.0 has a bug where it prefers the
project's version of Clojure to its own version even for Leiningen's
JVM. This was fixed several months ago though, so if you use 1.2.0-RC2
you should be fine.
-Phil
Thanks, but I see no branch by that name. Do you mean 1.2.x? (And
what's the corresponding branch for clojure-contrib?)
Thanks, I've been mistakenly working from
git://github.com/richhickey/clojure.git
...which is apparently why I didn't see any commits since June.
The behavior you are seeing is not a problem, and understanding why may be helpful to using agents correctly.
The thread that sends to an agent has no guarantee that it will (or will not) see the result of its action a tiny bit later, when the repl prints the stringified version of the agent.
If you want to guarantee that your thread sees the results of its own sends, you can call await. To be sure you were seeing a bug, you would need to
(1) create an agent
(2) have no other threads sending to the agent
(3) send something that caused an error
(4) await
Your example is missing step 4. When I tried it with step 4 included, the behavior was reliable. Of course that doesn't prove that there isn't a bug... :-)
Stu
thanks,
cyrus
"Clojure source code is hosted at github.com/clojure/clojure."
I don't know whether there was any formal announcement.
It was announced on the dev list:
http://groups.google.com/group/clojure-dev/browse_thread/thread/174b8b17a6d4ad26
Sincerely
Meikel
>>> Going to http:// clojure.org, searching for git and following the "Clojure goes git" link would lead one to http://groups.google.com/group/clojure/msg/ca4fb58428052554 which suggests that the rickhickey page is the right one. Where's the announcement about git://github.com/clojure ?
> It was announced on the dev list:
>
> http://groups.google.com/group/clojure-dev/browse_thread/thread/174b8b17a6d4ad26
Thanks. Do you know of any NNTP interface to that group? I don't see
it on gmane, and I find the Google Groups interface borderline unusable.