From: Richard Stallman <rms@gnu.org>
To: Philipp <p.stephani2@gmail.com>
Cc: rudiwillalwaysloveyou@gmail.com, emacs-devel@gnu.org
Subject: Re: Is there any easy way to fork in elisp? Why not?
Date: Mon, 01 Nov 2021 23:55:18 -0400 [thread overview]
Message-ID: <E1mhktK-0003tf-7U@fencepost.gnu.org> (raw)
In-Reply-To: <5B1A71D8-BC93-414C-A15D-F439A58183DB@gmail.com> (message from Philipp on Sun, 31 Oct 2021 11:34:02 +0100)
[[[ To any NSA and FBI agents reading my email: please consider ]]]
[[[ whether defending the US Constitution against all enemies, ]]]
[[[ foreign or domestic, requires you to follow Snowden's example. ]]]
> The fork API could be:
> ```
> (let-fork ((some_val (expensive_compute)) ...)
> (lambda()
> (message "Computed: %s" some_val)))
I don't see why this needs to do a fork at all.
If `expensive_compute' does not set any free variables
and does not modify preexisting data structures,
it should work to define `let-fork' as equivalent to `let'.
--
Dr Richard Stallman (https://stallman.org)
Chief GNUisance of the GNU Project (https://gnu.org)
Founder, Free Software Foundation (https://fsf.org)
Internet Hall-of-Famer (https://internethalloffame.org)
prev parent reply other threads:[~2021-11-02 3:55 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-10-26 12:44 Is there any easy way to fork in elisp? Why not? Rudi C
2021-10-28 12:13 ` Zhiwei Chen
2021-10-28 22:06 ` Stefan Monnier
2021-10-28 22:16 ` Rudi C
2021-10-30 6:52 ` Richard Stallman
2021-10-31 10:34 ` Philipp
2021-11-02 3:55 ` Richard Stallman [this message]
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=E1mhktK-0003tf-7U@fencepost.gnu.org \
--to=rms@gnu.org \
--cc=emacs-devel@gnu.org \
--cc=p.stephani2@gmail.com \
--cc=rudiwillalwaysloveyou@gmail.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 public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).