summaryrefslogtreecommitdiff
path: root/src/library
Commit message (Collapse)AuthorAgeFilesLines
* Merge pull request #677 from axel22/feature/util-hashing2Josh Suereth2012-06-0715-55/+133
|\ | | | | Add the first iteration of the `util.hashing` package.
| * Add the first iteration of the `util.hashing` package.Aleksandar Prokopec2012-06-0715-55/+133
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Move `MurmurHash3` to `util.hashing`. Make the `class` private and retain a public companion `object`, and put the `MurmurHash3.Hashing` implementations for various types in the companion. Add a method which composes `ByteswapHashing` with some other hashing. Rename `hashOf` to `hash`. Fix chi-square test in a test-case. Review by @jsuereth. Moved a failing test that seems to use some other library version to pending.
* | Generate abstract methods in scala.Byte and friends.Paul Phillips2012-06-0610-759/+794
|/ | | | | Rather than stub implementations. This saves over 50K of bytecode. I also added the necessary imports to silence the feature warnings.
* Merge pull request #669 from dgruntz/masterJosh Suereth2012-06-061-5/+6
|\ | | | | Fixes typos in scaladoc of Orderes.scala
| * fixes typos in scaladoc of Orderes.calaDominik Gruntz2012-06-051-5/+6
| |
* | Merge pull request #673 from axel22/issue/5880Josh Suereth2012-06-061-2/+8
|\ \ | | | | | | Fix SI-5880.
| * | Fix SI-5880.Aleksandar Prokopec2012-06-061-2/+8
| |/ | | | | | | Add a ChiSquare test for the new hash code.
* | Merge pull request #671 from axel22/issue/5867Josh Suereth2012-06-061-0/+2
|\ \ | | | | | | Fix SI-5867.
| * | Fix SI-5867.Aleksandar Prokopec2012-06-061-0/+2
| |/ | | | | | | Override clone for unrolled buffer.
* | Merge pull request #670 from axel22/issue/5879Josh Suereth2012-06-061-15/+52
|\ \ | | | | | | Fix SI-5879.
| * | Fix SI-5879.Aleksandar Prokopec2012-06-061-15/+52
| |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fix a bug where a key in an immutable hash map have the corresponding value different in the iteration than when doing lookup. This use to happen after calling `merge`. Fix the order in which a key-value pair appears in the collision resolution function - the first argument always comes from the `this` hash map. Deprecate `merge` in favour of `merged`, as this is a pure method. As an added benefit, the syntax for invoking `merge` is now nicer.
* / Add configuration for ExecutionContextphaller2012-06-051-7/+21
|/
* Fix `Hashing`.Aleksandar Prokopec2012-06-013-12/+24
| | | | | | Move `Hashing` to `scala.util.hashing`. Adde `Hashing.Default` to `Hashing` companion object. Change `TrieMap` to autoswitch from `Hashing.Default` to `TrieMap.MangledHashing`.
* Remove Equality in favour of Equiv.Aleksandar Prokopec2012-06-014-46/+9
| | | | Make Equiv serializable.
* Add Hashing and Equality typeclasses.Aleksandar Prokopec2012-06-013-27/+122
| | | | | | Modify TrieMap to use hashing and equality. Modify serialization in TrieMap appropriately.
* fix t5843Lukas Rytz2012-05-281-2/+2
|
* Handled some of our new exhaustiveness warnings.Paul Phillips2012-05-261-0/+2
| | | | Who could have suspected it would actually be right most of the time?
* Merge pull request #621 from axel22/issue/5085bAdriaan Moors2012-05-251-4/+22
|\ | | | | Fixes SI-5085 and SI-4833.
| * Fixes SI-5085 and SI-4833.Aleksandar Prokopec2012-05-251-4/+22
| |
* | Merge pull request #618 from axel22/issue/5428Adriaan Moors2012-05-251-0/+5
|\ \ | | | | | | Fixes SI-5428.
| * | Fixes SI-5428.Aleksandar Prokopec2012-05-241-0/+5
| |/
* | Merge pull request #617 from phaller/implicit-execution-contextAdriaan Moors2012-05-244-42/+97
|\ \ | | | | | | Move implicit ExecutionContext to be determined by lexical scope
| * | Move implicit ExecutionContext to be determined by lexical scopephaller2012-05-244-42/+97
| |/ | | | | | | | | | | | | | | | | | | | | | | | | | | Port of a pull request originally submitted by @havocp. - declare the invariant that all app callbacks have an associated ExecutionContext provided at the place the callback is passed to a method on Future - always run callbacks in their associated EC - since all callbacks have their own EC, Promise does not need one - "internal" callbacks don't need to defer execution either since we know the ultimate app callback will do so, therefore we can use an immediate executor for these
* / Fixes SI-5441.Aleksandar Prokopec2012-05-241-2/+2
|/
* Merge pull request #586 from axel22/issue/5804Josh Suereth2012-05-222-15/+13
|\ | | | | Fixes SI-5804.
| * Fixes SI-5804.Aleksandar Prokopec2012-05-182-15/+13
| | | | | | | | | | | | | | | | | | The hash table initialSize method is now within the the hashset and hashmap classes, and not in the companion. Overriding this method now yields hashmaps and hashsets of the proper initial capacity. Review by @phaller.
* | Merge pull request #574 from axel22/issue/4461Josh Suereth2012-05-181-0/+14
|\ \ | | | | | | Fixes SI-4461.
| * | Fixes SI-4461.Aleksandar Prokopec2012-05-181-0/+14
| |/ | | | | | | No review.
* | Merge pull request #569 from phaller/wip-sip14-fixes-newAdriaan Moors2012-05-187-71/+113
|\ \ | | | | | | SIP-14: clean ups and fixes by @viktorklang
| * | SIP-14: clean ups and fixesphaller2012-05-177-71/+113
| | |
* | | Fix 4138Lukas Rytz2012-05-181-3/+6
| |/ |/|
* | Merge pull request #564 from scalamacros/topic/assertinresetattrsJosh Suereth2012-05-172-4/+4
|\ \ | | | | | | fixes resetAttrs
| * | fixes resetAttrsEugene Burmako2012-05-172-4/+4
| | |
* | | Added infrastructure to enable easy enrichment of GenTraversables.Miles Sabin2012-05-173-0/+71
|/ /
* | Missed a stashHeather Miller2012-05-171-1/+1
| |
* | Merge branch 'master' of git://github.com/scala/scala into issue/5623Heather Miller2012-05-1615-28/+47
|\|
| * Merge pull request #555 from srp/masterJosh Suereth2012-05-161-0/+22
| |\ | | | | | | mutable.MapLike: override $mapNote to reflect actual require mutable api
| | * mutable.MapLike: override $mapNote to reflect actual require mutable apiScott R. Parish2012-05-151-0/+22
| | | | | | | | | | | | | | | | | | | | | The api needed to define a mutable.Map is different then the one needed to define an immutable.Map. Prior to this patch the mutable one reflected the api needed for the immutable one causing confusion about what really needed to be defined.
| * | Merge pull request #553 from heathermiller/doc/linksJosh Suereth2012-05-1614-28/+25
| |\ \ | | | | | | | | Small documentation fixes & small fix to Scaladoc @see formatting
| | * | Corrects links in API documentationHeather Miller2012-05-1611-18/+16
| | | |
| | * | Missed a straggling doc comment.Heather Miller2012-05-151-1/+1
| | | |
| | * | Small documentation fixes & small fix to Scaladoc @see formattingHeather Miller2012-05-153-9/+8
| | | |
* | | | Fixes SI-5623 on SyncVar and deprecates set & unset.Heather Miller2012-05-161-7/+43
|/ / /
* | / Removing more unneeded code.Paul Phillips2012-05-156-344/+0
| |/ |/|
* | Removing extraneous files.Paul Phillips2012-05-151-1/+0
| | | | | | | | Culling accumulated unnecessary code.
* | Enumeration#maxId: fix documentation to reflect realityScott R. Parish2012-05-151-2/+2
|/ | | | | | | | | | | | | | | | | | | | | maxId is not really the "maximum id", but rather one past the max: scala> object Foo extends Enumeration { | val x = Value | val y = Value | } defined module Foo scala> Foo.maxId res0: Int = 2 scala> Foo(2) java.util.NoSuchElementException: key not found: 2 at scala.collection.MapLike$class.default(MapLike.scala:225) ... scala> Foo(1) res2: Foo.Value = y
* Debugging output tweaks.Paul Phillips2012-05-141-1/+0
| | | | And undeprecated Positional.
* Address doc comment rot in the standard library.Jason Zaugg2012-05-1394-370/+204
| | | | | | | | | | | | | | | | | | | | | - Match @param/@tparam names to the actual parameter name - Use @tparam for type parameters - Whitespace is required between `*` and `@` - Fix incorrect references to @define macros. - Use of monospace `` and {{{}}} (much more needed) - Remove `@param p1 ...` stubs, which appear in the generated docss. - But, retainsed `@param p1` stubs, assuming they will be filtered from the generated docs by SI-5795. - Avoid use of the shorthand `@param doc for the solitary param` (which works, but isn't recognized by the code inspection in IntelliJ I used to sweep through the problems) The remaining warnings from `ant docs` seem spurious, I suspect they are an unintended consequence of documenting extension methods. [scaladoc] /Users/jason/code/scala/src/library/scala/collection/TraversableOnce.scala:181: warning: Variable coll undefined in comment for method reduceOption in class Tuple2Zipped [scaladoc] def reduceOption[A1 >: A](op: (A1, A1) => A1): Option[A1] = reduceLeftOption(op) [scaladoc] ^
* Deprecated some classes.Paul Phillips2012-05-1218-2/+28
| | | | | | | | | | | | | | | | | | | | | | | | | | | All this stuff. I believe most of this is uncontroversial. scala/util/Marshal.scala scala/util/automata/BaseBerrySethi.scala scala/util/automata/DetWordAutom.scala scala/util/automata/Inclusion.scala scala/util/automata/NondetWordAutom.scala scala/util/automata/SubsetConstruction.scala scala/util/automata/WordBerrySethi.scala scala/util/grammar/HedgeRHS.scala scala/util/grammar/TreeRHS.scala scala/util/parsing/ast/AbstractSyntax.scala scala/util/parsing/ast/Binders.scala scala/util/parsing/combinator/testing/RegexTest.scala scala/util/parsing/combinator/testing/Tester.scala scala/util/parsing/input/Positional.scala scala/util/regexp/Base.scala scala/util/regexp/PointedHedgeExp.scala scala/util/regexp/SyntaxError.scala scala/util/regexp/WordExp.scala I'd have deprecated much of it long ago if the compiler didn't still depend on it due to xml/dtd/something. And it still does, but it's time to deprecate them anyway.
* Merge commit 'refs/pull/530/head'; commit 'refs/pull/531/head'; commit ↵Paul Phillips2012-05-116-42/+28
|\ | | | | | | 'refs/pull/532/head'; commit 'refs/pull/533/head'; commit 'refs/pull/534/head' into develop