From: "Юрий Соколов" Date: 2016-04-28T10:06:21+03:00 Subject: [ruby-core:75236] Re: [Ruby trunk Feature#10548] remove callcc (Callcc is now going obsoleted. Please use Fiber.) --===============1771419333== Content-Type: multipart/alternative; boundary=001a1136369edbd68305318629e5 --001a1136369edbd68305318629e5 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable 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 =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: > > --001a1136369edbd68305318629e5 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable

You can easily reimplement your solver passing block to `cho= ose`.
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 solve= rs.**

I am using them in a real life application. I am calculating the available = tables for a full calendar with many time slots and with respect to many co= nfigurable 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 restauran= t business rules (even something like: Guest A doesn't like to sit near= Guest B).

Please just have a look at these resources:

* https://github.com/chikamichi/amb/tree/maste= r/examples
* http://web.archive.org/web/20151116124853/http://liufengyu= n.chaos-lab.com/prog/2013/10/23/continuation-in-ruby.html

----------------------------------------
Feature #10548: remove callcc (Callcc is now going obsoleted.=C2=A0 Please = use Fiber.)
https://bugs.ruby-lang.org/issues/10548#change-5= 8356

* 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-lan= g.org/projects/ruby/wiki/DevelopersMeeting20140517Japan,
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=3Dunsubscribe>
<http://lists.ruby-lang.org/cgi-bin/m= ailman/options/ruby-core>
--001a1136369edbd68305318629e5-- --===============1771419333== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline Unsubscribe: --===============1771419333==--