summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2010-08-22move version base to 1.3Rich Hickey
2010-08-22Merged branch 'master' into equivmergeRich Hickey
Conflicts were: src/clj/clojure/core.clj src/jvm/clojure/lang/Compiler.java src/jvm/clojure/lang/Util.java test/clojure/test_clojure/protocols.clj
2010-08-13organize common helpersStuart Halloway
Signed-off-by: Stuart Halloway <stu@thinkrelevance.com>
2010-08-13more expressive tests for derive/underiveStuart Halloway
Signed-off-by: Stuart Halloway <stu@thinkrelevance.com>
2010-08-13Fixing underive issues, adding testsRobert Lachlan
Signed-off-by: Stuart Halloway <stu@thinkrelevance.com>
2010-08-13Emit finally exception table entry for each try/catch clause. Refs #422Chouser
Signed-off-by: Stuart Halloway <stu@thinkrelevance.com>
2010-08-13preserve opts when creating socket reader, writerStuart Halloway
Signed-off-by: Stuart Halloway <stu@thinkrelevance.com>
2010-08-13Fix and tests for issue #404Rasmus Svensson
Signed-off-by: Stuart Halloway <stu@thinkrelevance.com>
2010-08-13make sure future clears closed-overs, fixes #423Rich Hickey
Signed-off-by: Stuart Halloway <stu@thinkrelevance.com>
2010-08-04fix record equality with other maps, = includes type, .equals doesn't. see #418Rich Hickey
2010-07-30#407 use munge as cheap validity test for Java method namesStuart Halloway
Signed-off-by: Stuart Halloway <stu@thinkrelevance.com>
2010-07-27♯413 parse-args defaults in-enc and out-enc to UTF-8, as required by shBen Smith-Mannschott
Previously parse-args was defaulting in-enc and out-enc to the platform default charset. This contradicted the intent of sh, which is to default to UTF-8 on all platforms. This appears not to have been noticed because the unit tests were still testing for the previous behavior of defaulting to platform encoding. (As it turns out the old behavior of using Charset/defaultCharset would have been wrong on Mac OS X since it claims "Mac Roman" here despite the fact that Mac OS X uses UTF-8 throughout, including in Terminal.app, shell and file system.) Signed-off-by: Stuart Halloway <stu@thinkrelevance.com>
2010-07-27fixed extend-protocol docDavid Powell
Signed-off-by: Stuart Halloway <stu@thinkrelevance.com>
2010-07-27fix degenerate defrecords, #402Stuart Halloway
Signed-off-by: Stuart Halloway <stu@thinkrelevance.com>
2010-07-27read stdout and stderr in parallel (using futures)David Powell
Signed-off-by: Stuart Halloway <stu@thinkrelevance.com>
2010-07-27Fixes missing this arg on the reify and defprotocol docstrings #340Fogus
Signed-off-by: Stuart Halloway <stu@thinkrelevance.com>
2010-07-16use soft refs for keyword intern tableRich Hickey
2010-07-16factor out cache clearing to Util helperRich Hickey
2010-07-16switch to soft refs in DynamicClassLoaderRich Hickey
2010-07-10fix reduce metadataStuart Halloway
2010-07-09test for #393Stuart Halloway
Signed-off-by: Stuart Halloway <stu@thinkrelevance.com>
2010-07-09Fix rename-keys to work with defrecordsAllen Rohner
Signed-off-by: Stuart Halloway <stu@thinkrelevance.com>
2010-07-09#392 de-uglify option names for shStuart Halloway
Signed-off-by: Stuart Halloway <stu@thinkrelevance.com>
2010-07-09#392 fix reflection warnings and tests + minor cleanupStuart Halloway
Signed-off-by: Stuart Halloway <stu@thinkrelevance.com>
2010-07-09fixes to #392:Stuart Halloway
- correct order for branches for in - :out and :outenc are separate things - stderr always gets platform encoding Signed-off-by: Stuart Halloway <stu@thinkrelevance.com>
2010-07-09read stdout and stderr simultanously from separate threads to prevent stderr ↵David Powell
filling the buffer and hanging the process removed stray println use clojure.java.io to copy streams, avoiding byte-at-a-time copying added :inenc option, specifying the input character set renamed :out input option to :outenc changed default encoding to 'platform default encoding'. This matches how we handle *out*. It is much more likely that command-line tools used by sh use platform default encoding. Windows CRT barely supports UTF-8 for example. write to stdin from a separate thread to prevent stdout blocking before we write anything Added support for passing a byte array to :in Signed-off-by: Stuart Halloway <stu@thinkrelevance.com>
2010-07-09Tests are now passing on windows refs #376Aaron Bedra & Stuart Sierra
Signed-off-by: Stuart Halloway <stu@thinkrelevance.com>
2010-06-30temporary workaround for #388Stuart Halloway
- note need for full package name (in some places, didn't track down) - note need for redundant hinting (interface hinting flows sometimes?) Signed-off-by: Stuart Halloway <stu@thinkrelevance.com>
2010-06-30#377 test now reports file/line for failures in repl or Ant buildStuart Halloway
Signed-off-by: Stuart Halloway <stu@thinkrelevance.com>
2010-06-30#391 ok for namespaces to replace their own varsStuart Halloway
Signed-off-by: Stuart Halloway <stu@thinkrelevance.com>
2010-06-30clean out dead entries in dynamic class cacheRich Hickey
2010-06-25incorporate BigIntequivRich Hickey
2010-06-23box longs-and-smaller as longsRich Hickey
2010-06-23automatically use pp and pprint at the default replStuart Halloway
2010-06-23Convert arg to a string before calling write (and document options arg)Tom Faulhaber
Signed-off-by: Stuart Halloway <stu@thinkrelevance.com>
2010-06-23Support logical-block macro working correctly in external namespaces.Tom Faulhaber
Signed-off-by: Stuart Halloway <stu@thinkrelevance.com>
2010-06-23add hashCode/equals to BigInt, refine number =, new method equal checks for ↵Rich Hickey
matching category before equivalence, move array and hashMap to equiv for keys
2010-06-23Initial version of BigInt -- note overflow caps/rolls over inconsistentlyChouser
Signed-off-by: Rich Hickey <richhickey@gmail.com>
2010-06-23equiv-based =, equiv overloading for UtilRich Hickey
2010-06-23disable direct binding (and internal reduce with it, for now)Rich Hickey
2010-06-21auto-box loop arg when primitive local recur mismatch, print warning that ↵equalRich Hickey
this is happening when *warn-on-reflection* is true
2010-06-19restore hard error on primitive local recur mismatchRich Hickey
2010-06-18Swap defaults, now non-promoting +, * etc is default. Use +', *' etc for ↵Rich Hickey
arbitrary precision.
2010-06-18print recur mismatch warnings, for nowRich Hickey
2010-06-18Allow ' as constituent characterRich Hickey
Bigints auto-reduce in all cases Restore +, *, -, inc, dec as auto-promoting ops, will never return primitive integers, will auto-promote even when given primitives. Add +', *', -', inc', dec', that do exactly what their counterparts do except when given integers of long or smaller, in which case they will not auto-promote but instead throw on overflow, and can return primitives. Return primitive doubles on all ops involving primitive doubles Box on long ops only after checking for overflow
2010-06-17Change = to include type of boxed numbers (and collections thereof). Use == ↵Rich Hickey
for inter-type numeric equivalence.
2010-06-17Util.equals unboxed support for long/doublenumRich Hickey
2010-06-17tighten up narrowing conversion checksRich Hickey
2010-06-17tighten up numeric comparisonsRich Hickey
2010-06-16return bigints from ratio ops only when bigint operandRich Hickey