| Deutsch English Français Italiano |
|
<1029fbk$k9pf$1@solani.org> View for Bookmarking (what is this?) Look up another Usenet article |
Path: news.eternal-september.org!eternal-september.org!feeder3.eternal-september.org!weretis.net!feeder8.news.weretis.net!reader5.news.weretis.net!news.solani.org!.POSTED!not-for-mail From: Mild Shock <janburse@fastmail.fm> Newsgroups: comp.lang.prolog Subject: Call Later in Dogelog Notebooks (Was: Game Sprites in Dogelog Notebooks) Date: Tue, 10 Jun 2025 16:27:02 +0200 Message-ID: <1029fbk$k9pf$1@solani.org> References: <vvjliv$dl1g$2@solani.org> <101594n$1h0k$1@solani.org> <101i8b1$8vln$1@solani.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Date: Tue, 10 Jun 2025 14:27:00 -0000 (UTC) Injection-Info: solani.org; logging-data="665391"; mail-complaints-to="abuse@news.solani.org" User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:128.0) Gecko/20100101 Firefox/128.0 SeaMonkey/2.53.21 Cancel-Lock: sha1:EVemK+vJ+z4buunT4L+g62c4URU= In-Reply-To: <101i8b1$8vln$1@solani.org> X-User-ID: eJwFwYEBACAEBMCVEv8yDsn+I3QHpfC6ETQMpt3mjpVCEJ4mU/skw1SgHG50n+JWuri+xorApK9UdD1+P3QU5A== Dogelog Player is a Prolog system mostly written in Prolog itself. It is available for the JavaScript, Python and Java platform. In the browser environment it offers Notebooks that run without server roundtrip. Compared to for example SWISH or Tinker from SWI-Prolog, the syntax coloring is in its early stage. Notebook cells were only colored during instrumentation. Things have a little improved with delayed re-coloring now. To implement recoloring of a Notebook cell, we found it useful to resort to the debouncing event handling pattern. It can be easily realized by storing a timer in a DOM element (sic!). Although recoloring requires coloring potentially invalid and incomplete tokens, since we use a full cell recoloring, not much goes wrong. See also: Call Later in Dogelog Notebooks https://qiita.com/j4n_bur53/items/d17ba8adce15397a029b Mild Shock schrieb: > > Dogelog Player is a Prolog system mostly written in > Prolog itself. It is available for the JavaScript, > Python and Java platform. It offers a minimalistic > subset of the ISO core standard for Prolog, dubbed > by the name Novacore. > > It further features a minimalistic library to access > the Browser environment. The content of the library is > developed with hindsight of its usage in Dogelog > Notebooks. Here we give a glimps of its usage > for Game Sprites. > > With a little programming discipline the library(vector) > makes it possibly to design games for different screen > resolutions. To ease the Dogelog Notebook orchestration > of the animation of multiple game sprites via cooperative > multitasking from create_task/1, we introduced > group_gather_async() and group_teardown(). > > See also: > > Game Sprites in Dogelog Notebooks > https://qiita.com/j4n_bur53/items/839061b2a8b34a4d422f