Re: [Chicken-users] wrong number of arguments to continuation when escaping?

2019-07-17 Thread Peter Bex
On Thu, Jul 18, 2019 at 06:43:06AM +0200, Marco Maggi wrote:
> I do not understand why some place expects 1 argument.  The problem goes
> away if I replace:
> 
>(escape)
> 
> with:
> 
>(escape 1)

Hi Marco,

This is a known "issue", see #1390 and #1601.  Improving this so
that such non-explicit "value" continuations accept different argument
counts would have a big impact on performance because every single
continuation would then need to start checking its argument count.

It's unfortunate, but easy to fix; just use something like "receive"
or "call-with-values" to explicitly allow the continuation to handle
multiple values.

Cheers,
Peter


signature.asc
Description: PGP signature
___
Chicken-users mailing list
Chicken-users@nongnu.org
https://lists.nongnu.org/mailman/listinfo/chicken-users


[Chicken-users] wrong number of arguments to continuation when escaping?

2019-07-17 Thread Marco Maggi
Ciao,

  let's look at this script:

(import (scheme)
(chicken pretty-print))
(define (doit)
  (call-with-current-continuation
  (lambda (escape)
  (pretty-print 'before)
  (pretty-print escape)
  (escape)
  (pretty-print 'after)
  (values
(doit)

I compile and run it under CHICKEN 5.1.0:

$ csc -O1 -o demo demo.scm && ./demo
before
#

Error: bad argument count - received 0 but expected 1

Call history:

demo.scm:33: doit
demo.scm:25: scheme#call-with-current-continuation
demo.scm:27: chicken.pretty-print#pretty-print
demo.scm:28: chicken.pretty-print#pretty-print
demo.scm:29: escape <--

I do not understand why some place expects 1 argument.  The problem goes
away if I replace:

   (escape)

with:

   (escape 1)

TIA
-- 
Marco Maggi

___
Chicken-users mailing list
Chicken-users@nongnu.org
https://lists.nongnu.org/mailman/listinfo/chicken-users


[Chicken-users] Second Call for Participation: ICFP 2019

2019-07-17 Thread Sam Tobin-Hochstadt via Chicken-users
** The Early Registration deadline is tomorrow! **

=

Call for Participation

ICFP 2019
24th ACM SIGPLAN International Conference on Functional Programming
and affiliated events

August 18 - August 23, 2019
Berlin, Germany
http://icfp19.sigplan.org/

Early Registration until July 18!

=

ICFP provides a forum for researchers and developers to hear
about the latest work on the design, implementations, principles, and
uses of functional programming. The conference covers the entire
spectrum of work, from practice to theory, including its peripheries.

This year, ICFP is co-located with BOBKonf!

  * Overview and affiliated events:
http://icfp19.sigplan.org/home

  * Program:
http://icfp19.sigplan.org/program/program-icfp-2019

  * Accepted papers:
http://icfp19.sigplan.org/track/icfp-2019-papers

  * Registration is available via:
https://regmaster4.com/2019conf/ICFP19/register.php
Early registration ends 18 July, 2019.

  * Programming contest:
https://icfpcontest2019.github.io/

  * Student Research Competition:
https://icfp19.sigplan.org/track/icfp-2019-Student-Research-Competition

  * Follow us on Twitter for the latest news:
http://twitter.com/icfp_conference

In addition to BOBKonf (8/21), there are several events co-located with ICFP:

  * Erlang Workshop (8/18)
  * Functional Art, Music, Modeling and Design (8/23)
  * Functional High-Performance and Numerical Computing (8/18)
  * Haskell Implementors' Workshop (8/23)
  * Haskell Symposium (8/22-8/23)
  * miniKanren Workshop (8/22)
  * ML Family Workshop (8/22)
  * OCaml Workshop (8/23)
  * Programming Languages Mentoring Workshop (8/18)
  * Scheme Workshop (8/18)
  * Type-Driven Development (8/18)

### ICFP Organizers

General Chair: Derek Dreyer (MPI-SWS, Germany)

Artifact Evaluation Co-Chairs: Simon Marlow (Facebook, UK)
Industrial Relations Chair: Alan Jeffrey (Mozilla Research, USA)
Programming Contest Organiser: Ilya Sergey (Yale-NUS College, Singapore)
Publicity and Web Chair: Sam Tobin-Hochstadt (Indiana University, USA)
Student Research Competition Chair: William J. Bowman (University of British 
Columbia, Canada)
Workshops Co-Chair: Christophe Scholliers (Universiteit Gent, Belgium)
Jennifer Hackett (University of Nottingham, UK)
Conference Manager: Annabel Satin (P.C.K.)


### PACMPL Volume 3, Issue ICFP 2019

Principal Editor: François Pottier (Inria, France)

Review Committee:

Lennart Beringer (Princeton University, United States)
Joachim Breitner (DFINITY Foundation, Germany)
Laura M. Castro (University of A Coruña, Spain)
Ezgi Çiçek (Facebook London, United Kingdom)
Pierre-Evariste Dagand (LIP6/CNRS, France)
Christos Dimoulas (Northwestern University, United States)
Jacques-Henri Jourdan (CNRS, LRI, Université Paris-Sud, France)
Andrew Kennedy (Facebook London, United Kingdom)
Daan Leijen (Microsoft Research, United States)
Kazutaka Matsuda (Tohoku University, Japan)
Bruno C. d. S. Oliveira (University of Hong Kong, China)
Klaus Ostermann (University of Tübingen, Germany)
Jennifer Paykin (Galois, United States)
Frank Pfenning (Carnegie Mellon University, USA)
Mike Rainey (Indiana University, USA)
Chung-chieh Shan (Indiana University, USA)
Sam Staton (University of Oxford, UK)
Pierre-Yves Strub (Ecole Polytechnique, France)
German Vidal (Universitat Politecnica de Valencia, Spain)

External Review Committee:

Michael D. Adams  (University of Utah, USA)
Robert Atkey  (University of Strathclyde, IK)
Sheng Chen  (University of Louisiana at Lafayette, USA)
James Cheney  (University of Edinburgh, UK)
Adam Chlipala  (Massachusetts Institute of Technology, USA)
Evelyne Contejean (LRI, Université Paris-Sud, France) 
Germán Andrés Delbianco  (IRIF, Université Paris Diderot, France)
Dominique Devriese  (Vrije Universiteit Brussel, Belgium)
Richard A. Eisenberg  (Bryn Mawr College, USA)
Conal Elliott  (Target, USA)
Sebastian Erdweg  (Delft University of Technology, Netherlands)
Michael Greenberg  (Pomona College, USA)
Adrien Guatto  (IRIF, Université Paris Diderot, France)
Jennifer Hackett  (University of Nottingham, UK)
Troels Henriksen  (University of Copenhagen, Denmark)
Chung-Kil Hur  (Seoul National University, Republic of Korea)
Roberto Ierusalimschy  (PUC-Rio, Brazil)
Ranjit Jhala  (University of California, San Diego, USA)
Ralf Jung  (MPI-SWS, Germany)
Ohad Kammar  (University of Oxford, UK)
Oleg Kiselyov (Tohoku University, Japan)
Hsiang-Shang ‘Josh’ Ko  (National Institute of Informatics, Japan)
Ondřej Lhoták  (University of Waterloo, Canada)
Dan Licata  (Wesleyan University, USA)
Geoffrey Mainland  (Drexel University, USA)
Simon Marlow  (Facebook, UK)
Akimasa Morihata  (University of Tokyo, Japan)
Shin-Cheng Mu  (Academia Sinica, Taiwan)
Guillaume Munch-Maccagnoni  (Inria, France)
Kim Nguyễn  (University of Paris-Sud, France)