[ruby-core:75236] Re: [Ruby trunk Feature#10548] remove callcc (Callcc is now going obsoleted. Please use Fiber.)

From: Юрий Соколов <funny.falcon@...>
Date: 2016-04-28 07:06:21 UTC
List: ruby-core #75236
You can easily reimplement your solver passing block to `choose`.
Certainle, it will be less readable, but will work.
27 =D0=B0=D0=BF=D1=80. 2016 =D0=B3. 2:36 PM =D0=BF=D0=BE=D0=BB=D1=8C=D0=B7=
=D0=BE=D0=B2=D0=B0=D1=82=D0=B5=D0=BB=D1=8C <l.rieder@gmail.com> =D0=BD=D0=
=B0=D0=BF=D0=B8=D1=81=D0=B0=D0=BB:

> Issue #10548 has been updated by Lukas Rieder.
>
>
> **Please keep callcc, they are inherently awesome to build constraint
> solvers.**
>
> I am using them in a real life application. I am calculating the availabl=
e
> tables for a full calendar with many time slots and with respect to many
> configurable business rules for restaurants.
> Using callcc this feature got blazingly fast and very nicely readable.
> Also we use it to optimise table arrangements with respect to complex
> restaurant business rules (even something like: Guest A doesn't like to s=
it
> near Guest B).
>
> Please just have a look at these resources:
>
> * https://github.com/chikamichi/amb/tree/master/examples
> *
> http://web.archive.org/web/20151116124853/http://liufengyun.chaos-lab.com=
/prog/2013/10/23/continuation-in-ruby.html
>
> ----------------------------------------
> Feature #10548: remove callcc (Callcc is now going obsoleted.  Please use
> Fiber.)
> https://bugs.ruby-lang.org/issues/10548#change-58356
>
> * Author: Masaya Tarui
> * Status: Open
> * Priority: Normal
> * Assignee:
> ----------------------------------------
>
> We are paying a lot of costs for callcc's consistency.
> and currently, we can use Fiber in many situation.
>
> In
> https://bugs.ruby-lang.org/projects/ruby/wiki/DevelopersMeeting20140517Ja=
pan
> ,
> matz agreed to remove callcc.
>
> If there is no refutation, remove callcc in the future version.
>
>
>
> --
> https://bugs.ruby-lang.org/
>
> Unsubscribe: <mailto:ruby-core-request@ruby-lang.org?subject=3Dunsubscrib=
e>
> <http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>
>

Unsubscribe: <mailto:ruby-core-request@ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>

In This Thread

Prev Next