Antonio Cunei | 6 Jan 2010 16:35
Picon
Picon
Favicon

Call for Papers Reminder: The First Scala Workshop - Scala Days 2010


The First Scala Workshop
========================

Call for Papers
---------------

Scala is a general purpose programming language designed to express
common programming patterns in a concise, elegant, and type-safe
way. It smoothly integrates features of object-oriented and
functional languages.

This workshop is a forum for researchers and practitioners to share
new ideas and results of interest to the Scala community. The first
workshop will be held at EPFL in Lausanne, Switzerland, on Thursday
15 April 2010, co-located with Scala Days 2010 (15-16 April).

We seek papers on topics related to Scala, including (but not
limited to):

1. Language design and implementation -- language extensions,
optimization, and performance evaluation.

2. Library design and implementation patterns for extending Scala --
embedded domain-specific languages, combining language features,
generic and meta-programming.

3.Formal techniques for Scala-like programs -- formalizations of the
language, type system, and semantics, formalizing proposed language
extensions and variants, dependent object types, type and effect
(Continue reading)

Miguel Garcia | 13 Jan 2010 10:39
Picon
Favicon

[ANN] a mind-refreshing experience: Scala to Java AST processing


After working my way in detective mode through the sources of the Scala 
compiler, I've put together a write-up [1] to re-launch the "Scala to Java 
Translator" project. The draft notes summarize (all!) previous work, discuss 
work-in-progress, and identify open issues. For better results, you may also 
want to check previous write-ups on the Scala compiler [2]. And, please 
consider contributing chapters of your own to this developing story.

Miguel

[1] Another backend for the Scala compiler (generating Java-like languages)
    http://www.sts.tu-harburg.de/people/mi.garcia/ScalaCompilerCorner/ScalaToJava.pdf

[2] The Scala Compiler Corner, 
http://www.sts.tu-harburg.de/people/mi.garcia/ScalaCompilerCorner/ 

Bill Burdick | 13 Jan 2010 11:48
Picon

Re: [ANN] a mind-refreshing experience: Scala to Java AST processing

This is great!



Bill


On Wed, Jan 13, 2010 at 11:39 AM, Miguel Garcia <miguel.garcia <at> tuhh.de> wrote:

After working my way in detective mode through the sources of the Scala compiler, I've put together a write-up [1] to re-launch the "Scala to Java Translator" project. The draft notes summarize (all!) previous work, discuss work-in-progress, and identify open issues. For better results, you may also want to check previous write-ups on the Scala compiler [2]. And, please consider contributing chapters of your own to this developing story.


Miguel

[1] Another backend for the Scala compiler (generating Java-like languages)
  http://www.sts.tu-harburg.de/people/mi.garcia/ScalaCompilerCorner/ScalaToJava.pdf

[2] The Scala Compiler Corner, http://www.sts.tu-harburg.de/people/mi.garcia/ScalaCompilerCorner/


Antonio Cunei | 20 Jan 2010 18:36
Picon
Picon
Favicon

Scala Days 2010 - Call for Speakers


Scala Days 2010 - Call for Speakers
====================================

Scala is a general purpose programming language designed to express
common programming patterns in a concise, elegant, and type-safe
way. It smoothly integrates features of object-oriented and
functional languages.

Scala Days is a forum for researchers and practitioners to share new
ideas and results of interest to the Scala community. Scala Days
2010 will be held at EPFL in Lausanne, Switzerland, on 15-16 April.

CALL FOR SPEAKERS
------------------

As part of Scala Days 2010, we will host a series of Technical
Talks, Experience Reports, and Tool Demonstrations. We invite
proposals from interested speakers who would like to present their
work experience with Scala, or give a demonstration of their project
or tool in front of a live audience; who would like to describe the
technical inner working of their Scala projects and the tools and
techniques they used to achieve their goals, or discuss Scala
technical topics of interest to the community.

We invite proposals for:

- Technical talks:
   - projects, tools, frameworks
   - programming techniques, libraries, compiler plugins,
     language extensions
   - other technical topics of interest to the Scala community

- Experience reports:
   - applications of Scala in industrial or academic contexts
   - language applications, DSLs, custom-designed libraries
   - integration in existing industrial environments
   - cost/benefit analyses, studies, results
   - experiences on Scala in education, teaching, research

- Demonstrations:
   - tools, applications, services, etc.
   - IDE integration, code development tools, programming facilities
   - interoperability with other languages or runtime environments
   - proofs of concept of projects in progress

To submit your proposal
------------------------

Please prepare an abstract of your talk (less than 1000 characters),
and submit it using the following link:

         http://days2010.scala-lang.org/node/add/submission

You may have to log in first; your usual Scala-lang account details
will work.

If you already submitted a complete paper to the First Scala
Workshop, you do not need to resubmit: your paper will be considered
for additional talks as well.

We will welcome submissions until 11 February 2010, and we will
notify all speakers by 17 February 2010.

We look forward to your proposals!

Important Dates
---------------

Proposals due:          Thursday, Feb 11, 2010 (24:00 in Apia, Samoa)
Notification:           Wednesday, Feb 17, 2010
Registration deadline:  Tuesday, Mar 30, 2010
Scala Days 2010:        Thu & Fri, Apr 15-16, 2010

Antonio Cunei | 27 Jan 2010 15:13
Picon
Picon
Favicon

Scala 2.8.0 Beta 1

After many months of hard work, the Scala Team is proud to release
the first beta of the much-awaited new Scala 2.8! Scala 2.8.0 Beta 1
is now available from our Download Page. It includes a huge number
of bug fixes with respect to 2.7.7, and many new features. This beta
is the foundation for the release of the upcoming final version
of 2.8.0, expected in a few months. You can download the Scala 2.8.0
Beta 1 pre-release from: http://www.scala-lang.org/downloads

The Scala 2.8.0 Beta distribution
=====================================

What is new?
============

The new Scala 2.8 codebase includes the following new fixes and features:

- Redesigned collection library

   The collection library has undergone a complete overhaul for Scala
   2.8, offering a more coherent and efficient design, while
   maintaining virtually complete compatibility with existing sources.
   Detailed information at: http://www.scala-lang.org/sid/3

- New array implementation, manifests for polymorphic arrays

   Handling of arrays has been simplified and optimized in Scala 2.8.
   The previous compiler magic has been replaced by a more systematic
   and predictable implementation in terms of implicit conversions.
   Full details at: http://www.scala-lang.org/sid/7

- Type specialization

   Scala 2.8 adds specialized type parameters, which enable the
   compiler to generate transparently multiple versions of a given
   definition, and to use the most specific version whenever the static
   type information at a call site allows it. Details at:
   http://www.scala-lang.org/sid/9

- Named and default arguments

   Named arguments improve the readability of method calls with many
   arguments. Default arguments reduce code duplication, and enable
   "copy" methods for case classes, useful to generate quickly modified
   copies of case classes. A complete description at:
   http://www.scala-lang.org/sid/1

- Package objects

   Packages can now contain besides classes and objects also methods,
   fields or type aliases. These are added to a package by declaring a
   package object. Package objects are still work in progress; more
   capabilities might come for 2.8 final or a release soon afterwards.

- Beefed up Scala Swing libraries, better documentation

   Components publish key events, input events can be consumed,
   refactored window subhierarchy, additional demos, Swing listeners
   are installed lazily, more complete component caching, minor
   refactorings, bugfixes, more Scaladocs. Design document at:
   http://www.scala-lang.org/sid/8

- Revamped REPL

   Many bugfixes. Tab-completion for all packages on the classpath, as
   well as object and instance methods and fields, including type
   aliases and package objects. Searchable history, integrated shell
   access, and a power mode which offers direct access to compiler
   internals.

- Implicits changes

   We have refined the implicit resolution process so that resolution
   is now able to determine type variables.

- Improved equality

   Equality across numeric types is to be consistent across all the
   primitives types, while also adhering to the equals/hashCode
   contract. Numeric comparisons will have the same results as they
   would between Java primitives. This is currently still being
   completed.

- Packrat parser combinators

   With support for packrat parsing, parser combinators are now able to
   handle left-recursive grammars and will show improved performance
   for ambiguous productions.

- Improved XML library

   Many bugfixes.

- Type constructor inference

   Type inference has been extended to deal with type constructors,
   so that, in certain cases, you can omit type parameter lists that
   contain higher-kinded types (aka type constructors, e.g., List).

- Improved Annotations

   Scala 2.8 adds support for nested java annotations. For annotations
   on fields, it is now possible to specify which synthetic members
   (getter / setter) will have the annotation. Documentation about
   Scala annotations can be found at: http://www.scala-lang.org/sid/5

- Enhanced actors

   New Reactors provide more lightweight, purely event-based actors
   with optional, implicit sender identification. Support for actors
   with daemon-style semantics was added. Actors can be configured to
   use the efficient JSR166y fork/join pool, resulting in significant
   performance improvements on 1.6 JVMs. Schedulers are now pluggable
   and easier to customize.

- Support for continuations

   Continuations are supported by a compiler plugin. This plugin is not
   included in this first beta, but will be added in subsequent
   releases.

Internal improvements
=====================

- New presentation compiler

   This new infrastructure, within the Scala compiler, enables IDEs to
   hook into the compiler to find efficiently information about the
   structure of the program under editing. This new code offers a
   better platform for the development of IDE plugins.

- New build manager

   The new feature used by for example Eclipse to detect intelligently
   changes in the files and compile only necessary Scala sources,
   instead of performing clean build on whole projects. This technique
   enables to significantly reduce the compilation time on bigger
   projects.

- Speed improvements

   The compiler now runs as optimised code. In addition, a number of
   improvements and fine-tunings have further improved the compiler
   speed up to 50%.

Bug fixes
=========

- Scala 2.8 includes a huge number of bug fixes; the main ones are
   listed at: http://www.scala-lang.org/node/299

Additional tools
================

- Scaladoc 2

   A new look-and-feel, automatic comments expansion and wiki-like
   syntax, as well as compile-time error checking. Read more about
   changes on the Scaladoc 2 mini-site at
   http://lampsvn.epfl.ch/trac/scala/wiki/Scaladoc

- Sbaz 2

   Sbaz includes many bug fixes and enhancements. It now gives better
   feedback to the user during lengthy downloads and while diagnosing
   dependency audits, which in turn have been re-factored and enhanced.
   Sbaz should work properly on Windows using either cmd or cygwin, and
   is now capable of reliably updating itself. Support for pack200 has
   been added, in some cases reducing file sizes up to 70%.

- Scalap

   A new Scalap, contributed by the community, is included. The new
   Scalap is aware of package objects and can decompile them by using
   <package_name>.package

- Scala IDE for Eclipse

   The IDE has been extensively reworked with much functionality moved
   into the Scala compiler where it can be better maintained and reused
   by non-Eclipse IDEs and other tools. The integration with Eclipse's
   JDT has been deepened, and much previously Scala-specific behaviour
   and functionality is now provided directly by the JDT leading to
   across the board improvements.

   During the beta preview period, the Scala IDE for Eclipse will be
   updated more frequently with respect to the main Scala beta
   releases. You can follow its development by using the following
   update site:

   http://www.scala-lang.org/scala-eclipse-plugin-beta-preview

   Please note that you must use this address as an update site within
   Eclipse as described on this page, it cannot be visited using your
   internet browser.

Acknowledgments and Thanks
==========================

Many members of the Scala community have helped us by fixing or
reporting bugs, contributing new code and tools (including some of
those listed above), and addressing user questions on the mailing
lists: their contributions help shaping the future of Scala day by
day.

- We would like to thank:

Paul Phillips, Miles Sabin, Ilya Sergey, Caoyuan Deng, James Matlik,
Frank Teubler, Kevin Wright, Manohar Jonnalagedda, Pedro Furlanetto,
Johannes Rudolph, Jason Zaugg, Seth Tisue, Ismael Juma, Mark Harrah,
Miguel Garcia, Colin Howe, Mirko Stocker, Spiros Tzavellas, Matt
Russell, David Taylor, and all the other frequent contributors to our
mailing lists, too many to list here. Thank you all!

The Scala Team at EPFL
======================

Martin Odersky, Lukas Rytz, Hubert Plociniczak, Iulian Dragos,
Gilles Dubochet, Philipp Haller, Aleksandar Prokopec, Antonio Cunei,
Tiark Rompf, Eugene Zouev, Donna Malayeri, Phil Bagwell, Adriaan
Moors, Ingo Maier.

Meredith Gregory | 28 Jan 2010 22:55
Picon
Gravatar

Re: [scala] Scala 2.8.0 Beta 1

Dear Rich,


i followed your blog instructions to the letter. Everything works up to building the continuations plugin, then we're missing a lib. See the trace below.

Best wishes,

--greg

bash-3.2$ ANT_OPTS=-Xmx512m ant test
Buildfile: build.xml

build.plugin:
    [mkdir] Created dir: /Users/lgm/work/src/devtools/scala/continuations/build/build.plugin
   [scalac] Compiling 5 source files to /Users/lgm/work/src/devtools/scala/continuations/build/build.plugin

pack.plugin:
    [mkdir] Created dir: /Users/lgm/work/src/devtools/scala/continuations/build/pack
      [jar] Building jar: /Users/lgm/work/src/devtools/scala/continuations/build/pack/selectivecps-plugin.jar

build.library:
    [mkdir] Created dir: /Users/lgm/work/src/devtools/scala/continuations/build/build.library
   [scalac] Compiling 11 source files to /Users/lgm/work/src/devtools/scala/continuations/build/build.library
   [scalac] error: error while loading ForkJoinPool, Missing dependency 'class java.util.concurrent.RunnableFuture', required by /Users/lgm/work/src/devtools/scala/continuations/lib/jsr166y.jar(jsr166y/ForkJoinPool.class)
   [scalac] one error found

BUILD FAILED
/Users/lgm/work/src/devtools/scala/continuations/build.xml:89: Compile failed with 1 error; see the compiler error output for details.

Total time: 13 seconds
bash-3.2$

On Wed, Jan 27, 2010 at 11:26 AM, Rich Dougherty <rich-vWrHE/hLzd+lVyrhU4qvOw@public.gmane.org> wrote:
On Thu, Jan 28, 2010 at 3:13 AM, Antonio Cunei <antonio.cunei-p8DiymsW2f8@public.gmane.org> wrote:
> - Support for continuations
>
>  Continuations are supported by a compiler plugin. This plugin is not
>  included in this first beta, but will be added in subsequent
>  releases.

For those who want to have a play with continuations, I've written
some instructions for building the plugin from source.

http://blog.richdougherty.com/2010/01/scala-280-beta-1-released.html

Thanks a lot to the Scala team for an excellent release.

Rich
--
Rich Dougherty
http://www.richdougherty.com/



--
L.G. Meredith
Managing Partner
Biosimilarity LLC
1219 NW 83rd St
Seattle, WA 98117

+1 206.650.3740

http://biosimilarity.blogspot.com
Mohamed Bana | 28 Jan 2010 23:18
Picon
Gravatar

Re: Re: [scala] Scala 2.8.0 Beta 1

i've attached my script that i run.  try it if you want.  the log is below.



% ./continuations.sh 
---                                      
updating from svn                        
---                                      
At revision 20719.                       
done updating                            
---                                      
---                                      
building                                 
---                                      
Buildfile: build.xml                     
  [taskdef] Could not load definitions from resource scala/tools/partest/antlib.xml. It could not be found.                                                 

clean.build:
   [delete] Deleting directory /home/mbana/scala/continuations/build/build.plugin                                                                           
   [delete] Deleting directory /home/mbana/scala/continuations/build/build.library                                                                          
   [delete] Deleting directory /home/mbana/scala/continuations/build/build.examples                                                                         

clean.pack:
   [delete] Deleting directory /home/mbana/scala/continuations/build/pack

clean.dist:

clean.doc:

clean.all:

clean:

BUILD SUCCESSFUL
Total time: 0 seconds
Buildfile: build.xml 
  [taskdef] Could not load definitions from resource scala/tools/partest/antlib.xml. It could not be found.                                                 

build.plugin:
    [mkdir] Created dir: /home/mbana/scala/continuations/build/build.plugin
   [scalac] Compiling 5 source files to /home/mbana/scala/continuations/build/build.plugin                                                                  

pack.plugin:
    [mkdir] Created dir: /home/mbana/scala/continuations/build/pack
      [jar] Building jar: /home/mbana/scala/continuations/build/pack/selectivecps-plugin.jar                                                                

build.library:
    [mkdir] Created dir: /home/mbana/scala/continuations/build/build.library
   [scalac] Compiling 11 source files to /home/mbana/scala/continuations/build/build.library                                                                
   [scalac] warning: there were deprecation warnings; re-run with -deprecation for details                                                                  
   [scalac] one warning found                                                 
   [scalac] Compile succeeded with 1 warning; see the compiler output for details.                                                                          

build.examples:
    [mkdir] Created dir: /home/mbana/scala/continuations/build/build.examples
   [scalac] Compiling 18 source files to /home/mbana/scala/continuations/build/build.examples                                                               
   [scalac] warning: there were deprecation warnings; re-run with -deprecation for details                                                                  
   [scalac] one warning found                                                 
   [scalac] Compile succeeded with 1 warning; see the compiler output for details.                                                                          

build.all:

test.partest:

BUILD FAILED
/home/mbana/scala/continuations/build.xml:125: Problem: failed to create task or type partest                                                               
Cause: The name is undefined.                                                 
Action: Check the spelling.                                                   
Action: Check that any custom tasks/types have been declared.                 
Action: Check that any <presetdef>/<macrodef> declarations have taken place.  


Total time: 27 seconds
done building         
---                   

---
making cps jar
---           
selectivecps-plugin.jar
done jar               
---                    
---                    
making cps-library jar 
---                    
added manifest         
adding: jsr166y/(in = 0) (out= 0)(stored 0%)
adding: jsr166y/FJTaskWrapper$.class(in = 959) (out= 531)(deflated 44%)
adding: jsr166y/FJTaskWrapper.class(in = 780) (out= 498)(deflated 36%) 
adding: scala/(in = 0) (out= 0)(stored 0%)                             
adding: scala/continuations/(in = 0) (out= 0)(stored 0%)               
adding: scala/continuations/Loops$.class(in = 2144) (out= 918)(deflated 57%)
adding: scala/continuations/Loops.class(in = 2039) (out= 1156)(deflated 43%)
adding: scala/continuations/ControlContext$$anonfun$flatMap$1.class(in = 1490) (out= 714)(deflated 52%)                                                     
adding: scala/continuations/Loops$SuspendableListView$$anonfun$foreach$2.class(in = 1439) (out= 671)(deflated 53%)                                          
adding: scala/continuations/Loops$$anonfun$loopWhile$1.class(in = 1317) (out= 644)(deflated 51%)                                                            
adding: scala/continuations/Loops$SuspendableListView$$anonfun$foreach$1.class(in = 1226) (out= 622)(deflated 49%)                                          
adding: scala/continuations/TaskScheduler.class(in = 1265) (out= 703)(deflated 44%)                                                                         
adding: scala/continuations/docps.class(in = 381) (out= 276)(deflated 27%)    
adding: scala/continuations/Loops$SuspendableListView$$anonfun$flatMap$2.class(in = 1522) (out= 679)(deflated 55%)                                          
adding: scala/continuations/Loops$SuspendableListView$$anonfun$flatMap$1.class(in = 1885) (out= 789)(deflated 58%)                                          
adding: scala/continuations/cps.class(in = 716) (out= 438)(deflated 38%)      
adding: scala/continuations/ControlContext$$anonfun$shiftUnitR$1.class(in = 1007) (out= 543)(deflated 46%)                                                  
adding: scala/continuations/ControlContext$$anonfun$reset$1.class(in = 727) (out= 432)(deflated 40%)                                                        
adding: scala/continuations/ControlContext$.class(in = 3249) (out= 1067)(deflated 67%)                                                                      
adding: scala/continuations/Loops$SuspendableListView$$anonfun$map$1.class(in = 1848) (out= 775)(deflated 58%)                                              
adding: scala/continuations/ControlContext$$anonfun$map$1.class(in = 1469) (out= 703)(deflated 52%)                                                         
adding: scala/continuations/Loops$$anon$1.class(in = 688) (out= 375)(deflated 45%)                                                                          
adding: scala/continuations/ControlContext$$anonfun$map$1$$anonfun$apply$1.class(in = 1271) (out= 629)(deflated 50%)                                        
adding: scala/continuations/cpsv.class(in = 523) (out= 360)(deflated 31%)     
adding: scala/continuations/uncps.class(in = 381) (out= 275)(deflated 27%)    
adding: scala/continuations/Loops$SuspendableListView$$anonfun$map$2.class(in = 1510) (out= 675)(deflated 55%)                                              
adding: scala/continuations/Loops$SuspendableListView$$anonfun$map$1$$anonfun$apply$1.class(in = 1570) (out= 714)(deflated 54%)                             
adding: scala/continuations/Loops$SuspendableListView.class(in = 3985) (out= 1161)(deflated 70%)
adding: scala/continuations/ControlContext$$anonfun$flatMap$1$$anonfun$apply$2.class(in = 1366) (out= 676)(deflated 50%)
adding: scala/continuations/ControlContext$$anonfun$run$1.class(in = 877) (out= 484)(deflated 44%)
adding: scala/continuations/TaskScheduler$.class(in = 1579) (out= 791)(deflated 49%)
adding: scala/continuations/Loops$SuspendableListView$$anonfun$flatMap$1$$anonfun$apply$2.class(in = 1743) (out= 766)(deflated 56%)
adding: scala/continuations/ControlContext.class(in = 5346) (out= 2064)(deflated 61%)
adding: scala/concurrent/(in = 0) (out= 0)(stored 0%)
adding: scala/concurrent/SimpleTaskRunners$class.class(in = 705) (out= 327)(deflated 53%)
adding: scala/concurrent/SimpleTaskRunners.class(in = 1061) (out= 628)(deflated 40%)
adding: scala/concurrent/ImmediateTaskRunners.class(in = 879) (out= 483)(deflated 45%)
adding: scala/concurrent/cpsops.class(in = 920) (out= 551)(deflated 40%)
adding: scala/concurrent/ImmediateTaskRunners$ImmediateTaskRunner.class(in = 1179) (out= 560)(deflated 52%)
adding: scala/concurrent/ThreadTaskRunners$class.class(in = 705) (out= 326)(deflated 53%)
adding: scala/concurrent/AbstractTaskRunner.class(in = 680) (out= 445)(deflated 34%)
adding: scala/concurrent/FJTaskRunners$FJTaskRunner$$anon$1.class(in = 911) (out= 485)(deflated 46%)
adding: scala/concurrent/FJTaskRunners$FJTaskRunner.class(in = 1811) (out= 892)(deflated 50%)
adding: scala/concurrent/cpsops$.class(in = 1011) (out= 518)(deflated 48%)
adding: scala/concurrent/ThreadTaskRunners$ThreadTaskRunner.class(in = 1269) (out= 589)(deflated 53%)
adding: scala/concurrent/TaskRunnersBase.class(in = 748) (out= 439)(deflated 41%)
adding: scala/concurrent/FJTaskRunners$class.class(in = 938) (out= 444)(deflated 52%)
adding: scala/concurrent/ThreadTaskRunners.class(in = 818) (out= 465)(deflated 43%)
adding: scala/concurrent/SimpleTaskRunners$SimpleTaskRunner.class(in = 2043) (out= 951)(deflated 53%)
adding: scala/concurrent/AbstractSequentialTaskRunner.class(in = 452) (out= 285)(deflated 36%)
adding: scala/concurrent/ImmediateTaskRunners$class.class(in = 738) (out= 329)(deflated 55%)
adding: scala/concurrent/ThreadTaskRunners$ThreadTaskRunner$$anon$1.class(in = 857) (out= 412)(deflated 51%)
adding: scala/concurrent/TaskRunnersBase$class.class(in = 590) (out= 318)(deflated 46%)
adding: scala/concurrent/FJTaskRunners.class(in = 938) (out= 579)(deflated 38%)
adding: scala/concurrent/cpsops$$anonfun$spawn$1.class(in = 1101) (out= 609)(deflated 44%)
cps.jar    scala-compiler.jar  scala-library.jar  scala-swing.jar
jline.jar  scala-dbc.jar       scalap.jar
done jar
---
---
compiling example
---
done example
---



—Mohamed


2010/1/28 Meredith Gregory <lgreg.meredith <at> gmail.com>
Dear Rich,

i followed your blog instructions to the letter. Everything works up to building the continuations plugin, then we're missing a lib. See the trace below.

Best wishes,

--greg

bash-3.2$ ANT_OPTS=-Xmx512m ant test
Buildfile: build.xml

build.plugin:
    [mkdir] Created dir: /Users/lgm/work/src/devtools/scala/continuations/build/build.plugin
   [scalac] Compiling 5 source files to /Users/lgm/work/src/devtools/scala/continuations/build/build.plugin

pack.plugin:
    [mkdir] Created dir: /Users/lgm/work/src/devtools/scala/continuations/build/pack
      [jar] Building jar: /Users/lgm/work/src/devtools/scala/continuations/build/pack/selectivecps-plugin.jar

build.library:
    [mkdir] Created dir: /Users/lgm/work/src/devtools/scala/continuations/build/build.library
   [scalac] Compiling 11 source files to /Users/lgm/work/src/devtools/scala/continuations/build/build.library
   [scalac] error: error while loading ForkJoinPool, Missing dependency 'class java.util.concurrent.RunnableFuture', required by /Users/lgm/work/src/devtools/scala/continuations/lib/jsr166y.jar(jsr166y/ForkJoinPool.class)
   [scalac] one error found

BUILD FAILED
/Users/lgm/work/src/devtools/scala/continuations/build.xml:89: Compile failed with 1 error; see the compiler error output for details.

Total time: 13 seconds
bash-3.2$

On Wed, Jan 27, 2010 at 11:26 AM, Rich Dougherty <rich-vWrHE/hLzd+lVyrhU4qvOw@public.gmane.org> wrote:
On Thu, Jan 28, 2010 at 3:13 AM, Antonio Cunei <antonio.cunei-p8DiymsW2f8@public.gmane.org> wrote:
> - Support for continuations
>
>  Continuations are supported by a compiler plugin. This plugin is not
>  included in this first beta, but will be added in subsequent
>  releases.

For those who want to have a play with continuations, I've written
some instructions for building the plugin from source.

http://blog.richdougherty.com/2010/01/scala-280-beta-1-released.html

Thanks a lot to the Scala team for an excellent release.

Rich
--
Rich Dougherty
http://www.richdougherty.com/



--
L.G. Meredith
Managing Partner
Biosimilarity LLC
1219 NW 83rd St
Seattle, WA 98117

+1 206.650.3740

http://biosimilarity.blogspot.com

Attachment (continuations.sh): application/x-sh, 884 bytes
Meredith Gregory | 28 Jan 2010 23:25
Picon
Gravatar

Re: Re: [scala] Scala 2.8.0 Beta 1

Dear Rich,


i found the problem. i'm not running java 1.6 by default, yet. When i switch to

bash-3.2$ env PATH=/Users/lgm/work/src/projex/biosimilarity/scala/build/pack/bin:/Users/lgm/work/src/devtools/javaSDK/soylatte16-1.0.2/bin:$PATH JAVA_HOME=/Users/lgm/work/src/devtools/javaSDK/soylatte16-1.0.2 ANT-OPTS=-Xmx1024m ant test

it works as advertised.

Best wishes,

--greg

On Thu, Jan 28, 2010 at 2:18 PM, Mohamed Bana <mohamed-8INxWZ5b4gz10XsdtD+oqA@public.gmane.org> wrote:
i've attached my script that i run.  try it if you want.  the log is below.


% ./continuations.sh 
---                                      
updating from svn                        
---                                      
At revision 20719.                       
done updating                            
---                                      
---                                      
building                                 
---                                      
Buildfile: build.xml                     
  [taskdef] Could not load definitions from resource scala/tools/partest/antlib.xml. It could not be found.                                                 

clean.build:
   [delete] Deleting directory /home/mbana/scala/continuations/build/build.plugin                                                                           
   [delete] Deleting directory /home/mbana/scala/continuations/build/build.library                                                                          
   [delete] Deleting directory /home/mbana/scala/continuations/build/build.examples                                                                         

clean.pack:
   [delete] Deleting directory /home/mbana/scala/continuations/build/pack

clean.dist:

clean.doc:

clean.all:

clean:

BUILD SUCCESSFUL
Total time: 0 seconds
Buildfile: build.xml 
  [taskdef] Could not load definitions from resource scala/tools/partest/antlib.xml. It could not be found.                                                 

build.plugin:
    [mkdir] Created dir: /home/mbana/scala/continuations/build/build.plugin
   [scalac] Compiling 5 source files to /home/mbana/scala/continuations/build/build.plugin                                                                  

pack.plugin:
    [mkdir] Created dir: /home/mbana/scala/continuations/build/pack
      [jar] Building jar: /home/mbana/scala/continuations/build/pack/selectivecps-plugin.jar                                                                

build.library:
    [mkdir] Created dir: /home/mbana/scala/continuations/build/build.library
   [scalac] Compiling 11 source files to /home/mbana/scala/continuations/build/build.library                                                                
   [scalac] warning: there were deprecation warnings; re-run with -deprecation for details                                                                  
   [scalac] one warning found                                                 
   [scalac] Compile succeeded with 1 warning; see the compiler output for details.                                                                          

build.examples:
    [mkdir] Created dir: /home/mbana/scala/continuations/build/build.examples
   [scalac] Compiling 18 source files to /home/mbana/scala/continuations/build/build.examples                                                               
   [scalac] warning: there were deprecation warnings; re-run with -deprecation for details                                                                  
   [scalac] one warning found                                                 
   [scalac] Compile succeeded with 1 warning; see the compiler output for details.                                                                          

build.all:

test.partest:

BUILD FAILED
/home/mbana/scala/continuations/build.xml:125: Problem: failed to create task or type partest                                                               
Cause: The name is undefined.                                                 
Action: Check the spelling.                                                   
Action: Check that any custom tasks/types have been declared.                 
Action: Check that any <presetdef>/<macrodef> declarations have taken place.  


Total time: 27 seconds
done building         
---                   

---
making cps jar
---           
selectivecps-plugin.jar
done jar               
---                    
---                    
making cps-library jar 
---                    
added manifest         
adding: jsr166y/(in = 0) (out= 0)(stored 0%)
adding: jsr166y/FJTaskWrapper$.class(in = 959) (out= 531)(deflated 44%)
adding: jsr166y/FJTaskWrapper.class(in = 780) (out= 498)(deflated 36%) 
adding: scala/(in = 0) (out= 0)(stored 0%)                             
adding: scala/continuations/(in = 0) (out= 0)(stored 0%)               
adding: scala/continuations/Loops$.class(in = 2144) (out= 918)(deflated 57%)
adding: scala/continuations/Loops.class(in = 2039) (out= 1156)(deflated 43%)
adding: scala/continuations/ControlContext$$anonfun$flatMap$1.class(in = 1490) (out= 714)(deflated 52%)                                                     
adding: scala/continuations/Loops$SuspendableListView$$anonfun$foreach$2.class(in = 1439) (out= 671)(deflated 53%)                                          
adding: scala/continuations/Loops$$anonfun$loopWhile$1.class(in = 1317) (out= 644)(deflated 51%)                                                            
adding: scala/continuations/Loops$SuspendableListView$$anonfun$foreach$1.class(in = 1226) (out= 622)(deflated 49%)                                          
adding: scala/continuations/TaskScheduler.class(in = 1265) (out= 703)(deflated 44%)                                                                         
adding: scala/continuations/docps.class(in = 381) (out= 276)(deflated 27%)    
adding: scala/continuations/Loops$SuspendableListView$$anonfun$flatMap$2.class(in = 1522) (out= 679)(deflated 55%)                                          
adding: scala/continuations/Loops$SuspendableListView$$anonfun$flatMap$1.class(in = 1885) (out= 789)(deflated 58%)                                          
adding: scala/continuations/cps.class(in = 716) (out= 438)(deflated 38%)      
adding: scala/continuations/ControlContext$$anonfun$shiftUnitR$1.class(in = 1007) (out= 543)(deflated 46%)                                                  
adding: scala/continuations/ControlContext$$anonfun$reset$1.class(in = 727) (out= 432)(deflated 40%)                                                        
adding: scala/continuations/ControlContext$.class(in = 3249) (out= 1067)(deflated 67%)                                                                      
adding: scala/continuations/Loops$SuspendableListView$$anonfun$map$1.class(in = 1848) (out= 775)(deflated 58%)                                              
adding: scala/continuations/ControlContext$$anonfun$map$1.class(in = 1469) (out= 703)(deflated 52%)                                                         
adding: scala/continuations/Loops$$anon$1.class(in = 688) (out= 375)(deflated 45%)                                                                          
adding: scala/continuations/ControlContext$$anonfun$map$1$$anonfun$apply$1.class(in = 1271) (out= 629)(deflated 50%)                                        
adding: scala/continuations/cpsv.class(in = 523) (out= 360)(deflated 31%)     
adding: scala/continuations/uncps.class(in = 381) (out= 275)(deflated 27%)    
adding: scala/continuations/Loops$SuspendableListView$$anonfun$map$2.class(in = 1510) (out= 675)(deflated 55%)                                              
adding: scala/continuations/Loops$SuspendableListView$$anonfun$map$1$$anonfun$apply$1.class(in = 1570) (out= 714)(deflated 54%)                             
adding: scala/continuations/Loops$SuspendableListView.class(in = 3985) (out= 1161)(deflated 70%)
adding: scala/continuations/ControlContext$$anonfun$flatMap$1$$anonfun$apply$2.class(in = 1366) (out= 676)(deflated 50%)
adding: scala/continuations/ControlContext$$anonfun$run$1.class(in = 877) (out= 484)(deflated 44%)
adding: scala/continuations/TaskScheduler$.class(in = 1579) (out= 791)(deflated 49%)
adding: scala/continuations/Loops$SuspendableListView$$anonfun$flatMap$1$$anonfun$apply$2.class(in = 1743) (out= 766)(deflated 56%)
adding: scala/continuations/ControlContext.class(in = 5346) (out= 2064)(deflated 61%)
adding: scala/concurrent/(in = 0) (out= 0)(stored 0%)
adding: scala/concurrent/SimpleTaskRunners$class.class(in = 705) (out= 327)(deflated 53%)
adding: scala/concurrent/SimpleTaskRunners.class(in = 1061) (out= 628)(deflated 40%)
adding: scala/concurrent/ImmediateTaskRunners.class(in = 879) (out= 483)(deflated 45%)
adding: scala/concurrent/cpsops.class(in = 920) (out= 551)(deflated 40%)
adding: scala/concurrent/ImmediateTaskRunners$ImmediateTaskRunner.class(in = 1179) (out= 560)(deflated 52%)
adding: scala/concurrent/ThreadTaskRunners$class.class(in = 705) (out= 326)(deflated 53%)
adding: scala/concurrent/AbstractTaskRunner.class(in = 680) (out= 445)(deflated 34%)
adding: scala/concurrent/FJTaskRunners$FJTaskRunner$$anon$1.class(in = 911) (out= 485)(deflated 46%)
adding: scala/concurrent/FJTaskRunners$FJTaskRunner.class(in = 1811) (out= 892)(deflated 50%)
adding: scala/concurrent/cpsops$.class(in = 1011) (out= 518)(deflated 48%)
adding: scala/concurrent/ThreadTaskRunners$ThreadTaskRunner.class(in = 1269) (out= 589)(deflated 53%)
adding: scala/concurrent/TaskRunnersBase.class(in = 748) (out= 439)(deflated 41%)
adding: scala/concurrent/FJTaskRunners$class.class(in = 938) (out= 444)(deflated 52%)
adding: scala/concurrent/ThreadTaskRunners.class(in = 818) (out= 465)(deflated 43%)
adding: scala/concurrent/SimpleTaskRunners$SimpleTaskRunner.class(in = 2043) (out= 951)(deflated 53%)
adding: scala/concurrent/AbstractSequentialTaskRunner.class(in = 452) (out= 285)(deflated 36%)
adding: scala/concurrent/ImmediateTaskRunners$class.class(in = 738) (out= 329)(deflated 55%)
adding: scala/concurrent/ThreadTaskRunners$ThreadTaskRunner$$anon$1.class(in = 857) (out= 412)(deflated 51%)
adding: scala/concurrent/TaskRunnersBase$class.class(in = 590) (out= 318)(deflated 46%)
adding: scala/concurrent/FJTaskRunners.class(in = 938) (out= 579)(deflated 38%)
adding: scala/concurrent/cpsops$$anonfun$spawn$1.class(in = 1101) (out= 609)(deflated 44%)
cps.jar    scala-compiler.jar  scala-library.jar  scala-swing.jar
jline.jar  scala-dbc.jar       scalap.jar
done jar
---
---
compiling example
---
done example
---



—Mohamed


2010/1/28 Meredith Gregory <lgreg.meredith-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>

Dear Rich,

i followed your blog instructions to the letter. Everything works up to building the continuations plugin, then we're missing a lib. See the trace below.

Best wishes,

--greg

bash-3.2$ ANT_OPTS=-Xmx512m ant test
Buildfile: build.xml

build.plugin:
    [mkdir] Created dir: /Users/lgm/work/src/devtools/scala/continuations/build/build.plugin
   [scalac] Compiling 5 source files to /Users/lgm/work/src/devtools/scala/continuations/build/build.plugin

pack.plugin:
    [mkdir] Created dir: /Users/lgm/work/src/devtools/scala/continuations/build/pack
      [jar] Building jar: /Users/lgm/work/src/devtools/scala/continuations/build/pack/selectivecps-plugin.jar

build.library:
    [mkdir] Created dir: /Users/lgm/work/src/devtools/scala/continuations/build/build.library
   [scalac] Compiling 11 source files to /Users/lgm/work/src/devtools/scala/continuations/build/build.library
   [scalac] error: error while loading ForkJoinPool, Missing dependency 'class java.util.concurrent.RunnableFuture', required by /Users/lgm/work/src/devtools/scala/continuations/lib/jsr166y.jar(jsr166y/ForkJoinPool.class)
   [scalac] one error found

BUILD FAILED
/Users/lgm/work/src/devtools/scala/continuations/build.xml:89: Compile failed with 1 error; see the compiler error output for details.

Total time: 13 seconds
bash-3.2$

On Wed, Jan 27, 2010 at 11:26 AM, Rich Dougherty <rich-vWrHE/hLzd+lVyrhU4qvOw@public.gmane.org> wrote:
On Thu, Jan 28, 2010 at 3:13 AM, Antonio Cunei <antonio.cunei-p8DiymsW2f8@public.gmane.org> wrote:
> - Support for continuations
>
>  Continuations are supported by a compiler plugin. This plugin is not
>  included in this first beta, but will be added in subsequent
>  releases.

For those who want to have a play with continuations, I've written
some instructions for building the plugin from source.

http://blog.richdougherty.com/2010/01/scala-280-beta-1-released.html

Thanks a lot to the Scala team for an excellent release.

Rich
--
Rich Dougherty
http://www.richdougherty.com/



--
L.G. Meredith
Managing Partner
Biosimilarity LLC
1219 NW 83rd St
Seattle, WA 98117

+1 206.650.3740

http://biosimilarity.blogspot.com




--
L.G. Meredith
Managing Partner
Biosimilarity LLC
1219 NW 83rd St
Seattle, WA 98117

+1 206.650.3740

http://biosimilarity.blogspot.com
john sullivan | 28 Jan 2010 23:35
Picon

Re: Re: [scala] Scala 2.8.0 Beta 1

I would be very pleased if this mailing list were reserved for announcements of new releases. Opinions?

On Thu, Jan 28, 2010 at 5:25 PM, Meredith Gregory <lgreg.meredith-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
Dear Rich,

i found the problem. i'm not running java 1.6 by default, yet. When i switch to

bash-3.2$ env PATH=/Users/lgm/work/src/projex/biosimilarity/scala/build/pack/bin:/Users/lgm/work/src/devtools/javaSDK/soylatte16-1.0.2/bin:$PATH JAVA_HOME=/Users/lgm/work/src/devtools/javaSDK/soylatte16-1.0.2 ANT-OPTS=-Xmx1024m ant test

it works as advertised.

Best wishes,

--greg


On Thu, Jan 28, 2010 at 2:18 PM, Mohamed Bana <mohamed-8INxWZ5b4gz10XsdtD+oqA@public.gmane.org> wrote:
i've attached my script that i run.  try it if you want.  the log is below.


% ./continuations.sh 
---                                      
updating from svn                        
---                                      
At revision 20719.                       
done updating                            
---                                      
---                                      
building                                 
---                                      
Buildfile: build.xml                     
  [taskdef] Could not load definitions from resource scala/tools/partest/antlib.xml. It could not be found.                                                 

clean.build:
   [delete] Deleting directory /home/mbana/scala/continuations/build/build.plugin                                                                           
   [delete] Deleting directory /home/mbana/scala/continuations/build/build.library                                                                          
   [delete] Deleting directory /home/mbana/scala/continuations/build/build.examples                                                                         

clean.pack:
   [delete] Deleting directory /home/mbana/scala/continuations/build/pack

clean.dist:

clean.doc:

clean.all:

clean:

BUILD SUCCESSFUL
Total time: 0 seconds
Buildfile: build.xml 
  [taskdef] Could not load definitions from resource scala/tools/partest/antlib.xml. It could not be found.                                                 

build.plugin:
    [mkdir] Created dir: /home/mbana/scala/continuations/build/build.plugin
   [scalac] Compiling 5 source files to /home/mbana/scala/continuations/build/build.plugin                                                                  

pack.plugin:
    [mkdir] Created dir: /home/mbana/scala/continuations/build/pack
      [jar] Building jar: /home/mbana/scala/continuations/build/pack/selectivecps-plugin.jar                                                                

build.library:
    [mkdir] Created dir: /home/mbana/scala/continuations/build/build.library
   [scalac] Compiling 11 source files to /home/mbana/scala/continuations/build/build.library                                                                
   [scalac] warning: there were deprecation warnings; re-run with -deprecation for details                                                                  
   [scalac] one warning found                                                 
   [scalac] Compile succeeded with 1 warning; see the compiler output for details.                                                                          

build.examples:
    [mkdir] Created dir: /home/mbana/scala/continuations/build/build.examples
   [scalac] Compiling 18 source files to /home/mbana/scala/continuations/build/build.examples                                                               
   [scalac] warning: there were deprecation warnings; re-run with -deprecation for details                                                                  
   [scalac] one warning found                                                 
   [scalac] Compile succeeded with 1 warning; see the compiler output for details.                                                                          

build.all:

test.partest:

BUILD FAILED
/home/mbana/scala/continuations/build.xml:125: Problem: failed to create task or type partest                                                               
Cause: The name is undefined.                                                 
Action: Check the spelling.                                                   
Action: Check that any custom tasks/types have been declared.                 
Action: Check that any <presetdef>/<macrodef> declarations have taken place.  


Total time: 27 seconds
done building         
---                   

---
making cps jar
---           
selectivecps-plugin.jar
done jar               
---                    
---                    
making cps-library jar 
---                    
added manifest         
adding: jsr166y/(in = 0) (out= 0)(stored 0%)
adding: jsr166y/FJTaskWrapper$.class(in = 959) (out= 531)(deflated 44%)
adding: jsr166y/FJTaskWrapper.class(in = 780) (out= 498)(deflated 36%) 
adding: scala/(in = 0) (out= 0)(stored 0%)                             
adding: scala/continuations/(in = 0) (out= 0)(stored 0%)               
adding: scala/continuations/Loops$.class(in = 2144) (out= 918)(deflated 57%)
adding: scala/continuations/Loops.class(in = 2039) (out= 1156)(deflated 43%)
adding: scala/continuations/ControlContext$$anonfun$flatMap$1.class(in = 1490) (out= 714)(deflated 52%)                                                     
adding: scala/continuations/Loops$SuspendableListView$$anonfun$foreach$2.class(in = 1439) (out= 671)(deflated 53%)                                          
adding: scala/continuations/Loops$$anonfun$loopWhile$1.class(in = 1317) (out= 644)(deflated 51%)                                                            
adding: scala/continuations/Loops$SuspendableListView$$anonfun$foreach$1.class(in = 1226) (out= 622)(deflated 49%)                                          
adding: scala/continuations/TaskScheduler.class(in = 1265) (out= 703)(deflated 44%)                                                                         
adding: scala/continuations/docps.class(in = 381) (out= 276)(deflated 27%)    
adding: scala/continuations/Loops$SuspendableListView$$anonfun$flatMap$2.class(in = 1522) (out= 679)(deflated 55%)                                          
adding: scala/continuations/Loops$SuspendableListView$$anonfun$flatMap$1.class(in = 1885) (out= 789)(deflated 58%)                                          
adding: scala/continuations/cps.class(in = 716) (out= 438)(deflated 38%)      
adding: scala/continuations/ControlContext$$anonfun$shiftUnitR$1.class(in = 1007) (out= 543)(deflated 46%)                                                  
adding: scala/continuations/ControlContext$$anonfun$reset$1.class(in = 727) (out= 432)(deflated 40%)                                                        
adding: scala/continuations/ControlContext$.class(in = 3249) (out= 1067)(deflated 67%)                                                                      
adding: scala/continuations/Loops$SuspendableListView$$anonfun$map$1.class(in = 1848) (out= 775)(deflated 58%)                                              
adding: scala/continuations/ControlContext$$anonfun$map$1.class(in = 1469) (out= 703)(deflated 52%)                                                         
adding: scala/continuations/Loops$$anon$1.class(in = 688) (out= 375)(deflated 45%)                                                                          
adding: scala/continuations/ControlContext$$anonfun$map$1$$anonfun$apply$1.class(in = 1271) (out= 629)(deflated 50%)                                        
adding: scala/continuations/cpsv.class(in = 523) (out= 360)(deflated 31%)     
adding: scala/continuations/uncps.class(in = 381) (out= 275)(deflated 27%)    
adding: scala/continuations/Loops$SuspendableListView$$anonfun$map$2.class(in = 1510) (out= 675)(deflated 55%)                                              
adding: scala/continuations/Loops$SuspendableListView$$anonfun$map$1$$anonfun$apply$1.class(in = 1570) (out= 714)(deflated 54%)                             
adding: scala/continuations/Loops$SuspendableListView.class(in = 3985) (out= 1161)(deflated 70%)
adding: scala/continuations/ControlContext$$anonfun$flatMap$1$$anonfun$apply$2.class(in = 1366) (out= 676)(deflated 50%)
adding: scala/continuations/ControlContext$$anonfun$run$1.class(in = 877) (out= 484)(deflated 44%)
adding: scala/continuations/TaskScheduler$.class(in = 1579) (out= 791)(deflated 49%)
adding: scala/continuations/Loops$SuspendableListView$$anonfun$flatMap$1$$anonfun$apply$2.class(in = 1743) (out= 766)(deflated 56%)
adding: scala/continuations/ControlContext.class(in = 5346) (out= 2064)(deflated 61%)
adding: scala/concurrent/(in = 0) (out= 0)(stored 0%)
adding: scala/concurrent/SimpleTaskRunners$class.class(in = 705) (out= 327)(deflated 53%)
adding: scala/concurrent/SimpleTaskRunners.class(in = 1061) (out= 628)(deflated 40%)
adding: scala/concurrent/ImmediateTaskRunners.class(in = 879) (out= 483)(deflated 45%)
adding: scala/concurrent/cpsops.class(in = 920) (out= 551)(deflated 40%)
adding: scala/concurrent/ImmediateTaskRunners$ImmediateTaskRunner.class(in = 1179) (out= 560)(deflated 52%)
adding: scala/concurrent/ThreadTaskRunners$class.class(in = 705) (out= 326)(deflated 53%)
adding: scala/concurrent/AbstractTaskRunner.class(in = 680) (out= 445)(deflated 34%)
adding: scala/concurrent/FJTaskRunners$FJTaskRunner$$anon$1.class(in = 911) (out= 485)(deflated 46%)
adding: scala/concurrent/FJTaskRunners$FJTaskRunner.class(in = 1811) (out= 892)(deflated 50%)
adding: scala/concurrent/cpsops$.class(in = 1011) (out= 518)(deflated 48%)
adding: scala/concurrent/ThreadTaskRunners$ThreadTaskRunner.class(in = 1269) (out= 589)(deflated 53%)
adding: scala/concurrent/TaskRunnersBase.class(in = 748) (out= 439)(deflated 41%)
adding: scala/concurrent/FJTaskRunners$class.class(in = 938) (out= 444)(deflated 52%)
adding: scala/concurrent/ThreadTaskRunners.class(in = 818) (out= 465)(deflated 43%)
adding: scala/concurrent/SimpleTaskRunners$SimpleTaskRunner.class(in = 2043) (out= 951)(deflated 53%)
adding: scala/concurrent/AbstractSequentialTaskRunner.class(in = 452) (out= 285)(deflated 36%)
adding: scala/concurrent/ImmediateTaskRunners$class.class(in = 738) (out= 329)(deflated 55%)
adding: scala/concurrent/ThreadTaskRunners$ThreadTaskRunner$$anon$1.class(in = 857) (out= 412)(deflated 51%)
adding: scala/concurrent/TaskRunnersBase$class.class(in = 590) (out= 318)(deflated 46%)
adding: scala/concurrent/FJTaskRunners.class(in = 938) (out= 579)(deflated 38%)
adding: scala/concurrent/cpsops$$anonfun$spawn$1.class(in = 1101) (out= 609)(deflated 44%)
cps.jar    scala-compiler.jar  scala-library.jar  scala-swing.jar
jline.jar  scala-dbc.jar       scalap.jar
done jar
---
---
compiling example
---
done example
---



—Mohamed


2010/1/28 Meredith Gregory <lgreg.meredith-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>

Dear Rich,

i followed your blog instructions to the letter. Everything works up to building the continuations plugin, then we're missing a lib. See the trace below.

Best wishes,

--greg

bash-3.2$ ANT_OPTS=-Xmx512m ant test
Buildfile: build.xml

build.plugin:
    [mkdir] Created dir: /Users/lgm/work/src/devtools/scala/continuations/build/build.plugin
   [scalac] Compiling 5 source files to /Users/lgm/work/src/devtools/scala/continuations/build/build.plugin

pack.plugin:
    [mkdir] Created dir: /Users/lgm/work/src/devtools/scala/continuations/build/pack
      [jar] Building jar: /Users/lgm/work/src/devtools/scala/continuations/build/pack/selectivecps-plugin.jar

build.library:
    [mkdir] Created dir: /Users/lgm/work/src/devtools/scala/continuations/build/build.library
   [scalac] Compiling 11 source files to /Users/lgm/work/src/devtools/scala/continuations/build/build.library
   [scalac] error: error while loading ForkJoinPool, Missing dependency 'class java.util.concurrent.RunnableFuture', required by /Users/lgm/work/src/devtools/scala/continuations/lib/jsr166y.jar(jsr166y/ForkJoinPool.class)
   [scalac] one error found

BUILD FAILED
/Users/lgm/work/src/devtools/scala/continuations/build.xml:89: Compile failed with 1 error; see the compiler error output for details.

Total time: 13 seconds
bash-3.2$

On Wed, Jan 27, 2010 at 11:26 AM, Rich Dougherty <rich-vWrHE/hLzd+lVyrhU4qvOw@public.gmane.org> wrote:
On Thu, Jan 28, 2010 at 3:13 AM, Antonio Cunei <antonio.cunei-p8DiymsW2f8@public.gmane.org> wrote:
> - Support for continuations
>
>  Continuations are supported by a compiler plugin. This plugin is not
>  included in this first beta, but will be added in subsequent
>  releases.

For those who want to have a play with continuations, I've written
some instructions for building the plugin from source.

http://blog.richdougherty.com/2010/01/scala-280-beta-1-released.html

Thanks a lot to the Scala team for an excellent release.

Rich
--
Rich Dougherty
http://www.richdougherty.com/



--
L.G. Meredith
Managing Partner
Biosimilarity LLC
1219 NW 83rd St
Seattle, WA 98117

+1 206.650.3740

http://biosimilarity.blogspot.com




--
L.G. Meredith
Managing Partner
Biosimilarity LLC
1219 NW 83rd St
Seattle, WA 98117

+1 206.650.3740

http://biosimilarity.blogspot.com



--
"The mutual-aid tendency in man has so remote an origin, and is so deeply interwoven with all the past evolution of the human race, that is has been maintained by mankind up to the present time, notwithstanding all vicissitudes of history."

-Peter Kropotkin, Mutual Aid, 1902
Kenji Matsuoka | 28 Jan 2010 23:39
Picon

Re: Re: [scala] Scala 2.8.0 Beta 1

I'd agree, but since this list is reserved for announcements, I'll
have to hold my tongue.

Kenji

On Thu, Jan 28, 2010 at 2:35 PM, john sullivan
<sullymandias@...> wrote:
> I would be very pleased if this mailing list were reserved for announcements
> of new releases. Opinions?
>
> On Thu, Jan 28, 2010 at 5:25 PM, Meredith Gregory <lgreg.meredith <at> gmail.com>
> wrote:
>>
>> Dear Rich,
>> i found the problem. i'm not running java 1.6 by default, yet. When i
>> switch to
>> bash-3.2$ env
>> PATH=/Users/lgm/work/src/projex/biosimilarity/scala/build/pack/bin:/Users/lgm/work/src/devtools/javaSDK/soylatte16-1.0.2/bin:$PATH
>> JAVA_HOME=/Users/lgm/work/src/devtools/javaSDK/soylatte16-1.0.2
>> ANT-OPTS=-Xmx1024m ant test
>> it works as advertised.
>> Best wishes,
>> --greg
>>
>> On Thu, Jan 28, 2010 at 2:18 PM, Mohamed Bana <mohamed@...> wrote:
>>>
>>> i've attached my script that i run.  try it if you want.  the log is
>>> below.
>>>
>>> % ./continuations.sh
>>> ---
>>> updating from svn
>>> ---
>>> At revision 20719.
>>> done updating
>>> ---
>>> ---
>>> building
>>> ---
>>> Buildfile: build.xml
>>>   [taskdef] Could not load definitions from resource
>>> scala/tools/partest/antlib.xml. It could not be found.
>>>
>>> clean.build:
>>>    [delete] Deleting directory
>>> /home/mbana/scala/continuations/build/build.plugin
>>>
>>>    [delete] Deleting directory
>>> /home/mbana/scala/continuations/build/build.library
>>>
>>>    [delete] Deleting directory
>>> /home/mbana/scala/continuations/build/build.examples
>>>
>>> clean.pack:
>>>    [delete] Deleting directory /home/mbana/scala/continuations/build/pack
>>> clean.dist:
>>> clean.doc:
>>> clean.all:
>>> clean:
>>> BUILD SUCCESSFUL
>>> Total time: 0 seconds
>>> Buildfile: build.xml
>>>   [taskdef] Could not load definitions from resource
>>> scala/tools/partest/antlib.xml. It could not be found.
>>>
>>> build.plugin:
>>>     [mkdir] Created dir:
>>> /home/mbana/scala/continuations/build/build.plugin
>>>    [scalac] Compiling 5 source files to
>>> /home/mbana/scala/continuations/build/build.plugin
>>>
>>> pack.plugin:
>>>     [mkdir] Created dir: /home/mbana/scala/continuations/build/pack
>>>       [jar] Building jar:
>>> /home/mbana/scala/continuations/build/pack/selectivecps-plugin.jar
>>>
>>> build.library:
>>>     [mkdir] Created dir:
>>> /home/mbana/scala/continuations/build/build.library
>>>    [scalac] Compiling 11 source files to
>>> /home/mbana/scala/continuations/build/build.library
>>>
>>>    [scalac] warning: there were deprecation warnings; re-run with
>>> -deprecation for details
>>>
>>>    [scalac] one warning found
>>>
>>>    [scalac] Compile succeeded with 1 warning; see the compiler output for
>>> details.
>>>
>>> build.examples:
>>>     [mkdir] Created dir:
>>> /home/mbana/scala/continuations/build/build.examples
>>>    [scalac] Compiling 18 source files to
>>> /home/mbana/scala/continuations/build/build.examples
>>>
>>>    [scalac] warning: there were deprecation warnings; re-run with
>>> -deprecation for details
>>>
>>>    [scalac] one warning found
>>>
>>>    [scalac] Compile succeeded with 1 warning; see the compiler output for
>>> details.
>>>
>>> build.all:
>>> test.partest:
>>> BUILD FAILED
>>> /home/mbana/scala/continuations/build.xml:125: Problem: failed to create
>>> task or type partest
>>>
>>> Cause: The name is undefined.
>>>
>>> Action: Check the spelling.
>>>
>>> Action: Check that any custom tasks/types have been declared.
>>>
>>> Action: Check that any <presetdef>/<macrodef> declarations have taken
>>> place.
>>>
>>> Total time: 27 seconds
>>> done building
>>> ---
>>> ---
>>> making cps jar
>>> ---
>>> selectivecps-plugin.jar
>>> done jar
>>> ---
>>> ---
>>> making cps-library jar
>>> ---
>>> added manifest
>>> adding: jsr166y/(in = 0) (out= 0)(stored 0%)
>>> adding: jsr166y/FJTaskWrapper$.class(in = 959) (out= 531)(deflated 44%)
>>> adding: jsr166y/FJTaskWrapper.class(in = 780) (out= 498)(deflated 36%)
>>> adding: scala/(in = 0) (out= 0)(stored 0%)
>>> adding: scala/continuations/(in = 0) (out= 0)(stored 0%)
>>> adding: scala/continuations/Loops$.class(in = 2144) (out= 918)(deflated
>>> 57%)
>>> adding: scala/continuations/Loops.class(in = 2039) (out= 1156)(deflated
>>> 43%)
>>> adding: scala/continuations/ControlContext$$anonfun$flatMap$1.class(in =
>>> 1490) (out= 714)(deflated 52%)
>>>
>>> adding:
>>> scala/continuations/Loops$SuspendableListView$$anonfun$foreach$2.class(in =
>>> 1439) (out= 671)(deflated 53%)
>>> adding: scala/continuations/Loops$$anonfun$loopWhile$1.class(in = 1317)
>>> (out= 644)(deflated 51%)
>>>
>>> adding:
>>> scala/continuations/Loops$SuspendableListView$$anonfun$foreach$1.class(in =
>>> 1226) (out= 622)(deflated 49%)
>>> adding: scala/continuations/TaskScheduler.class(in = 1265) (out=
>>> 703)(deflated 44%)
>>>
>>> adding: scala/continuations/docps.class(in = 381) (out= 276)(deflated
>>> 27%)
>>> adding:
>>> scala/continuations/Loops$SuspendableListView$$anonfun$flatMap$2.class(in =
>>> 1522) (out= 679)(deflated 55%)
>>> adding:
>>> scala/continuations/Loops$SuspendableListView$$anonfun$flatMap$1.class(in =
>>> 1885) (out= 789)(deflated 58%)
>>> adding: scala/continuations/cps.class(in = 716) (out= 438)(deflated 38%)
>>>
>>> adding: scala/continuations/ControlContext$$anonfun$shiftUnitR$1.class(in
>>> = 1007) (out= 543)(deflated 46%)
>>>
>>> adding: scala/continuations/ControlContext$$anonfun$reset$1.class(in =
>>> 727) (out= 432)(deflated 40%)
>>>
>>> adding: scala/continuations/ControlContext$.class(in = 3249) (out=
>>> 1067)(deflated 67%)
>>>
>>> adding:
>>> scala/continuations/Loops$SuspendableListView$$anonfun$map$1.class(in =
>>> 1848) (out= 775)(deflated 58%)
>>> adding: scala/continuations/ControlContext$$anonfun$map$1.class(in =
>>> 1469) (out= 703)(deflated 52%)
>>>
>>> adding: scala/continuations/Loops$$anon$1.class(in = 688) (out=
>>> 375)(deflated 45%)
>>>
>>> adding:
>>> scala/continuations/ControlContext$$anonfun$map$1$$anonfun$apply$1.class(in
>>> = 1271) (out= 629)(deflated 50%)
>>> adding: scala/continuations/cpsv.class(in = 523) (out= 360)(deflated 31%)
>>>
>>> adding: scala/continuations/uncps.class(in = 381) (out= 275)(deflated
>>> 27%)
>>> adding:
>>> scala/continuations/Loops$SuspendableListView$$anonfun$map$2.class(in =
>>> 1510) (out= 675)(deflated 55%)
>>> adding:
>>> scala/continuations/Loops$SuspendableListView$$anonfun$map$1$$anonfun$apply$1.class(in
>>> = 1570) (out= 714)(deflated 54%)
>>> adding: scala/continuations/Loops$SuspendableListView.class(in = 3985)
>>> (out= 1161)(deflated 70%)
>>> adding:
>>> scala/continuations/ControlContext$$anonfun$flatMap$1$$anonfun$apply$2.class(in
>>> = 1366) (out= 676)(deflated 50%)
>>> adding: scala/continuations/ControlContext$$anonfun$run$1.class(in = 877)
>>> (out= 484)(deflated 44%)
>>> adding: scala/continuations/TaskScheduler$.class(in = 1579) (out=
>>> 791)(deflated 49%)
>>> adding:
>>> scala/continuations/Loops$SuspendableListView$$anonfun$flatMap$1$$anonfun$apply$2.class(in
>>> = 1743) (out= 766)(deflated 56%)
>>> adding: scala/continuations/ControlContext.class(in = 5346) (out=
>>> 2064)(deflated 61%)
>>> adding: scala/concurrent/(in = 0) (out= 0)(stored 0%)
>>> adding: scala/concurrent/SimpleTaskRunners$class.class(in = 705) (out=
>>> 327)(deflated 53%)
>>> adding: scala/concurrent/SimpleTaskRunners.class(in = 1061) (out=
>>> 628)(deflated 40%)
>>> adding: scala/concurrent/ImmediateTaskRunners.class(in = 879) (out=
>>> 483)(deflated 45%)
>>> adding: scala/concurrent/cpsops.class(in = 920) (out= 551)(deflated 40%)
>>> adding:
>>> scala/concurrent/ImmediateTaskRunners$ImmediateTaskRunner.class(in = 1179)
>>> (out= 560)(deflated 52%)
>>> adding: scala/concurrent/ThreadTaskRunners$class.class(in = 705) (out=
>>> 326)(deflated 53%)
>>> adding: scala/concurrent/AbstractTaskRunner.class(in = 680) (out=
>>> 445)(deflated 34%)
>>> adding: scala/concurrent/FJTaskRunners$FJTaskRunner$$anon$1.class(in =
>>> 911) (out= 485)(deflated 46%)
>>> adding: scala/concurrent/FJTaskRunners$FJTaskRunner.class(in = 1811)
>>> (out= 892)(deflated 50%)
>>> adding: scala/concurrent/cpsops$.class(in = 1011) (out= 518)(deflated
>>> 48%)
>>> adding: scala/concurrent/ThreadTaskRunners$ThreadTaskRunner.class(in =
>>> 1269) (out= 589)(deflated 53%)
>>> adding: scala/concurrent/TaskRunnersBase.class(in = 748) (out=
>>> 439)(deflated 41%)
>>> adding: scala/concurrent/FJTaskRunners$class.class(in = 938) (out=
>>> 444)(deflated 52%)
>>> adding: scala/concurrent/ThreadTaskRunners.class(in = 818) (out=
>>> 465)(deflated 43%)
>>> adding: scala/concurrent/SimpleTaskRunners$SimpleTaskRunner.class(in =
>>> 2043) (out= 951)(deflated 53%)
>>> adding: scala/concurrent/AbstractSequentialTaskRunner.class(in = 452)
>>> (out= 285)(deflated 36%)
>>> adding: scala/concurrent/ImmediateTaskRunners$class.class(in = 738) (out=
>>> 329)(deflated 55%)
>>> adding:
>>> scala/concurrent/ThreadTaskRunners$ThreadTaskRunner$$anon$1.class(in = 857)
>>> (out= 412)(deflated 51%)
>>> adding: scala/concurrent/TaskRunnersBase$class.class(in = 590) (out=
>>> 318)(deflated 46%)
>>> adding: scala/concurrent/FJTaskRunners.class(in = 938) (out=
>>> 579)(deflated 38%)
>>> adding: scala/concurrent/cpsops$$anonfun$spawn$1.class(in = 1101) (out=
>>> 609)(deflated 44%)
>>> cps.jar    scala-compiler.jar  scala-library.jar  scala-swing.jar
>>> jline.jar  scala-dbc.jar       scalap.jar
>>> done jar
>>> ---
>>> ---
>>> compiling example
>>> ---
>>> done example
>>> ---
>>>
>>>
>>> —Mohamed
>>>
>>>
>>> 2010/1/28 Meredith Gregory <lgreg.meredith@...>
>>>>
>>>> Dear Rich,
>>>> i followed your blog instructions to the letter. Everything works up to
>>>> building the continuations plugin, then we're missing a lib. See the trace
>>>> below.
>>>> Best wishes,
>>>> --greg
>>>> bash-3.2$ ANT_OPTS=-Xmx512m ant test
>>>> Buildfile: build.xml
>>>> build.plugin:
>>>>     [mkdir] Created dir:
>>>> /Users/lgm/work/src/devtools/scala/continuations/build/build.plugin
>>>>    [scalac] Compiling 5 source files to
>>>> /Users/lgm/work/src/devtools/scala/continuations/build/build.plugin
>>>> pack.plugin:
>>>>     [mkdir] Created dir:
>>>> /Users/lgm/work/src/devtools/scala/continuations/build/pack
>>>>       [jar] Building jar:
>>>> /Users/lgm/work/src/devtools/scala/continuations/build/pack/selectivecps-plugin.jar
>>>> build.library:
>>>>     [mkdir] Created dir:
>>>> /Users/lgm/work/src/devtools/scala/continuations/build/build.library
>>>>    [scalac] Compiling 11 source files to
>>>> /Users/lgm/work/src/devtools/scala/continuations/build/build.library
>>>>    [scalac] error: error while loading ForkJoinPool, Missing dependency
>>>> 'class java.util.concurrent.RunnableFuture', required by
>>>> /Users/lgm/work/src/devtools/scala/continuations/lib/jsr166y.jar(jsr166y/ForkJoinPool.class)
>>>>    [scalac] one error found
>>>> BUILD FAILED
>>>> /Users/lgm/work/src/devtools/scala/continuations/build.xml:89: Compile
>>>> failed with 1 error; see the compiler error output for details.
>>>> Total time: 13 seconds
>>>> bash-3.2$
>>>> On Wed, Jan 27, 2010 at 11:26 AM, Rich Dougherty <rich@...> wrote:
>>>>>
>>>>> On Thu, Jan 28, 2010 at 3:13 AM, Antonio Cunei <antonio.cunei@...>
>>>>> wrote:
>>>>> > - Support for continuations
>>>>> >
>>>>> >  Continuations are supported by a compiler plugin. This plugin is not
>>>>> >  included in this first beta, but will be added in subsequent
>>>>> >  releases.
>>>>>
>>>>> For those who want to have a play with continuations, I've written
>>>>> some instructions for building the plugin from source.
>>>>>
>>>>> http://blog.richdougherty.com/2010/01/scala-280-beta-1-released.html
>>>>>
>>>>> Thanks a lot to the Scala team for an excellent release.
>>>>>
>>>>> Rich
>>>>> --
>>>>> Rich Dougherty
>>>>> http://www.richdougherty.com/
>>>>
>>>>
>>>>
>>>> --
>>>> L.G. Meredith
>>>> Managing Partner
>>>> Biosimilarity LLC
>>>> 1219 NW 83rd St
>>>> Seattle, WA 98117
>>>>
>>>> +1 206.650.3740
>>>>
>>>> http://biosimilarity.blogspot.com
>>>
>>
>>
>>
>> --
>> L.G. Meredith
>> Managing Partner
>> Biosimilarity LLC
>> 1219 NW 83rd St
>> Seattle, WA 98117
>>
>> +1 206.650.3740
>>
>> http://biosimilarity.blogspot.com
>
>
>
> --
> "The mutual-aid tendency in man has so remote an origin, and is so deeply
> interwoven with all the past evolution of the human race, that is has been
> maintained by mankind up to the present time, notwithstanding all
> vicissitudes of history."
>
> -Peter Kropotkin, Mutual Aid, 1902
>


Gmane