ALT Linux Community general discussions
 help / color / mirror / Atom feed
From: Alexander Lubyagin <lubyagin@yandex.ru>
To: community@lists.altlinux.org
Subject: Re: [Comm] Отладочное логирование модулей alterator
Date: Tue, 23 Sep 2025 11:18:11 +0300
Message-ID: <3e6a9e45-0790-4e3d-b7a8-04035f7643c0@yandex.ru> (raw)
In-Reply-To: <5054225.31r3eYUQgx@zerg.malta.altlinux.ru>

23.09.2025 09:27, Sergey V Turchin пишет:
>> Если alteratord был перезапущен -- значит, у конкретного модуля
>> нет реализации для конкретного вывода (попытки обобщить вывод
>> для gui и веба обдумывались, но в итоге были отброшены;
> Нет. Просто, остались неокончены. AFAIK Inger не переставал работать над
> сведением обоих UI в один в своё время, но не доделал. После него оказалось
> некому этим заниматься.
Вопрос немного в сторону. А почему для определения обработчиков событий
(<module>/ui/<name>/ajax.scm) выбрано задание списочной структуры на
Scheme (Guile)? Ведь древовидную структуру можно определить на любом
скриптовом языке, поддерживающем ООП (к примеру). Да и просто в
текстовом файле. А бэкенд нынче модно писать на Python. Правда, я не
знаю, насколько он безопаснее Scheme, т.к. под трассировщиком "сыплет"
много лишнего мусора при вызове своих библиотек. Возможно, Scheme в этом
смысле "чище" работает. А вместо Питона для бэкенда (если выбирать его)
я бы брал какую-то его минимализированную версию, из которой выкинуты
"опасные" функции.
Основная кодовая база, как я вижу, компилируется в бинарники
/usr/lib/alterator/interfaces/guile/*.go

Рассуждая таким образом, я пришёл к мысли, что Scheme как раз не
позволяет делать "опасные" вещи типа os.system(), а обращается "с миром"
только через прописанные в interfaces/ интерфейсы.
Из книжек по нему я нашёл:
- Eisenberg, Abelson. Programming in Scheme (MIT, 1988);
- An Introduction to Scheme and its Implementation (1997);
- Concrete Abstractions An Introduction to Computer Science Using Scheme
- Max Hailperin, Barbara Kaiser, and Karl Knight (1999);
- Programming With Hygienic Macros - R K Dybvig (1992);
- SICP (1996);
- Simply Scheme Introducing Computer Science 2d ed - Brian Harvey ,
Matthew Wright (1999);
- Teach Yourself Scheme in Fixnum Days -  Dorai Sitaram (2004);
- The Little Schemer 4th Ed (1986, 1996);
- The Seasoned Schemer - Daniel P. Fridman.

P. S.
Было бы также интересно поглядеть на версии alterator <= 1.0.1, на
которые ссылается alterator/changelog.old
Хорошо, что есть alterator/doc/internals/*.html (там есть даже todo.html
и evolution.html)


  reply	other threads:[~2025-09-23  8:18 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-09-22 17:34 Alexander Lubyagin
2025-09-23  6:06 ` Michael Shigorin
2025-09-23  6:27   ` [Comm] " Sergey V Turchin
2025-09-23  8:18     ` Alexander Lubyagin [this message]
2025-09-23  8:29       ` Sergey V Turchin
2025-09-23 11:51       ` [Comm] " Michael Shigorin
2025-09-23 11:32     ` Michael Shigorin

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3e6a9e45-0790-4e3d-b7a8-04035f7643c0@yandex.ru \
    --to=lubyagin@yandex.ru \
    --cc=community@lists.altlinux.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

ALT Linux Community general discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/community/0 community/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 community community/ http://lore.altlinux.org/community \
		mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com
	public-inbox-index community

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.community


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git