It looks like there are no test cases at present. That should be addressed.
It also needs to be listed here as a migration for
clojure.contrib.combinatorics :
http://dev.clojure.org/display/design/Contrib+Library+Names
Can all new contrib maintainers please look at / update / bug
Clojure/core about:
* http://build.clojure.org/ - if you don't see automated builds /
matrix tests, ask for them to be created
* http://dev.clojure.org/jira/secure/Dashboard.jspa - if your project
is not listed, ask for it to be created -
http://dev.clojure.org/jira/secure/BrowseProjects.jspa#all
* http://dev.clojure.org/display/design/Contrib+Library+Names - make
sure your library is listed and explain what it is migrated from
We probably need a page on the wiki that lists all old contrib modules
and explains their status. I'm happy to kick that off but I don't know
enough about many of the old modules so I'll need help. I've started
here: http://dev.clojure.org/pages/viewpage.action?pageId=2687076 I'll
complete a first pass based on what I see in JIRA, github and
build.clojure.org and then I'll post a request for help!
Sean
---------- Forwarded message ----------
Take an example -- even in the relatively simple case of
clojure.contrib.combinatorics: note that it is NOT listed on
http://dev.clojure.org/display/doc/Clojure+Contrib, and if I follow
the github repos I'll end up in https://github.com/clojure/math.combinatorics
which tells me nothing about what I should add to project.clj (what is
the latest released version, for instance).
--
You received this message because you are subscribed to the Google Groups "Clojure Dev" group.
To post to this group, send email to cloju...@googlegroups.com.
To unsubscribe from this group, send email to clojure-dev...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/clojure-dev?hl=en.
-- Cheers, Aaron Bedra -- Clojure/core http://clojure.com
Since I'm pushing so hard on documenting / organizing contrib stuff,
I'll be happy to have a look. Can you confirm the following
migrations:
* clojure.contrib.combinatorics -> clojure.math.combinatorics
* clojure.contrib.math -> clojure.math.numeric-tower
* clojure.contrib.priority-map -> clojure.data.priority-map
It looks like you need the epl.html license file adding, as well as
pom.xml and it would be nice to have README in markdown since that's
what the other repos do, and add a CHANGES.txt file perhaps? Since I
have commit rights, I'm happy to add all of that if you're OK with me
committing to your project?
Then we should get the old test/ code moved over from contrib modules
and get it working with maven. Again, happy to help if you're OK with
me committing...
> On a related note, my priority-map module was broken by changes in 1.3:
No idea if I can help with that but, hey, I can try!
--
Sean A Corfield -- (904) 302-SEAN
An Architect's View -- http://corfield.org/
World Singles, LLC. -- http://worldsingles.com/
Railo Technologies, Inc. -- http://www.getrailo.com/
"Perfection is the enemy of the good."
-- Gustave Flaubert, French realist novelist (1821-1880)
On Fri, Sep 9, 2011 at 1:53 PM, Mark Engelberg <mark.en...@gmail.com> wrote:Since I'm pushing so hard on documenting / organizing contrib stuff,
> Back at the beginning of August, I made a first pass at organizing my three
> contrib projects into the form required by the new modular contrib, and
> uploaded them to github.
I'll be happy to have a look. Can you confirm the following
migrations:
* clojure.contrib.combinatorics -> clojure.math.combinatorics
* clojure.contrib.math -> clojure.math.numeric-tower
* clojure.contrib.priority-map -> clojure.data.priority-map
It looks like you need the epl.html license file adding, as well as
pom.xml and it would be nice to have README in markdown since that's
what the other repos do, and add a CHANGES.txt file perhaps? Since I
have commit rights, I'm happy to add all of that if you're OK with me
committing to your project?
Then we should get the old test/ code moved over from contrib modules
and get it working with maven. Again, happy to help if you're OK with
me committing...
License, pom.xml and README added / updated. All three projects are mvn-able...
> priority-map's tests are in the same file. The math module had tests in a
> separate file, and I wasn't sure how to organize them in the module to
> ensure they get run automatically whenever Clojure is tested for
> regressions. Moving them over would be great.
math.numeric-tower tests run with mvn test now. I'll work on
data.priority-map later today to get that into a mvn compatible
structure.
> I never wrote test cases for combinatorics, just tested in the REPL. I
> intended to write a test file eventually, but held off recently because I
> was contemplating making some changes to the library once done with the
> migration, and figured I'd do it all at once.
OK. You should be able to follow what I've done for math.numeric-tower
but ping me if you have any questions.
Can we get builds for these libraries up on build.clojure.org now?
(Stu / Aaron / ?)
Also can we get JIRA projects created for them? (Stu / Aaron / ?)
And can the contrib git admin disable "issues" on github for these
three? (not sure who admins what in new contrib)
OK. data.priority-map's tests are separated out and run via mvn now.
On a related note, my priority-map module was broken by changes in 1.3:
CompilerException java.lang.VerifyError: (class: clojure/data/priority_map/PersistentPriorityMap, method: create signature: (Lclojure/lang/IPersistentMap;)Lcloj
ure/data/priority_map/PersistentPriorityMap;) Expecting to find unitialized obje
ct on stack, compiling:(clojure/data/priority_map.clj:164)
Interesting. Looks like that was the way to add optional fields at some point:
http://onclojure.com/2010/08/26/reusable-method-implementations-for-deftypes/
I assume that wasn't documented and was just an implementation artifact?
> There is a second issue: missing the third parameter (meta) to the calls to
> PersistentPriorityMap constructor in assoc, without, pop and pm-empty-by
> methods.
Yup, ran into that as I tried to fix __meta :) Thanx for the patch.
It's looks better than my attempt at fixing it so I merged that in on
top of mine. Hopefully we'll see a clean matrix build when Hudson next
fires...
I'd say yes. It's a clear change of behavior from 1.2 and that
OnClojure blog post indicates it was useful behavior so an official
word from Clojure/core would be valuable here.
Thank you!
data.priority-map had 1.3.0 incompatibilities that should now be fixed.
math.combinatorics has no tests yet so of course it "passes".
math.numeric-tower failed on the 1.2.0 / 1.2.1 tests but it looks like
a build issue?
1.2.0,Sun JDK 1.5 is still in the queue: Waiting for next available executor
Finished: FAILURE
(Can I get permission to run builds on these three so I don't have to
wait for Hudson to get "a round tuit"? :)
I pulled the usage examples out of the comment and used those as a
basic set of seed tests. We can add more later.
OTOH, relying on the undocumented behavior given double underscore is a user bug - users of such code should be prepared to be broken.
Rich
Thanx. I had a feeling double underscore was "special" and should not
be relied on.
defrecord automatically supports metadata, as I understand I, but
deftype does not unless it implements meta and withMeta from
clojure.lang.IObj (based on my reading of the data.priority-map
source) - is that correct?
Is there a "preferred" way to add metadata support to a deftype that
doesn't force an extra field to be provided? Or is there simply no
other way for a deftype?
(Can I get permission to run builds on these three so I don't have to
wait for Hudson to get "a round tuit"? :)
--
Sean A Corfield -- (904) 302-SEAN
Thank you!
I see the failures in math.numeric-tower now (before it failed due the
JVM not being available in the build matrix) so I have something
concrete to work on...
--
Sean A Corfield -- (904) 302-SEAN
I finally got around to making math.numeric-tower compatible with
Clojure 1.2.x so the matrix test passes now. I made a 0.0.1 release so
that should be up on Maven soon (I've updated the Where Did... page in
anticipation of that).