Skip to content
This repository

May 02, 2011

  1. Merged revisions 24830-24831,24834-24862 via sv...

    Merged revisions 24830-24831,24834-24862 via svnmerge from
    https://lampsvn.epfl.ch/svn-repos/scala/scala/trunk
    
    ........
      r24830 | extempore | 2011-04-26 21:00:24 +0200 (Tue, 26 Apr 2011) | 1 line
    
      Some solid progress on the pattern matcher, no review. ........ r24831
    | odersky | 2011-04-27 12:26:39 +0200 (Wed, 27 Apr 2011) | 1 line
    
      More bridges in collections. Review by prokopec.
    ........
      r24834 | extempore | 2011-04-27 20:35:47 +0200 (Wed, 27 Apr 2011) | 1 line
    
      Fixed inversion of fsc's exit code, closes #4519 no review. ........
    r24835 | extempore | 2011-04-27 20:36:04 +0200 (Wed, 27 Apr 2011) | 2
    lines
    
      Fixed a booch I made in io.Position's positioning. Closes #4498, no
    review. ........ r24836 | extempore | 2011-04-27 20:36:16 +0200 (Wed, 27
    Apr 2011) | 1 line
    
      A little cleanup on a repl command, no review.
    ........
      r24837 | extempore | 2011-04-27 20:36:32 +0200 (Wed, 27 Apr 2011) | 5 lines
    
      Trying to fix the pattern matcher took me into the lambda lifter,
    and I made some changes which seemed sensible to me. I'm going to be a
    stickler about eliminating mutable maps which hold mutable listbuffers.
    I could use some confirmation that I didn't somehow break the world:
    review by dragos. ........ r24838 | extempore | 2011-04-27 20:36:47
    +0200 (Wed, 27 Apr 2011) | 4 lines
    
      Trying out a different strategy for restoring terminal settings so we
    don't have a list of hardcoded terminal types. Now it saves the terminal
    settings on script start and restores those on exit. Closes #4170,
    review by rytz. ........ r24839 | extempore | 2011-04-28 01:49:27 +0200
    (Thu, 28 Apr 2011) | 1 line
    
      Cleaned up some hopelessly atrophied documentation, no review.
    ........ r24840 | extempore | 2011-04-28 03:10:22 +0200 (Thu, 28 Apr
    2011) | 4 lines
    
      Upgraded -d so you can output classes directly to a jar. Very (very)
    loosely based on a patch from dmharrah. Like dmharrah before me, I
    see little if any change in compile times, which I find difficult to
    explain. Closes #27, review by dmharrah. ........ r24841 | extempore |
    2011-04-28 17:12:42 +0200 (Thu, 28 Apr 2011) | 5 lines
    
      Improvements to the AST browser contributed by Yuvi Masory. Uses
    Nimbus LAF when available and improves readability by padding
    components. Adds menu items and key bindings for expanding and
    contracting nodes, closing the browser and continuing compilation, and
    closing the browser and aborting. No review. ........ r24842 | extempore
    | 2011-04-28 18:23:45 +0200 (Thu, 28 Apr 2011) | 15 lines
    
      Improved the error message for another of the most common situations
      I hear about in newbieland. It could be taken further. If compilation
      fails due to an unimplemented abstract method, and there is a concrete
      method of the same name and arity, it will do a pairwise analysis of
      the parameters and attempt to further explain where you went off the
      beam if it feels it can do so sensibly. Such as in the test case:
    
        % scalac S.scala
        S.scala:1: error: class S needs to be abstract, since method g in class J of type (y: Int,z: java.util.List)Int is not defined
        (Note that java.util.List does not match java.util.List[String]. To implement a raw type, use java.util.List[_])
        class S extends J {
              ^
        one error found
    
      No review.
    ........
      r24843 | extempore | 2011-04-28 18:26:05 +0200 (Thu, 28 Apr 2011) | 11 lines
    
      I wrote a warning when nullary methods return Unit. I wimped out of
      including it in this patch because we had about 200 of them, and
      that's what is fixed in this patch. I will add the warning to some
      kind of "-Xlint" feature after 2.9.
    
      This is motivated at least partly by the resolution of #4506, which
    indicates the distinction between "def foo()" and "def foo" will
    continue to jab its pointy stick into our eyes, so I believe we have a
    minimal duty of at least following our own advice about what they mean
    and not making a semirandom choice as to whether a method has parens
    or not. Review by community. ........ r24844 | odersky | 2011-04-29
    13:07:56 +0200 (Fri, 29 Apr 2011) | 1 line
    
      Fixes #4525. No review.
    ........
      r24845 | plocinic | 2011-04-29 16:27:35 +0200 (Fri, 29 Apr 2011) | 1 line
    
      remove now redundant check (see #4426). review by extempore ........
    r24846 | plocinic | 2011-04-29 16:27:40 +0200 (Fri, 29 Apr 2011) | 1
    line
    
      Closes #4457. Review by odersky
    ........
      r24847 | odersky | 2011-04-29 17:35:37 +0200 (Fri, 29 Apr 2011) | 1 line
    
      Ignore type errors raised in later phases that are due to mismatching
    existentials. Quick fix to address lift build failures. Review by
    dragos. ........ r24848 | odersky | 2011-04-29 18:02:53 +0200 (Fri, 29
    Apr 2011) | 1 line
    
      Second version of trying to avoid the lift crasher bug. ........
    r24849 | odersky | 2011-04-29 18:13:31 +0200 (Fri, 29 Apr 2011) | 1 line
    
      Issuing warnings with detailed info when we encounter the lift crasher
    case. ........ r24850 | michelou | 2011-04-29 21:41:12 +0200 (Fri, 29
    Apr 2011) | 2 lines
    
      removed legacy library code (package scala.mobile) ........ r24851 |
    extempore | 2011-04-29 22:13:10 +0200 (Fri, 29 Apr 2011) | 4 lines
    
      Fixing the pattern matcher regression I introduced between rc1 and
    rc2. Not done with this situation but at least I managed to boil out
    the big problem and keep my five closed pattern matcher tickets to
    boot. Closes #4523, no review. ........ r24852 | extempore | 2011-04-30
    00:40:03 +0200 (Sat, 30 Apr 2011) | 1 line
    
      Making further unapply regressions less likely, no review. ........
    r24853 | extempore | 2011-04-30 22:00:39 +0200 (Sat, 30 Apr 2011) | 3
    lines
    
      After having to update the code for someone else, ran damarau
    levenshtein on trunk again. Patchwise, I guess correcting spelling
    errors in comments is about as safe as it gets. No review. ........
    r24854 | extempore | 2011-04-30 22:01:00 +0200 (Sat, 30 Apr 2011) | 1
    line
    
      Don't crash the pickler with erroneous types. Review by odersky.
    ........ r24855 | extempore | 2011-04-30 22:01:25 +0200 (Sat, 30 Apr
    2011) | 4 lines
    
      Completely to my surprise, found that fixing all those sequence issues
    revealed that the pattern matcher can catch a lot more inexhaustive
    cases than it has been catching. Fixed most of the inexhaustive matches
    in the compiler, which had become a bit warnier. No review. ........
    r24856 | extempore | 2011-04-30 22:01:48 +0200 (Sat, 30 Apr 2011) | 2
    lines
    
      A few minor cleanups involving logging messages, assertion messages,
    compiler warnings, and other innocuous matters. No review. ........
    r24857 | extempore | 2011-05-01 07:10:09 +0200 (Sun, 01 May 2011) | 2
    lines
    
      Don't issue a deprecation warning if the deprecated method is being
    called from a bridge method. No review. ........ r24858 | extempore |
    2011-05-01 07:10:58 +0200 (Sun, 01 May 2011) | 4 lines
    
      Since I don't want to commit anything "interesting" until we ship 2.9,
    a few uninteresting cleanups involving how types are printed, getting
    some debugging code in shape to prepare for the long winter ahead, etc.
    No review. ........ r24859 | extempore | 2011-05-01 07:43:05 +0200 (Sun,
    01 May 2011) | 2 lines
    
      Realized how noisy the @deprecated-takes-two-arguments message was and
    quieted it down. Oh, and documented the arguments. No review. ........
    r24860 | extempore | 2011-05-01 20:15:49 +0200 (Sun, 01 May 2011) | 7
    lines
    
      Reducing the sbt launcher footprint by eliminating val references
    which go through the scala package object, since they lead to
    otherwise unnecessary classes becoming required at startup. Mostly
    this means library files with constructors like "Iterator.empty" or
    "Stream.continually" receive a direct import of that companion. The one
    slightly less than cosmetic change was moving the strange xml value
    "$scope" back into Predef, because otherwise I have to touch the xml
    code generation. No review. ........ r24861 | extempore | 2011-05-01
    21:58:44 +0200 (Sun, 01 May 2011) | 2 lines
    
      Added a @bridge'd $scope back to scala package object for binary
    compat. No review. ........ r24862 | extempore | 2011-05-02 05:28:58
    +0200 (Mon, 02 May 2011) | 4 lines
    
      Figuring it couldn't hurt if more people had a command of some of
    our binary compatibility impacting code, I went over the ModuleDef
    elimination with my clarify stick and made the machinery more
    transparent, to me anyway. Review by plocinic. ........
    authored May 02, 2011

Apr 20, 2011

  1. Fixing an incomplete svnmerge; second, merge ag...

    Fixing an incomplete svnmerge; second, merge again from trunk.
    authored April 20, 2011
  2. Fixing an incomplete svnmerge; first, revert to...

    Fixing an incomplete svnmerge; first, revert to r24726.
    authored April 20, 2011

Apr 19, 2011

  1. Merged revisions 24749-24771,24773-24774,24776-...

    Merged revisions 24749-24771,24773-24774,24776-24779 via svnmerge from
    https://lampsvn.epfl.ch/svn-repos/scala/scala/trunk
    
    ........
      r24749 | odersky | 2011-04-13 17:07:21 +0200 (Wed, 13 Apr 2011) | 1 line
    
      Fixes my part of #4283 by inserting another cast pre-emptively when an
    IllegalAccess error is possible in an erasure-inserted cast. Review by
    extempore. ........ r24750 | dragos | 2011-04-13 18:15:37 +0200 (Wed, 13
    Apr 2011) | 1 line
    
      Warn when the jar file cannot be found when loading a plugin. no
    review. ........ r24751 | dragos | 2011-04-13 18:15:43 +0200 (Wed, 13
    Apr 2011) | 1 line
    
      Closes #4283. no review.
    ........
      r24752 | prokopec | 2011-04-13 18:31:42 +0200 (Wed, 13 Apr 2011) | 45 lines
    
      Refactoring the collections api to support differentiation between
    referring to a sequential collection and a parallel collection, and to
    support referring to both types of collections.
    
      New set of traits Gen* are now superclasses of both their * and Par* subclasses. For example, GenIterable is a superclass of both Iterable and ParIterable. Iterable and ParIterable are not in a subclassing relation. The new class hierarchy is illustrated below (simplified, not all relations and classes are shown):
    
      TraversableOnce --> GenTraversableOnce
        ^                    ^
        |                    |
      Traversable     --> GenTraversable
        ^                    ^
        |                    |
      Iterable        --> GenIterable        <-- ParIterable
        ^                    ^                      ^
        |                    |                      |
      Seq             --> GenSeq             <-- ParSeq
    
      (the *Like, *View and *ViewLike traits have a similar hierarchy)
    
      General views extract common view functionality from parallel and
    sequential collections.
    
      This design also allows for more flexible extensions to the
    collections framework. It also allows slowly factoring out common
    functionality up into Gen* traits.
    
      From now on, it is possible to write this:
    
      import collection._
    
      val p = parallel.ParSeq(1, 2, 3)
      val g: GenSeq[Int] = p // meaning a General Sequence
      val s = g.seq // type of s is Seq[Int]
    
      for (elem <- g) {
        // do something without guarantees on sequentiality of foreach
        // this foreach may be executed in parallel
      }
    
      for (elem <- s) {
        // do something with a guarantee that foreach is executed in order, sequentially
      }
    
      for (elem <- p) {
        // do something concurrently, in parallel
      }
    
      This also means that some signatures had to be changed. For example,
    method `flatMap` now takes `A => GenTraversableOnce[B]`, and `zip` takes
    a `GenIterable[B]`.
    
      Also, there are mutable & immutable Gen* trait variants. They have
    generic companion functionality. ........ r24753 | prokopec | 2011-04-13
    18:31:58 +0200 (Wed, 13 Apr 2011) | 3 lines
    
      Fixes and closes #4405.
    
      No review.
    ........
      r24754 | prokopec | 2011-04-13 18:32:01 +0200 (Wed, 13 Apr 2011) | 3 lines
    
      Fixed some tests, renamed from Any to Gen.
    
      No review.
    ........
      r24755 | prokopec | 2011-04-13 18:32:04 +0200 (Wed, 13 Apr 2011) | 3 lines
    
      Further fixes #4405.
    
      No review.
    ........
      r24756 | prokopec | 2011-04-13 18:32:09 +0200 (Wed, 13 Apr 2011) | 3 lines
    
      Added test case for #4459.
    
      No review.
    ........
      r24757 | extempore | 2011-04-13 21:00:56 +0200 (Wed, 13 Apr 2011) | 1 line
    
      New starr based on r24749.  No review.
    ........
      r24758 | dragos | 2011-04-13 21:12:57 +0200 (Wed, 13 Apr 2011) | 1 line
    
      Revert "Closes #4283. no review." because of failing tests. ........
    r24759 | extempore | 2011-04-14 06:15:50 +0200 (Thu, 14 Apr 2011) | 2
    lines
    
      Tests which run have to be called "Test". Fixes failing test and
    renames file to avoid ant's brainlessness, no review. ........ r24760 |
    extempore | 2011-04-14 08:38:35 +0200 (Thu, 14 Apr 2011) | 9 lines
    
      Doing a little polishing on the parallel collections refactor (which
      overall looks like a big improvement.) I went for some simpler wording
      and moved a number of scaladoc tags around because the rug had been
      pulled out from under their feet.
    
      This leaves a lot undone, but since many of the docs need to be
    reworded before they can move from e.g. SeqLike to GenSeqLike, and I'm
    not well informed on exactly how these abstractions are being presented,
    I stayed in the safe zone. Review by prokopec. ........ r24761 | phaller
    | 2011-04-14 11:11:10 +0200 (Thu, 14 Apr 2011) | 1 line
    
      Closed #4454. Applied patch provided in ticket. No review. ........
    r24762 | dragos | 2011-04-14 15:48:00 +0200 (Thu, 14 Apr 2011) | 1 line
    
      This time, fixed #4283. no review.
    ........
      r24763 | extempore | 2011-04-14 16:25:46 +0200 (Thu, 14 Apr 2011) | 4 lines
    
      Of late the test which fires up the window server, which has already
    been the source of undue quantities of inconvenience, has taken to
    hanging indefinitely when I run the test suite on a remote machine. Rope
    at end, goodbye test, no review. ........ r24764 | prokopec | 2011-04-14
    18:09:33 +0200 (Thu, 14 Apr 2011) | 4 lines
    
      Adding some docs refactorings.
      Also, added some docs variables to Gen* traits that were missing.
    
      No review.
    ........
      r24765 | extempore | 2011-04-14 21:33:39 +0200 (Thu, 14 Apr 2011) | 2 lines
    
      Some patches to jline, and new jar. Thanks to Kenji Matsuoka for
    improving the keybindings. No review. ........ r24766 | extempore |
    2011-04-14 23:05:12 +0200 (Thu, 14 Apr 2011) | 3 lines
    
      Adds "since" field to @deprecated. Thanks to Simon Ochsenreither
    for the patch, as it's a change I've always wanted. Moving up in the
    glamorous world of scala commits! No review. ........ r24767 | extempore
    | 2011-04-14 23:06:14 +0200 (Thu, 14 Apr 2011) | 3 lines
    
      Various addenda to soc's patch: regenerating Product/Tuple/Function
    classes and AnyVal sources, making versioning consistent, etc. Closes
    #4477, no review. ........ r24768 | extempore | 2011-04-15 04:39:32
    +0200 (Fri, 15 Apr 2011) | 3 lines
    
      Some mopping up having to do with deprecated gaining an argument,
    which may or may not cure scaladoc of its current assertion failure. No
    review. ........ r24769 | extempore | 2011-04-15 07:05:53 +0200 (Fri, 15
    Apr 2011) | 1 line
    
      Fixing a couple more tests, no review.
    ........
      r24770 | extempore | 2011-04-15 08:55:32 +0200 (Fri, 15 Apr 2011) | 6 lines
    
      Having been tortured by remorse ever since tiark told me that r23934
    had made the hashmap slower, I crushed my previous efforts under the
    heel of my boot, threw all the types out the window, poured acid on
    them, and turned all the dials to the far other extreme. Pity the man
    who will sell his soul for a few CPU cycles. (I am that man.) Review by
    rompf. ........ r24771 | prokopec | 2011-04-15 09:54:54 +0200 (Fri, 15
    Apr 2011) | 3 lines
    
      Couple of fixes to the usecases in docs.
    
      No review.
    ........
      r24773 | kzys | 2011-04-15 18:12:22 +0200 (Fri, 15 Apr 2011) | 2 lines
    
      [scaladoc] Strike-through for deprecated symbols on the reference
    index. Closes #4471. Review by dubochet. ........ r24774 | extempore |
    2011-04-15 23:03:44 +0200 (Fri, 15 Apr 2011) | 3 lines
    
      Added a script in tools for deploying maven artifacts locally, since
    it always takes me an eternity to figure out slash remember how to do
    it. No review. ........ r24776 | extempore | 2011-04-17 21:58:15 +0200
    (Sun, 17 Apr 2011) | 2 lines
    
      Added releaseVersion and developmentVersion to Properties so people
    don't all have to parse the versionString. No review. ........ r24777 |
    extempore | 2011-04-17 23:28:03 +0200 (Sun, 17 Apr 2011) | 1 line
    
      Revised that last botched commit.  No review.
    ........
      r24778 | odersky | 2011-04-19 11:52:59 +0200 (Tue, 19 Apr 2011) | 1 line
    
      Trying to get build times down by refining implicit searches. Implicit
    infos associated with toplevel classes are cached now. Review by rompf.
    ........ r24779 | odersky | 2011-04-19 12:56:58 +0200 (Tue, 19 Apr 2011)
    | 1 line
    
      Further optimizations of implicits. Now, improves checks between
    static members are cached as well. Review by rompf. ........
    authored April 19, 2011

Feb 25, 2011

  1. Paul Phillips

    Made mkString work correctly on views.

    about how to obtain a String and how not to. Closes #4297, no review.
    authored February 25, 2011

Feb 10, 2011

  1. Updated docs. No review.

    authored February 10, 2011

Sep 23, 2010

  1. Adds a zip for ParIterables + a new Zipped view...

    Adds a zip for ParIterables + a new Zipped view for ParSeqView and
    ParIterableView + a bench test. No review
    authored September 23, 2010

Jul 23, 2010

  1. Parallel collection library renamings. No review

    authored July 23, 2010
Something went wrong with that request. Please try again.