summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
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
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-16remove unchecked-inc from amap, areduceRich 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-11re-enable protocol-based reduceprimRich Hickey
2010-06-10flow type hints on static invoke callsRich Hickey
2010-06-10#377 test now reports file/line for failures in repl or Ant buildStuart Halloway
Signed-off-by: Rich Hickey <richhickey@gmail.com>
2010-06-10simplified keyword callsites, made compatible with static fnsRich Hickey
2010-06-10munge dashes in ns names for static callsRich Hickey
2010-06-10eliminate reflection in chunk* and other core 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-07Added testcase for defrecord with field names that used to clash with method ↵Konrad Hinsen
argument names Signed-off-by: Stuart Halloway <stu@thinkrelevance.com>
2010-06-07Remove potential conflicts between field names and method argument names in ↵Konrad Hinsen
defrecord Signed-off-by: Stuart Halloway <stu@thinkrelevance.com>
2010-06-07tidy up and test #257, remove spurious .rej fileStuart Halloway
Signed-off-by: Stuart Halloway <stu@thinkrelevance.com>
2010-06-07added fnil to supply default values #257Timothy Pratley
Signed-off-by: Stuart Halloway <stu@thinkrelevance.com>
2010-06-07make get-in faster #256Stuart Halloway
Signed-off-by: Stuart Halloway <stu@thinkrelevance.com>
2010-06-07get-in support for default #256Timothy Pratley
Signed-off-by: Stuart Halloway <stu@thinkrelevance.com>
2010-06-07fix pop! when the tree depth decreasesChristophe Grand
Signed-off-by: Stuart Halloway <stu@thinkrelevance.com>
2010-06-06prevent dynamic classes from being flushed before useRich Hickey
2010-06-03test for #361: merge-with for defrecordStuart Halloway
Signed-off-by: Stuart Halloway <stu@thinkrelevance.com>
2010-06-03Improve merge-with to work with map-like types that don't implement ↵Konrad Hinsen
clojure.lang.IFn for lookup Signed-off-by: Stuart Halloway <stu@thinkrelevance.com>
2010-06-03#359 request from Stuart Sierra: split-lines, blank?, escapeStuart Halloway
Signed-off-by: Stuart Halloway <stu@thinkrelevance.com>
2010-06-03minor fixes to #359:Stuart Halloway
- add clojure.string to build, - make replace,replace-first use CharSequence in same way Signed-off-by: Stuart Halloway <stu@thinkrelevance.com>
2010-06-03code review of #359: pass in CharSequence, but return StringStuart Halloway
Signed-off-by: Stuart Halloway <stu@thinkrelevance.com>
2010-06-03#359 driven to abstraction: CharSequence, not stringStuart Halloway
Signed-off-by: Stuart Halloway <stu@thinkrelevance.com>
2010-06-03string fns take an object, you can't pass nil #359Stuart Halloway
Signed-off-by: Stuart Halloway <stu@thinkrelevance.com>
2010-06-03abstraction fix to split: preserve vector nature of host return value #359Stuart Halloway
Signed-off-by: Stuart Halloway <stu@thinkrelevance.com>
2010-06-03metadata review #359Stuart Halloway
Signed-off-by: Stuart Halloway <stu@thinkrelevance.com>
2010-06-03string perf tweaks, tests #359David Liebke and Stuart Halloway
Signed-off-by: Stuart Halloway <stu@thinkrelevance.com>