[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: C++ preferences
From: |
Hans Åberg |
Subject: |
Re: C++ preferences |
Date: |
Thu, 13 Sep 2018 20:56:16 +0200 |
> On 13 Sep 2018, at 18:53, Akim Demaille <address@hidden> wrote:
>
>> Le 13 sept. 2018 à 11:12, Hans Åberg <address@hidden> a écrit :
>>
>>
>>> On 13 Sep 2018, at 07:00, Akim Demaille <address@hidden> wrote:
>>>
>>> I recently had to work on some piece of software with coroutines,
>>> and known what variables are immutable was really reassuring.
>>
>> A C++ Simula library implemented coroutines using threads. So coroutines
>> maybe are not a must.
>
> It must be incredibly slow!
Names that show up in search are libcppsim and C++Sim, and the former supports
coroutines, though I could not immediately see how it is implemented.
> And the model is really different,
> interruptions are controlled with coroutines, while threads are
> preemptive. These two models are not equivalent at all imho.
I found coroutines not so intuitive, so threads would be better if one can
accept some overhead. Also, threads can be run a pool to lessen the overhead.
This way, I made a tree-engine as opposed to a sequence of stackengines.
- Re: RFC: lalr1.cc: support move semantics, (continued)
- Re: RFC: lalr1.cc: support move semantics, Hans Åberg, 2018/09/12
- Re: RFC: lalr1.cc: support move semantics, Hans Åberg, 2018/09/12
- Re: RFC: lalr1.cc: support move semantics, Akim Demaille, 2018/09/13
- Re: RFC: lalr1.cc: support move semantics, Hans Åberg, 2018/09/13
- Re: RFC: lalr1.cc: support move semantics, Frank Heckenbach, 2018/09/13
- Re: RFC: lalr1.cc: support move semantics, Akim Demaille, 2018/09/13
- Re: C++ preferences (was: RFC: lalr1.cc: support move semantics), Frank Heckenbach, 2018/09/12
- Re: C++ preferences (was: RFC: lalr1.cc: support move semantics), Akim Demaille, 2018/09/13
- Re: C++ preferences, Hans Åberg, 2018/09/13
- Re: C++ preferences, Akim Demaille, 2018/09/13
- Re: C++ preferences,
Hans Åberg <=
- Re: C++ preferences, Akim Demaille, 2018/09/13
- Re: C++ preferences, Hans Åberg, 2018/09/13
- Re: C++ preferences, Hans Åberg, 2018/09/13
- Re: C++ preferences (was: RFC: lalr1.cc: support move semantics), Frank Heckenbach, 2018/09/13
- Re: C++ preferences (was: RFC: lalr1.cc: support move semantics), Akim Demaille, 2018/09/15
- Re: C++ preferences (was: RFC: lalr1.cc: support move semantics), Frank Heckenbach, 2018/09/15
- Re: C++ preferences (was: RFC: lalr1.cc: support move semantics), Akim Demaille, 2018/09/15
- Re: C++ preferences (was: RFC: lalr1.cc: support move semantics), Frank Heckenbach, 2018/09/15
- Re: C++ preferences (was: RFC: lalr1.cc: support move semantics), Akim Demaille, 2018/09/16
- Re: C++ preferences (was: RFC: lalr1.cc: support move semantics), Hans Åberg, 2018/09/13