Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.javascript > #122827
| From | Mild Shock <janburse@fastmail.fm> |
|---|---|
| Newsgroups | comp.lang.javascript |
| Subject | Re: ANN: Dogelog Player 1.1.5 (HTTP Server) |
| Date | 2024-02-21 00:54 +0100 |
| Message-ID | <ur3e4a$d07q$1@solani.org> (permalink) |
| References | (2 earlier) <uoqmjs$t68e$3@solani.org> <upiggd$18ave$3@solani.org> <uq6nnt$1jfbj$2@solani.org> <ur2ish$ci33$2@solani.org> <ur2v8l$2lhr7$3@dont-email.me> |
Well they have suspend/resume semantics. They are not continuations. They aim is to provide async/await and not only setTimeout(). As a result you don't need to write libraries with a continuation parameters. This is very unlike nonsense such as the express web framework. stackfulness In contrast to a stackless coroutine a stackful coroutine can be suspended from within a nested stackframe. Execution resumes at exactly the same point in the code where it was suspended before. stackless With a stackless coroutine, only the top-level routine may be suspended. Any routine called by that top-level routine may not itself suspend. This prohibits providing suspend/resume operations in routines within a general-purpose library. https://www.boost.org/doc/libs/1_57_0/libs/coroutine/doc/html/coroutine/intro.html#coroutine.intro.stackfulness Lawrence D'Oliveiro schrieb: > On Tue, 20 Feb 2024 17:09:53 +0100, Mild Shock wrote: > >> The idea is that threads use a bouncer semaphore to get a permission to >> execute and thus become “coroutines”. > > But they are still stackful coroutines, not stackless. >
Back to comp.lang.javascript | Previous | Next — Previous in thread | Next in thread | Find similar
Re: ANN: Dogelog Player 1.1.5 (HTTP Server) Mild Shock <janburse@fastmail.fm> - 2024-02-20 17:09 +0100
Re: ANN: Dogelog Player 1.1.5 (HTTP Server) Lawrence D'Oliveiro <ldo@nz.invalid> - 2024-02-20 19:41 +0000
Re: ANN: Dogelog Player 1.1.5 (HTTP Server) Mild Shock <janburse@fastmail.fm> - 2024-02-21 00:54 +0100
Re: ANN: Dogelog Player 1.1.5 (HTTP Server) Mild Shock <janburse@fastmail.fm> - 2024-02-21 00:56 +0100
Re: ANN: Dogelog Player 1.1.5 (HTTP Server) Mild Shock <janburse@fastmail.fm> - 2024-02-21 01:13 +0100
Re: ANN: Dogelog Player 1.1.5 (HTTP Server) Mild Shock <bursejan@gmail.com> - 2024-02-20 16:20 -0800
Re: ANN: Dogelog Player 1.1.5 (HTTP Server) Mild Shock <janburse@fastmail.fm> - 2024-02-21 13:37 +0100
csiph-web