summaryrefslogtreecommitdiff
path: root/src/clj
AgeCommit message (Collapse)Author
2010-06-25incorporate BigIntequivRich Hickey
2010-06-23box longs-and-smaller as longsRich Hickey
2010-06-23equiv-based =, equiv overloading for UtilRich Hickey
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-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-17tighten up numeric comparisonsRich 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-12incomplete work in progressRich Hickey
2010-06-11re-enable protocol-based reduceprimRich 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-10eliminate reflection in chunk* and other core callsRich 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-08direct calls to statics, integrating into core fnsRich Hickey
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-06prevent dynamic classes from being flushed before useRich Hickey
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-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>
2010-06-03chouser gets involvedDavid Liebke and Stuart Halloway
Signed-off-by: Stuart Halloway <stu@thinkrelevance.com>
2010-06-03arg order fix, rename chomp-> trim-nl, drop chop, perfDavid Liebke and Stuart Halloway
Signed-off-by: Stuart Halloway <stu@thinkrelevance.com>
2010-06-03collapse the replace-first-* fns, align arg order with clojure conventionDavid Liebke and Stuart Halloway
Signed-off-by: Stuart Halloway <stu@thinkrelevance.com>
2010-06-03collapse the "all" replace-* fns, align arg order with clojure conventionDavid Liebke and Stuart Halloway
Signed-off-by: Stuart Halloway <stu@thinkrelevance.com>
2010-06-03trim variants differ by suffix, for sortabilityDavid Liebke and Stuart Halloway
Signed-off-by: Stuart Halloway <stu@thinkrelevance.com>
2010-06-03make join faster #359David Liebke and Stuart Halloway
Signed-off-by: Stuart Halloway <stu@thinkrelevance.com>
2010-06-03modern metadata syntaxDavid Liebke and Stuart Halloway
Signed-off-by: Stuart Halloway <stu@thinkrelevance.com>
2010-06-03WIP: literal promotion of contrib code #359David Liebke and Stuart Halloway
Signed-off-by: Stuart Halloway <stu@thinkrelevance.com>
2010-06-03Make disj nil-awareMeikel Brandmeyer
Refers #360 Signed-off-by: Stuart Halloway <stu@thinkrelevance.com>
2010-06-03Fix reductions on empty input sequenceMeikel Brandmeyer
Refers #362 Signed-off-by: Stuart Halloway <stu@thinkrelevance.com>
2010-06-02Merge branch 'master' of git@github.com:richhickey/clojureRich Hickey
2010-06-02flow primitives through if and letRich Hickey
2010-06-02update references to contrib to point to new names in clojureStuart Halloway
2010-06-02doto doc typo fixTimothy Pratley
Signed-off-by: Stuart Halloway <stu@thinkrelevance.com>
2010-05-28place to hang defn error messagesStuart Halloway
Signed-off-by: Stuart Halloway <stu@thinkrelevance.com>
2010-05-28name handles stringsStuart Halloway
Signed-off-by: Stuart Halloway <stu@thinkrelevance.com>
2010-05-28tweaking what gets exposed (javadoc #357)Stuart Halloway
Signed-off-by: Stuart Halloway <stu@thinkrelevance.com>
2010-05-28everything javadoc needs from contribStuart Halloway
Signed-off-by: Stuart Halloway <stu@thinkrelevance.com>