Warning: mysqli::__construct(): (HY000/1203): User howardkn already has more than 'max_user_connections' active connections in D:\Inetpub\vhosts\howardknight.net\al.howardknight.net\includes\artfuncs.php on line 21
Failed to connect to MySQL: (1203) User howardkn already has more than 'max_user_connections' active connections
Warning: mysqli::query(): Couldn't fetch mysqli in D:\Inetpub\vhosts\howardknight.net\al.howardknight.net\index.php on line 66
Article <vhmilk$hd28$1@dont-email.me>
Deutsch   English   Français   Italiano  
<vhmilk$hd28$1@dont-email.me>

View for Bookmarking (what is this?)
Look up another Usenet article

Path: ...!eternal-september.org!feeder2.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: Janis Papanagnou <janis_papanagnou+ng@hotmail.com>
Newsgroups: comp.lang.c
Subject: Re: logically weird loop
Date: Thu, 21 Nov 2024 07:06:43 +0100
Organization: A noiseless patient Spider
Lines: 30
Message-ID: <vhmilk$hd28$1@dont-email.me>
References: <0e1c6d2e74d44a715bf7625ca2df022d169f878a@i2pn2.org>
 <vhl32r$66a2$1@dont-email.me> <vhlspv$ahc9$10@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 7bit
Injection-Date: Thu, 21 Nov 2024 07:06:46 +0100 (CET)
Injection-Info: dont-email.me; posting-host="82f805063ad724aaeaf1e80c8c9b27e0";
	logging-data="570440"; mail-complaints-to="abuse@eternal-september.org";	posting-account="U2FsdGVkX18+4wSCbSaY6Ku8X3dsVuVG"
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101
 Thunderbird/45.8.0
Cancel-Lock: sha1:RQVtPbiXaWthBuDjtvhBdfv5S+0=
X-Enigmail-Draft-Status: N1110
In-Reply-To: <vhlspv$ahc9$10@dont-email.me>
Bytes: 2479

On 21.11.2024 00:53, Lawrence D'Oliveiro wrote:
> On Wed, 20 Nov 2024 17:34:34 +0100, Janis Papanagnou wrote:
> 
>> [*] A friend of mine just recently implemented the code frame for a
>> roguelike and followed the suggestion of an event based object-oriented
>> implementation; it worked well, he told me.
> 
> The next step would be to use coroutines so the logic of a longer-running 
> task, which has to wait for other events at multiple points, can be 
> written in a single linear stream without having to be fragmented into 
> multiple callbacks.

Yes, indeed.

Actually, if you know Simula, coroutines are inherent part of that
language, and they based their yet more advanced process-oriented
model on these. I find it amazing what Simula provided (in 1967!)
to support such things. Object orientation[*], coroutines, etc.,
all fit together, powerful, and in a neat syntactical form. - But
"no one" is using Simula, and my friend was using C++; don't know
what C++ supports in that respect today. I know that he implemented
the "simulation" parts (queuing, time-model, etc.) in C++ himself.

Janis

[*] It was the language who invented Object Orientation - quite
naturally a concept from the simulation perspective -, but they
neither invented nor used the term "OO"; probably because it was
much more than that what they provided.