X Tutup
Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
1214 commits
Select commit Hold shift + click to select a range
952c55e
Exclude clojure.contrib.pprint from compilation
Jan 20, 2010
66e35b0
Add release and SNAPSHOT distributionManagement to POM
Jan 20, 2010
cecccb4
Add "dist" assembly for distribution ZIP/tar files.
Jan 20, 2010
e3bdcf3
Add assembly configuration to POM.
Jan 20, 2010
f3826fa
Reformat README to 70-chars-per-line
Jan 21, 2010
889f591
Clean up URLs and add link to package downloads in README
Jan 21, 2010
1bffd84
Add additional mvn build commands to README
Jan 21, 2010
2984bb0
Clean up headings in README
Jan 21, 2010
78df570
Add source .clj files to JAR
Jan 21, 2010
5bed152
Correct README typo
Jan 25, 2010
9baad3c
Describe version numbering corresponding to Clojure versions
Jan 25, 2010
3f433eb
Make clojure.version a property in POM
Jan 25, 2010
c45e453
Describe setting clojure.version in README
Jan 25, 2010
18584a4
Add instructions for building with local Clojure
Jan 26, 2010
18c6d21
Add str-utils3 with tests
Jan 26, 2010
ed4faa4
str-utils3: substitute type-specific fns for 'replace' multimethod
Jan 27, 2010
df49997
Add offline build instructions to README
Jan 28, 2010
86803a4
Add "local" profile to POM
Jan 28, 2010
db9bedf
Describe "local" build in POM
Jan 28, 2010
d52942f
Describe where to get development snapshots in README
Jan 28, 2010
436fef0
Add source encoding UTF-8 to POM
Jan 29, 2010
66870bf
Simplify POM, only AOT-compile namespaces that gen-class
Jan 29, 2010
4e8696e
Reenable builds with local clojure.jar
Jan 29, 2010
0294e79
pprint: require ColumnWriter in PrettyWriter
Jan 30, 2010
75eaf57
Revert "Reenable builds with local clojure.jar"
Jan 30, 2010
a0f80d1
Do not AOT-compile pprint
Jan 30, 2010
3275810
pprint: Move gen-class expressions to separate file; refs #65
Jan 31, 2010
aa34fb9
Reenable compiling of test namespaces in POM; refs #65
Jan 31, 2010
5b3beae
Fix mis-named ns in pprint.gen-class; refs #66
Jan 31, 2010
655060b
fix for aotc, ticket 44; moved impl selection code from macro to runt…
Jan 18, 2010
8d5f9fa
c.c.json.read: accept any Reader type; fixes #67
Jan 31, 2010
f72d665
c.c.json.read: use transients
Jan 31, 2010
8b512d8
Add c.c.json; replacement for c.c.json.read & c.c.json.write
Jan 31, 2010
1c75488
new c.c.json: fix 1 reflective call
Jan 31, 2010
23ef042
c.c.json: reorganize around extend
Jan 31, 2010
687df96
c.c.json: use PrintWriter directly; even faster
Jan 31, 2010
7e1746e
Set clojure-maven-plugin version in POM
Feb 1, 2010
4e7a55d
Rename popular libs with shorter names.
Feb 1, 2010
6b68e48
Delete obsolete versions of popular libs.
Feb 1, 2010
ec6a757
Change ns names for all renamed libs except str-utils
Feb 1, 2010
3a14dce
Rename uses of str-utils/2/3 to string
Feb 1, 2010
e9269d2
Rename test namespaces to match new names.
Feb 1, 2010
1ab0a22
Remove old str-utils lib tests.
Feb 1, 2010
075f770
Remove redundant test-contrib ns name part.
Feb 1, 2010
69ccca4
Rename test sources to clojure/contrib/test_*.clj naming pattern.
Feb 1, 2010
4e62c17
Rename namespace declarations in test sources.
Feb 1, 2010
2c07978
Add test namespaces to be compiled in POM
Feb 1, 2010
ac67da7
Fix remaining ns name issues in tests.
Feb 1, 2010
9b194df
Re-enable local build with -Dclojure.jar in POM
Feb 3, 2010
af788ed
c.c.string migration changes; fixes #70
pjt Feb 3, 2010
9aecba5
README: remove -o from maven command line for local build
Feb 9, 2010
1fe4b40
lazy-xml: Experimental emit based on xml Transformer
Chouser Feb 10, 2010
e65fe64
fix bogus Replacement class name in c.c.string
Feb 10, 2010
724e767
json: factor out remaining printer functions as defns
Feb 10, 2010
319057d
c.c.json: add pretty printing
Feb 10, 2010
2cae517
Add test for c.c.io/file-str
Feb 11, 2010
c8be496
c.c.io: fix backslash handling in file-str
Feb 11, 2010
7a0e744
c.c.prxml: Fix bad refers from lazy-xml
Feb 11, 2010
91582e1
Add c.c.reflect, taking 2 functions from c.c.java
Feb 3, 2010
bacf492
Refactor c.c.java into c.c.io, c.c.string, and c.c.properties
Feb 3, 2010
4cca961
prxml: remove references to c.c.java
Feb 11, 2010
55cc53e
c.c.json: change references from c.c.java to c.c.string
Feb 11, 2010
b1ef935
c.c.http.connection: replace references to c.c.java
Feb 11, 2010
5d30e63
Stop using c.c.java in pprint examples.
Chouser Feb 11, 2010
5ec001a
c.c.jmx: change from c.c.java to c.c.string
Feb 11, 2010
6a0483d
c.c.sql: change references to c.c.java
Feb 11, 2010
b79b246
Remove c.c.java reference from miglayout.internal
Feb 11, 2010
65363bd
Remove test_java.clj
Feb 11, 2010
3093440
Move tests from old test_java.clj to test_io.clj
Feb 11, 2010
faa392b
Move tests from test_java.clj to test_string.clj
Feb 11, 2010
3174885
Add test_properties.clj from old test_java.clj
Feb 11, 2010
7362d7b
trace: Allow dotrace to work on private var fns.
Chouser Feb 15, 2010
0a1bfc9
trace: fix previous commit -- no longer generate infinite recursion.
Chouser Feb 15, 2010
6f2b1d7
:environment option for jmx/with-connection
stuarthalloway Feb 18, 2010
6cfd3b2
allow custom :jndi-path for JMX URLs
stuarthalloway Feb 23, 2010
8e3fca7
Remove CPL.TXT -- contrib is currently licensed under EPL 1.0, see ep…
Chouser Mar 3, 2010
f7a454f
generic.comparison: fixed typo in <=, added pos? neg? min max
khinsen Mar 4, 2010
1e33333
fix PushbackReader bug
Mar 19, 2010
1923b54
Update POM to clojure-maven-plugin 1.3.2
Mar 19, 2010
d1e831b
Merge branch 'newplugin'
Mar 19, 2010
2507183
Disable test-jmx temporarily
Mar 30, 2010
ffcfbf9
troubleshooting build box: another ad hoc exception for read-supported
stuarthalloway Mar 30, 2010
a0178ae
once more, with spelling
stuarthalloway Mar 30, 2010
d157d64
simplify jmx/read-supported and improve test output
stuarthalloway Mar 30, 2010
bbe248f
update lazy-xml for reify with explicit 'this' on every method
Chouser Apr 10, 2010
4f9a78d
added apropos (per Michel Salim, plus re support)
stuarthalloway Apr 12, 2010
ebf0d21
windows-safe test for relative-path-string
stuarthalloway Apr 13, 2010
6dd033d
fixed corner case in c.c.profile print-summary
stuarthalloway Apr 13, 2010
9f44842
-?>> per Chas Emerick
stuarthalloway Apr 13, 2010
b9db280
strint per Chas Emerick
stuarthalloway Apr 13, 2010
b52f0b6
test-load-all tries to load all nondeprecated namespaces
stuarthalloway Apr 13, 2010
9cd7b15
c.c.io provides input-stream and output-stream for byte-oriented I/O
bpsm Jan 26, 2010
af2a730
some tests for c.c.io byte-level support
stuarthalloway Apr 15, 2010
aa4142c
#78 relaxing test expectations to eliminate spurious errors on IBM JDK
stuarthalloway Apr 27, 2010
a1c66df
Copy deleted/renamed namespaces from 1.1 release; refs #79
Apr 28, 2010
78ee9b3
update contrib to remove seq fns promoted to clojure.core
stuarthalloway Apr 28, 2010
661dcfd
Remove gen-class requirement from clojure.contrib.pprint. See #81
tomfaulhaber Apr 30, 2010
912e567
clojure.contrib.pprint (cl-format): Fixes to rounding and width issue…
tomfaulhaber May 1, 2010
5a703b3
Remove debug prints :-(. See #47
tomfaulhaber May 1, 2010
eb7021a
removed seq-contains? calls
richhickey May 1, 2010
48b81e0
put includes? back into the seq namespaces
stuarthalloway May 3, 2010
95dddbb
keep deprecated version of seq fns, safe(r) now that we have "last va…
stuarthalloway May 5, 2010
1c805bd
hack for #82, very ugly
stuarthalloway May 6, 2010
1d66c09
- refactored input-stream, output-stream, reader, and writer into a S…
cemerick Apr 26, 2010
061f3d5
dodge ns collisions with clojure.java.io
stuarthalloway May 21, 2010
4fe738d
generic.comparison: implement default inequalities on java.lang.Numbe…
khinsen May 25, 2010
4e448a8
added missing :imports for Writer type hints
richhickey Jun 8, 2010
e2014cf
doc fix
stuarthalloway Jun 8, 2010
6b9a8b5
Implement :connect-timeout and :read-timeout in http.agent
Jun 15, 2010
aaa2f33
move tests into range of long
richhickey Jun 15, 2010
1068a80
change from prim coercion to boxed coercion in order to see particula…
richhickey Jun 16, 2010
9f9b78a
prefer quot over unchecked-divide
richhickey Jun 16, 2010
48c1e45
fix for num compat
richhickey Jun 17, 2010
d971ab4
added needed cast for jmx test
richhickey Jun 18, 2010
b71e3d7
make loop/recur match for num compat
richhickey Jun 19, 2010
bb71105
fixes for equiv compat
richhickey Jun 24, 2010
29b42bd
fixes for equiv compat
richhickey Jun 25, 2010
7cc9a8e
Deprecate pprint
tomfaulhaber Jul 1, 2010
18c8713
Added priority_map.clj
Engelberg Jul 17, 2010
08b2d37
Fixed hashCode of priority maps in clojure.contrib.priority-map
Engelberg Jul 19, 2010
88160ea
Fixed two incorrectly indented lines in clojure.contrib.priority-map
Engelberg Jul 19, 2010
7188a51
use the 1.2 metadata reader macro ^ instead of #^
Jul 23, 2010
d5314e5
deprecate apply-macro
Jul 23, 2010
db64739
deprecated duck-streams
Jul 23, 2010
657482a
deprecate http.agent http.connection
Jul 23, 2010
c3dfd00
mark deprecations in io
Jul 23, 2010
f827ea5
marking deprecations in java-utils
Jul 23, 2010
5337f2c
deprecating javadoc (moved to clojure)
Jul 23, 2010
923c912
update monadic-io-streams to use clojure.java.io
Jul 23, 2010
d37b229
pprint is deprecated (promoted to clojure.pprint)
Jul 23, 2010
28fb2d9
properties is deprecated (moved to java-utils)
Jul 23, 2010
2a2879f
marking deprecations in repl-utils
Jul 23, 2010
b485ffc
deprecate seq-utils. use clojure.core or c.c.seq
Jul 23, 2010
29a94ca
fix duplicate key (weird git merge?)
Jul 23, 2010
db82a0d
deprecations in c.c.set
Jul 23, 2010
d155128
deprecated shell and shell-out. moved to clojure.java.shell
Jul 23, 2010
4715ee3
deprecations in str-utils, str-utils2, string
Jul 23, 2010
c2645e3
update strint to use clojure.core/slurp
Jul 23, 2010
e7930c8
deprecated test-is
Jul 23, 2010
a6a92b9
Split all namespaces into sub-modules.
Aug 7, 2010
38743f8
Add test sources to their respective modules
Aug 11, 2010
6012612
Add missing dependencies in javadoc and gen-html-docs
Aug 11, 2010
1c44f97
Disable compiling clojure.contrib.javadoc
Aug 11, 2010
fd185b6
Continue updating dependencies & adding missing files
Aug 12, 2010
53caec9
Comment out tests in macro-utils with circular dependency on monads
Aug 12, 2010
342ea41
Fix remaining dependency issues in modular build
Aug 13, 2010
530139f
Fix name of probabilities module in POM
Aug 13, 2010
b536055
Add 'complete' module to build jar containing all modules.
Aug 13, 2010
2595ca5
Update README for modular build
Aug 13, 2010
202e81e
Update clojure version to 1.2.0 in parent POM
Aug 20, 2010
4e5d98a
Remove modules that were deprecated in 1.2
Aug 20, 2010
055b69c
Revert "Remove modules that were deprecated in 1.2"
Aug 20, 2010
09c3ff3
New features:
Aug 23, 2010
330807c
Tests for c.c.logging
Aug 23, 2010
61b7ad1
Omit Clojure files from complete 'uberjar'
Aug 24, 2010
b0f2e77
Merge branch 'better_uberjar'
Aug 24, 2010
28689c4
Update links in README
Aug 25, 2010
6363811
Added :pre to functions instead of using custom assert-args macro in …
mclark Aug 27, 2010
a5e611b
gen-html-docs needs clojure.contrib.def
bpsm Aug 23, 2010
6321145
remove derecated clojure.contrib.apply-macro
bpsm Aug 23, 2010
5160b58
remove deprecated clojure.contrib.http-agent
bpsm Aug 23, 2010
bf85ded
remove deprecated clojure.contrib.http-connection
bpsm Aug 23, 2010
1be54b2
remove deprecated clojure.contrib.properties
bpsm Aug 23, 2010
dee2466
remove deprecated clojure.contrib.javadoc
bpsm Aug 23, 2010
b356e2e
remove deprecated clojure.contrib.test-is
bpsm Aug 23, 2010
51e2efb
removed c.c.shell and c.c.shell-out
bpsm Aug 24, 2010
2c6c9e3
remove deprecated clojure.contrib.io
bpsm Aug 26, 2010
6047457
remove deprecated clojure.contrib.str-utils
bpsm Aug 28, 2010
034d3d1
remove deprecated clojure.contrib.str-utils2
bpsm Aug 28, 2010
fe4ed31
remove deprecated clojure.contrib.string
bpsm Aug 28, 2010
d6f5194
removed deprecated clojure.contrib.duck-streams
bpsm Aug 28, 2010
cb832f6
removed deprecated clojure.contrib.java-utils
bpsm Aug 28, 2010
9a05c1c
removed deprecated clojure.contrib.pprint
bpsm Aug 28, 2010
67e85be
removed deprecated source, get-source, apropos from clojure.contrib.r…
bpsm Aug 28, 2010
906397b
removed deprecated clojure.contrib.seq-utils
bpsm Aug 28, 2010
95353ce
removed 9 deprecated functions from clojure.contrib.repl-utils
bpsm Aug 28, 2010
0f94c13
removed deprecated subset?, superset? from clojure.contrib.set
bpsm Aug 28, 2010
da0795c
Inhibit all AOT-compilation in parent module
Sep 3, 2010
40bc015
Add AOT-compilation for modules that gen-class
Sep 3, 2010
1921e11
AOT-compiled modules depend specifically on Clojure 1.2.0
Sep 3, 2010
67fccc6
macro-utils: don't expand symbols bound in the surrounding lexical en…
khinsen Sep 3, 2010
bbb200f
Merge branch 'master' of git://github.com/clojure/clojure-contrib
khinsen Sep 3, 2010
328f104
commenting out tests that fail only on build machine
Sep 5, 2010
9212f64
Fix arglist doc for level-specific macros
Sep 8, 2010
4083a06
Fix broken repl-utils/show
Chouser Sep 16, 2010
11852b9
Fix broken with-ns tests; refs #95
Sep 17, 2010
5a928e2
Fix EOF-handling in JSON reader; refs #91
Aug 21, 2010
5263e4b
Base64 decoding from Teemu Antti-Poika; refs #84
Sep 17, 2010
97870ec
Add latest Maven build plugin to top-level POM
Sep 17, 2010
3d88184
Set clojure.version to 1.2.0 for release
Sep 17, 2010
b808b45
Remove extra xmlns declarations from POMs (breaks release plugin)
Sep 17, 2010
d6e13bc
[maven-release-plugin] prepare release 1.3.0
Sep 17, 2010
d5529fd
[maven-release-plugin] prepare for next development iteration
Sep 17, 2010
2d2b158
Revert "[maven-release-plugin] prepare for next development iteration"
Sep 24, 2010
6dcc653
Revert "[maven-release-plugin] prepare release 1.3.0"
Sep 24, 2010
1eccdee
Set clojure.version to 1.3.0-master-SNAPSHOT
Sep 24, 2010
a9eeece
:require clojure.set in accumulators as it's not auto-loaded anymore
Sep 24, 2010
d328525
Create clojure.contrib.version property in parent
Sep 24, 2010
147c66c
Use clojure.contrib.version property in all modules
Sep 24, 2010
eb67ac8
Use clojure.version property in AOT-compiled modules
Sep 24, 2010
ce7965d
Add distributionManagement sections to top-level and parent POMs
Sep 24, 2010
89833b4
Set release versions to 1.3.0-alpha1
Sep 24, 2010
6db7902
Back to SNAPSHOT versions
Sep 24, 2010
c826d67
Add distribution ZIP/TAR file assembly
Sep 24, 2010
04cd891
Fix dist assembly to include modules
Sep 24, 2010
5bae316
Update README with instructions for building against custom Clojure
Sep 24, 2010
499b9c0
cartesian-product nil-arg fix; refs #96
Sep 24, 2010
5bc8b35
Set all version numbers to 1.3.0-alpha1 explicitly
Sep 24, 2010
be8e41e
Remove assembly from "complete" POM
Sep 24, 2010
0d69c12
Merge branch 'fixrelease'
Sep 28, 2010
39c3822
Back to version 1.3.0-SNAPSHOT on all modules
Sep 28, 2010
2e7ef0b
Restore examples lost during modules split, a6a92b9b3d2bfd9a56e1e5e9c…
Chouser Sep 30, 2010
d6b88cb
Fix build of complete/standalone artifact.
abrenk Oct 1, 2010
40d7ba0
Add separate module for standalone uberjar.
abrenk Oct 1, 2010
0561a9b
Merge branch 'abrenk-build'
Oct 1, 2010
6146f54
Fix failing Boolean test in c.c.jmx
Oct 1, 2010
8bb336e
Fix out of date github URLs in docs
Chouser Oct 2, 2010
c115db1
t100: revert "removed deprecated clojure.contrib.java-utils"
bpsm Oct 2, 2010
456fbaa
t100: removed deprecated functions form c.c.java-utils
bpsm Oct 2, 2010
3eb423c
t100: added c.c.java-utils to c.c.standalone
bpsm Oct 2, 2010
f6ef99e
Merge branch 'master' of github.com:clojure/clojure-contrib
Oct 2, 2010
21a8ba7
Simplify building against a custom Clojure JAR.
abrenk Oct 4, 2010
5ac0b49
Use ${project.version} to reference artifacts in standalone module
abrenk Oct 5, 2010
d46ae8f
Fix URL of XMLSchema-instance namespace in pom.xml
abrenk Oct 5, 2010
3124805
macro-utils: declared rebound vars as :dynamic
khinsen Oct 24, 2010
6b0ced9
Rename Var.getRoot to Var.getRawRoot
Oct 26, 2010
23d2e36
Move clojure.version to 1.3.0-alpha2 in prep for alpha2 contrib release
Oct 26, 2010
57aae4f
generic: remove superfluous use clause
khinsen Oct 26, 2010
d183b52
Move complete & standalone modules to end of top-level build; maybe a…
Oct 26, 2010
0dfe73b
Merge branch 'master' of github.com:clojure/clojure-contrib
Oct 26, 2010
9cf1984
Revert "Move complete & standalone modules to end of top-level build"
Oct 26, 2010
d133788
Update maven-release-plugin to version 2.1
Oct 26, 2010
cb86895
Update all versions to 1.3.0-alpha2 release
Oct 26, 2010
163c7d5
Revert all versions to 1.3.0-SNAPSHOT for development
Oct 26, 2010
6711b9e
Set all versions to 1.3.0-alpha3
Nov 7, 2010
c38fa23
Reset versions to 1.3.0-SNAPSHOT
Nov 7, 2010
d16ac41
Adding whitespace? to clojure.string
tebeka Nov 17, 2010
53df7dc
Replace occurences of "as-str" with "name" since that is the new way.
tomfaulhaber Nov 24, 2010
60e7162
Refer to clojure.java.io/file since we use it
tomfaulhaber Nov 24, 2010
a579d18
Adapt POMs to use new contrib parent POM
Nov 26, 2010
d6f6ccf
Handle quotes in JSON keys correctly; refs #98
Nov 26, 2010
b41419b
parent POM to depend on pom.contrib 0.0.19
Nov 26, 2010
47e7898
Add/fix SCM info in POMs
Nov 26, 2010
c2eb801
Remove <repository> from top-level POM
Nov 26, 2010
d3f22c5
Add pom.contrib parent to top-level POM
Nov 26, 2010
37fba7e
Moved the documentation into the namespace doc string so that autodoc…
tomfaulhaber Nov 27, 2010
5380552
Add option to NOT escape Unicode; refs #100 CONTRIB-100
Nov 30, 2010
82c7d49
Document JSON option; refs #100 CONTRIB-100
Nov 30, 2010
01036ea
Fix unicode characters in JSON docstrings
Nov 30, 2010
6bfd926
Upstream merge
tebeka Nov 30, 2010
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
116 changes: 116 additions & 0 deletions README.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,116 @@
= Clojure-contrib =

The user contributions library, clojure-contrib, is a collection of
namespaces implementing features that may be useful to a large part of
the Clojure community.

Clojure-contrib is open source under the Eclipse Public License and is
copyrighted by Rich Hickey and the various contributors.

Download releases from
http://clojure.org/downloads

The official source repository for clojure-contrib is
http://github.com/clojure/clojure-contrib

Documentation and APIs are available at
http://clojure.github.com/clojure-contrib/

Issues are maintained in the Assembla space at
http://www.assembla.com/spaces/clojure-contrib

General discussion occurs in the Clojure Google group at
http://groups.google.com/group/clojure
and developer discussions are in the Clojure Dev Google group at
http://groups.google.com/group/clojure-dev

Compiled JARs of released versions are available in the Maven
repository http://build.clojure.org/releases and SNAPSHOT versions are
available at http://build.clojure.org/snapshots



= Building Clojure-contrib =

If you downloaded a release distribution or pre-compiled JAR, you
do NOT need to build anything.

If you downloaded the sources from Github, you will need Apache Maven
(2.0 or higher) to run the build. See http://maven.apache.org/

AFTER version 1.2.0, clojure-contrib is divided into many small modules.

To build all the modules, run the following command in this directory:

mvn install

This will compile and test all modules and store them in your local
Maven repository cache (usually $HOME/.m2/repository).

There is also an "uberjar" containing all compiled modules at
./modules/complete/target/complete-$VERSION-bin.jar

Additional build commands are available:

mvn clojure:repl
To start a Clojure REPL (Read-Eval-Print Loop)

mvn compile
To compile sources without building a JAR

mvn test
To run unit tests

mvn assembly:assembly
To build ZIP/tar distributions containing source and JARs

To skip the testing phase when building, add "-Dmaven.test.skip=true"
to the mvn command line.



= Building Against Specific Released Clojure Versions =

You can specify -Dclojure.version=VERSION on the command line to select a different Clojure version.



= Building Against a Custom Clojure JAR =

To build against a customized Clojure JAR, you can specify
-Dclojure.jar=/absolute/path/to/clojure.jar on the command line.



= Clojure-contrib Versions =

Versions of clojure-contrib are matched to versions of Clojure.

If you are using Clojure 1.0, use clojure-contrib 1.0.*

If you are using Clojure 1.1, use clojure-contrib 1.1.*

If you are using Clojure 1.2, use clojure-contrib 1.2.*

If you are using Clojure 1.3, use clojure-contrib 1.3.*

If you are using Clojure from the "master" branch on Github, use
clojure-contrib from the "master" branch on Github.



= Clojure-contrib Committers =

The following people are committers to the official clojure-contrib
repositiory:

Tom Faulhaber
Stephen Gilardi
Christophe Grand
Rich Hickey
Konrad Hinsen
Stuart Holloway
Chris Houser
David Miller
Stuart Sierra
Frantisek Sodomka
9 changes: 9 additions & 0 deletions Revisions
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
2008-08-16 All namespace-directory-aware libs have been moved to
src/clojure/contrib. Please udpate your clojure classpaths accordingly.

2008-08-16 Revision 134 is the last to contain
non-namespace-directory-aware libs at the top level of this repository. At
the time of this writing, Clojure's SVN version is 1001.

2009-05-04 Revision 756 is the one that was current at the time
Clojure 1.0.0 was released.
3 changes: 3 additions & 0 deletions clojurescript/MANIFEST.MF
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
Manifest-Version: 1.0
Main-Class: clojure.contrib.clojurescript.applet
Class-Path: .
33 changes: 33 additions & 0 deletions clojurescript/README.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
This directory contains work in progress on what may eventually become
ClojureScript. It currently allows code written in a very small
subset of Clojure to be automatically translated to JavaScript.

tojs.clj is Clojure code to translate Clojure forms to Javascript. It
was used to generate core.js from clojure's own core.clj and
core_print.clj.

To run any of the tests from the command line, do something like:

java -cp ~/build/clojure/clojure.jar:/home/chouser/proj/clojure-contrib/src:src \
clojure.main src/clojure/contrib/clojurescript/cli.clj -- \
tests/t03.cljs > t03.js

Now that you've got the .js file, you can test using Rhino:

/usr/bin/java -jar /usr/share/java/js.jar \
-f src/clojure/contrib/clojurescript/rt.js \
-f src/clojure/contrib/clojurescript/core.js \
-f t03.js

To build the applet from the compiled .class files, don't forget to:

- Extract clojure code into the classes dir
(cd classes; jar -x < ~/build/clojure/clojure.jar)
- Produce the jar:
jar cmf MANIFEST.MF clojurescript-applet.jar -C classes .

There's plenty more to do. If you'd like to help, contact the Clojure
Google group: clojure@googlegroups.com

--Chouser
12 Jan 2009
28 changes: 28 additions & 0 deletions clojurescript/hashtopology.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
// display topology of hashmaps, for debugging
function maptop(x,d) {
d = d || "";
var d2 = d + " ";
var c = x.constructor.classname;
print(d+c);
switch(c) {
case "PersistentHashMap": maptop(x._root,d2); break;
case "BitmapIndexedNode":
case "FullNode":
for( var i = 0; i < x.nodes.length; ++i ) {
maptop(x.nodes[i],d2);
}
break;
case "HashCollisionNode":
for( var i = 0; i < x.leaves.length; ++i ) {
maptop(x.leaves[i],d2);
}
break;
case "LeafNode": print( d2 + x.key() + " : " + x.val() ); break;
}
}

y = clojure.lang.PersistentHashMap.EMPTY;
for( var i = 0; i < 10; ++i ) {
y = y.assoc( "a" + String.fromCharCode( 48 + i ), i );
maptop( y );
}
Loading
X Tutup