summaryrefslogtreecommitdiff
path: root/src/jvm
AgeCommit message (Collapse)Author
2010-06-25incorporate BigIntequivRich Hickey
2010-06-23box longs-and-smaller as longsRich Hickey
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-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-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-16return bigints from ratio ops only when bigint operandRich Hickey
2010-06-16bigdecs trump ratios when combinedRich Hickey
2010-06-16canonic boxing of floats and longs in array seqsRich Hickey
2010-06-16return doubles from quotient/remainder on doublesRich Hickey
2010-06-16fix hashcode of empty lazy seqRich Hickey
2010-06-15Unify numeric semantics around longs, with throw on overflow. Allow numeric ↵Rich Hickey
literals to be primitive initializers. Canonicalize boxing of integers, if it fits in int, is Integer, else Long, thus primitive coercions can't be used to get particular boxed types, use Long/valueOf etc. Ask for BigIntegers if you want arbitrary precision, new literal number format - append 'N' for BigInteger. BigIntegers do not reduce automatically, are contagious. New particular names for unchecked ops - unchecked-xxx-int or unchecked-xxx-long. You should need far fewer hints for primitive perf, and avoid int casts and any casting of numeric literals, see: http://gist.github.com/440102
2010-06-13incomplete work in progressRich Hickey
2010-06-12incomplete work in progressRich Hickey
2010-06-10flow type hints on static invoke callsRich Hickey
2010-06-10simplified keyword callsites, made compatible with static fnsRich Hickey
2010-06-10munge dashes in ns names for static callsRich Hickey
2010-06-10account for longs/doubles on stack for static fnsRich Hickey
2010-06-10add support for constant vectors and setsRich Hickey
2010-06-09detect constant maps, emit as constantsRich Hickey
break down constant inits into separate methods, call from init move core.clj to statics
2010-06-09moved statics to using arglist metadata, support recursion and variadics, ↵Rich Hickey
limit primitives to long and double
2010-06-09move exception handler in eval to properly retain lineRich Hickey
2010-06-08direct calls to statics, integrating into core fnsRich Hickey
2010-06-08first cut at primitives in fn sigsRich Hickey
2010-06-08read ^:foo bar as ^{:foo true} bar and merge existing metatada. See #375.Christophe Grand
Signed-off-by: Rich Hickey <richhickey@gmail.com>
2010-06-07fix pop! when the tree depth decreasesChristophe Grand
Signed-off-by: Stuart Halloway <stu@thinkrelevance.com>
2010-06-03make RT/print print Pattern literalsChristophe Grand
Signed-off-by: Stuart Halloway <stu@thinkrelevance.com>
2010-06-02flow primitives through if and letRich Hickey
2010-06-01disable don't-recompile-if-same-source in DynamicClassLoader, fixes #353Rich Hickey
2010-05-28#330 def/declare do not reset metadata unless init-expr is passedStuart Halloway
Signed-off-by: Stuart Halloway <stu@thinkrelevance.com>
2010-05-27fix pop! on 33-item-long transient vectors. See #358.Christophe Grand
Signed-off-by: Stuart Halloway <stu@thinkrelevance.com> Signed-off-by: STUART HALLOWAY <stuart@STUART-HALLOWAYs-MacBook-Pro.local>
2010-05-24eliminate reflection from bit-shift slow path #355Stuart Halloway
Signed-off-by: Stuart Halloway <stu@thinkrelevance.com>
2010-05-24fix NPE if redefined protocol removes method #333 (Mike Hinchey)Stuart Halloway
Signed-off-by: Stuart Halloway <stu@thinkrelevance.com>
2010-05-22last var wins only for clojure.core, #332Stuart Halloway
Signed-off-by: Stuart Halloway <stu@thinkrelevance.com>
2010-05-20clear macro meta #352Stuart Halloway
Signed-off-by: Stuart Halloway <stu@thinkrelevance.com>
2010-05-20don't append numbers on top-level fn class namesRich Hickey
2010-05-20report num args passed on arity errorRich Hickey
2010-05-18Merge branch 'patches'Rich Hickey
2010-05-18hotfix for classloading, force new loader in all casesRich Hickey
2010-05-17handle bad keyword syntax #334Stuart Halloway
Signed-off-by: Stuart Halloway <stu@thinkrelevance.com>
2010-05-07duck type RT.err #343Stuart Halloway
Signed-off-by: Stuart Halloway <stu@thinkrelevance.com>
2010-05-04last-one-in-wins for refers and interns, warns on replacementRich Hickey
2010-05-04Enabled Java Serialization for nearly all data structures - fixes 281Chas Emerick
Signed-off-by: Stuart Halloway <stu@thinkrelevance.com>
2010-05-04Fix PersistentQueue equalityChas Emerick
Signed-off-by: Stuart Halloway <stu@thinkrelevance.com>