From: Psionic K <psionik@positron.solutions>
To: sbaugh@janestreet.com, Emacs developers <emacs-devel@gnu.org>
Subject: Re: Environment variables in dynamic modules
Date: Fri, 12 Jan 2024 09:29:11 +0900 [thread overview]
Message-ID: <CADQMGARDWsPF-oQXdCboxYmO7ozjGUb7GW+ZteqfRtX=nYiy4g@mail.gmail.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 1039 bytes --]
>> C. Set all variables in the C environment to match process-environment
>> every time we call into the dynamic module
>> (but this is slow and hurts performance)
I'm going to preface a solution to excessive redundant passing by pointing
out that the provenance of a piece of data is a requisite but something we
don't have.
Encoding input provenance in vector clocks is a solution to avoiding
unnecessary passing and maintaining caller and callee input synchronization
even when the callee is performing asynchronous work.
While we can use watch-variable for updates from Elisp, such as those done
by a package like envrc that creates buffer local environments, updates
from C don't have this convenience.
Protecting inputs from arbitrary mutations is a requirement to implement
this technique conveniently. More likely, there need to be interfaces that
permit a logical clock and the value it versions to remain consistent.
Since the data needs to be immutable or else requires locking, coordination
with the GC is required.
[-- Attachment #2: Type: text/html, Size: 1207 bytes --]
next reply other threads:[~2024-01-12 0:29 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-01-12 0:29 Psionic K [this message]
-- strict thread matches above, loose matches on Subject: below --
2024-01-11 16:03 Environment variables in dynamic modules Spencer Baugh
2024-01-11 17:02 ` Eli Zaretskii
2024-01-11 17:53 ` Spencer Baugh
2024-01-11 17:18 ` Andreas Schwab
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='CADQMGARDWsPF-oQXdCboxYmO7ozjGUb7GW+ZteqfRtX=nYiy4g@mail.gmail.com' \
--to=psionik@positron.solutions \
--cc=emacs-devel@gnu.org \
--cc=sbaugh@janestreet.com \
/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
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.