summaryrefslogtreecommitdiff
path: root/src/library
Commit message (Collapse)AuthorAgeFilesLines
* A few bits of java code which use "" + x and ca...Paul Phillips2011-01-184-4/+4
| | | | | | A few bits of java code which use "" + x and can't be helped out by scala compiler optimizations. No review.
* Reverted to curried invokeDynamic to fix a prob...Martin Odersky2011-01-181-1/+1
| | | | | Reverted to curried invokeDynamic to fix a problem in typers.
* Cleaned up Dynamic.Martin Odersky2011-01-181-11/+15
|
* Dynamic type added. Array creation optimized.Martin Odersky2011-01-161-0/+18
|
* Added doc commentMartin Odersky2011-01-161-0/+6
|
* Optimization for Manifest.equals.Paul Phillips2011-01-132-82/+106
| | | | | | | | | significantly faster. Closes #4006. And, then I started trying to deal with some fundamental Manifest issues and give it a little documentation. I left a trail of bloody comments, for which I solicit review by moors.
* Purely detabification of the process code.Paul Phillips2011-01-127-438/+438
|
* Some modifications to @elidable: for reasons lo...Paul Phillips2011-01-121-12/+27
| | | | | | | | Some modifications to @elidable: for reasons lost to me now it had a default value such that annotated methods might be elided even if the option wasn't given. It now does nothing in that situation. Closes #4051, #4151, no review.
* More fiddling with the process code.Paul Phillips2011-01-127-245/+286
|
* Imported sbt.Process into trunk, in the guise o...Paul Phillips2011-01-1228-46/+817
| | | | | | | | | | | | | | | | | | | Imported sbt.Process into trunk, in the guise of package scala.sys.process. It is largely indistinguishable from the version in sbt, at least from the outside. Also, I renamed package system to sys. I wanted to do that from the beginning and the desire has only grown since then. Sometimes a short identifier is just critical to usability: with a function like error("") called from hundreds of places, the difference between system.error and sys.error is too big. sys.error and sys.exit have good vibes (at least as good as the vibes can be for functions which error and exit.) Note: this is just the first cut. I need to check this in to finish fixing partest. I will be going over it with a comb and writing documentation which will leave you enchanted, as well as removing other bits which are now redundant or inferior. No review.
* Make scala.collection.immutable.Set1, .Set2, Se...Donna Malayeri2011-01-111-4/+4
| | | | | | Make scala.collection.immutable.Set1, .Set2, Set3, Set4 constructors private to the collection package. Closes #2845. No review.
* Modify scala.Array to extend java.io.Serializable.Donna Malayeri2011-01-101-1/+1
|
* Pulled some bit level operations into their own...Paul Phillips2011-01-105-88/+80
| | | | | | | | Pulled some bit level operations into their own file. It's pretty much impossible to abstract across Int and Long with no penalty, but we can at least have duplicated code in the same place to minimize the challenge. No review.
* A test case for recently fixed #4114. Plus!Paul Phillips2011-01-101-1/+1
| | | | | | | | | I had closed #2441 as a duplicate of that, but unfortunately #4114 did not bring #2441 along with it. Then I realized I'm a programmer, not a helpless trac watcher. As is often the case with thes things, fixing that revealed a bug in the library. Closes #2441 for real, review by odersky.
* Made <:< and =:= serializable.Paul Phillips2011-01-101-3/+3
|
* Fixes #4112. Closes #4112.Aleksandar Pokopec2011-01-101-0/+8
| | | | | No review.
* Added comments for #4008.Aleksandar Pokopec2011-01-102-4/+28
| | | | | No review.
* Fixes #4054.Aleksandar Pokopec2011-01-101-0/+11
| | | | | No review.
* Enabled parallel group by.Aleksandar Pokopec2011-01-102-6/+6
| | | | | No review.
* Oops, the implicit not found message was wrong:Paul Phillips2011-01-101-1/+1
| | | | | | | | | | | scala> implicitly[CanBuildFrom[String, Int, List[List[Int]]]] <console>:10: error: Cannot construct a collection of type List[List[Int]] with elements of type Int based on a collection of type List[List[Int]]. implicitly[CanBuildFrom[String, Int, List[List[Int]]]] ^ No review.
* Closes #3984 by the most arduous and indirect r...Paul Phillips2011-01-093-297/+238
| | | | | | | | | | | | Closes #3984 by the most arduous and indirect route imaginable: abstracts the common code out of the TrieIterators in HashMap and HashSet. When I raised this flag to find out if anyone would open fire, all was quiet on the western front. Although I wouldn't want to write code like this as an everyday thing, I think it serves as a nice showcase for some of the abstraction challenges we're up against: performance looks the same and I will never again have to fix the same bug in two places. Review by rompf.
* The ensuring methods should be by-name on the m...Paul Phillips2011-01-091-2/+2
| | | | | | The ensuring methods should be by-name on the message argument like assert, assume, and require. Closes #4129, no review.
* Override checks and self-types still needed som...Paul Phillips2011-01-081-1/+6
| | | | | | | | | Override checks and self-types still needed some work (ticket #2808.) I believe this is the right change. The modifications in parallel and actors were a result of the files failing to compile after the change to allOverriddenSymbols. (I am taking the position that that aspect is a feature.) Review by malayeri, odersky.
* Deprecate Cell.Hubert Plociniczak2011-01-071-0/+1
|
* Implemented a (slower) workaround for parallel ...Aleksandar Pokopec2011-01-0711-99/+323
| | | | | | | | Implemented a (slower) workaround for parallel vectors. Implemented group by. No review.
* Changed foreach to pforeach.Aleksandar Pokopec2011-01-071-3/+10
| | | | | No review.
* Renamed the files whose names have fallen out o...Paul Phillips2011-01-062-0/+0
| | | | | | | Renamed the files whose names have fallen out of sync with their contents thereby consigning us to ant's version of groundhog day. No review.
* Avoids the creation of an amazing 106,700,793 e...Paul Phillips2011-01-052-14/+33
| | | | | | | | | | | | | Avoids the creation of an amazing 106,700,793 empty arrays (I counted on my fingers) during the compilation of quick.lib and quick.comp by reusing an empty Array[Object]. (And another ten million or so after quick.comp, but who is counting.) It sounds like it would make a bigger difference than it does. Also eliminated some strange indirection from WrappedArray to LowPriorityImplicits back to WrappedArray on each creation. Review by dragos.
* De-finalized equals/hashCode on Trees so people...Paul Phillips2011-01-051-2/+2
| | | | | | | De-finalized equals/hashCode on Trees so people ill-advisedly creating custom Trees with non-reference equality can continue doing their ill-advised thing. No review.
* Eliminated 16 avoidable closure objects in Stream.Paul Phillips2011-01-041-39/+25
|
* Towards a replay framework for the presentation...Martin Odersky2011-01-041-2/+2
| | | | | Towards a replay framework for the presentation compiler
* Closes #3687, #3719, #3950, #3616.Hubert Plociniczak2011-01-041-78/+16
|
* Modified generic companion apply to call empty ...Paul Phillips2011-01-044-7/+15
| | | | | | | | Modified generic companion apply to call empty if there are no arguments, so something like Set() does not generate unnecessary garbage. Also found some immutable classes which don't reuse an empty object for emptiness, and gave them one. No review.
* Some minor Tree optimizations. No review.Paul Phillips2011-01-031-9/+5
|
* Misc uninteresting tidbits to take some weight ...Paul Phillips2011-01-021-1/+1
| | | | | | Misc uninteresting tidbits to take some weight off overly large patches in progress. No review.
* Removed the Name => TypeName implicit conversion.Paul Phillips2011-01-012-27/+14
| | | | | | | | | | questions start to arise as the ability to distinguish between type and term names becomes more fully realized: particularly that the ability to distinguish between TermSymbols and TypeSymbols has not come along with the names. In any case, this is more tedious than I might have anticipated but mostly because it's blazing a trail of typiness to ease the path for others. No review.
* More comprehensive escaping for compiler String...Paul Phillips2011-01-011-9/+19
| | | | | More comprehensive escaping for compiler Strings/Chars. No review.
* Some performance tweaks to ResizableArray.Paul Phillips2010-12-311-8/+9
|
* Changed the cache in the jvm backend to use a W...Iulian Dragos2010-12-311-1/+3
| | | | | | Changed the cache in the jvm backend to use a WeakHashMap for names. Added some details to mutable.WeakHashMap scaladoc.
* Off by one error in nextPrintableChar.Paul Phillips2010-12-311-1/+2
|
* Even after the mostly blissful marriage of Trav...Paul Phillips2010-12-311-11/+7
| | | | | | | | | | | | | | | | Even after the mostly blissful marriage of Traversable and Iterator there was some fussin' and fightin' over who should have to care for Option. Now there is peace among the collections once again. // before scala> Iterator(Some(1), None).flatten <console>:6: error: value flatten is not a member of Iterator[Option[Int]] // after scala> Iterator(Some(1), None).flatten res0: Iterator[Int] = non-empty iterator Review by moors.
* There's still some temporary scaffolding proppi...Paul Phillips2010-12-311-7/+1
| | | | | | | | | There's still some temporary scaffolding propping up the Names situation. This removes one strut: no more is there an implicit conversion from String to TypeName. Implicits which remain to be deal with: String => TermName, Name => TermName, Name => TypeName. Once they're gone we're ready for KindNames! Just kidding, no review.
* fixed issue with EnclosingMethod attribute.michelou2010-12-301-40/+51
| | | | | | The above issue was made explicit using the dx tool for the Android SDK to convert Java bytecode to Dalvik bytecode.
* Removed Proxy from parents of WrappedString.Paul Phillips2010-12-301-1/+2
| | | | | | forward toString, but forwarding equals and hashCode breaks equality with sequences. Closes #4122, no review.
* Some accumulated cleanup done while profiling a...Paul Phillips2010-12-2911-80/+47
| | | | | | Some accumulated cleanup done while profiling and reducing uses of length. No review.
* The partest hangs are back in force.Paul Phillips2010-12-281-1/+1
| | | | | | | | | | down the long and freezy road once again. With this patch you can send a SIGHUP to partest and it will spew a bunch of internal state. It is also possible I fixed the underlying issue by cleaning up the super fragile dependence on counters never getting the least bit off track. If fixed, it'll still be fun to send signals. If not, this will be coming in handy reeeeeal soon. No review.
* Disabled forkjoin on ibm1.6.Aleksandar Pokopec2010-12-211-2/+5
|
* Bencharking a larger program with parallel coll...Aleksandar Pokopec2010-12-216-69/+107
| | | | | | | | | Bencharking a larger program with parallel collections. Fixed a couple of bugs in parallel collections. No review.
* Finer conversions for immutable parallel collec...Aleksandar Pokopec2010-12-2114-72/+235
| | | | | | | | | Finer conversions for immutable parallel collections. Added some missing traits. No review.
* An Ordering for Seq and all of its descendents.Paul Phillips2010-12-211-0/+15
| | | | | small, very focused taste of Ordering contravariance. No review.