* Re: A completely pre-emptive time sharing system for GNU Emacs
2019-02-06 14:33 A completely pre-emptive time sharing system for GNU Emacs Davin Pearson
@ 2019-02-06 6:18 ` John Wiegley
2019-02-09 14:47 ` Davin Pearson
2019-02-06 8:48 ` Tom Tromey
2019-02-06 15:35 ` Eli Zaretskii
2 siblings, 1 reply; 5+ messages in thread
From: John Wiegley @ 2019-02-06 6:18 UTC (permalink / raw)
To: Davin Pearson; +Cc: emacs-devel
>>>>> "DP" == Davin Pearson <davin.pearson@gmail.com> writes:
DP> I am about to write a completely pre-emptive time-sharing system but first
DP> I need to know if I will be re-inventing the wheel.
Hi Davin,
Will this be a C extension of Emacs core?
What are your intentions for the project? What needs do you see it fulfilling?
Yours,
--
John Wiegley GPG fingerprint = 4710 CF98 AF9B 327B B80F
http://newartisans.com 60E1 46C4 BD1A 7AC1 4BA2
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: A completely pre-emptive time sharing system for GNU Emacs
2019-02-06 14:33 A completely pre-emptive time sharing system for GNU Emacs Davin Pearson
2019-02-06 6:18 ` John Wiegley
@ 2019-02-06 8:48 ` Tom Tromey
2019-02-06 15:35 ` Eli Zaretskii
2 siblings, 0 replies; 5+ messages in thread
From: Tom Tromey @ 2019-02-06 8:48 UTC (permalink / raw)
To: Davin Pearson; +Cc: emacs-devel
>>>>> "Davin" == Davin Pearson <davin.pearson@gmail.com> writes:
Davin> Michael Abraham Shulman has written a coroutine feature for
Davin> Emacs at the following location.
Davin> https://www.emacswiki.org/emacs/coroutine.el
In a similar vein, there's also generator.el in the Emacs source tree.
Tom
^ permalink raw reply [flat|nested] 5+ messages in thread
* A completely pre-emptive time sharing system for GNU Emacs
@ 2019-02-06 14:33 Davin Pearson
2019-02-06 6:18 ` John Wiegley
` (2 more replies)
0 siblings, 3 replies; 5+ messages in thread
From: Davin Pearson @ 2019-02-06 14:33 UTC (permalink / raw)
To: emacs-devel
[-- Attachment #1: Type: text/plain, Size: 695 bytes --]
I posted the following message to google groups (gnu.emacs.help) but I got
no reply. Then I emailed Richard Stallman this message and he suggested
that I send it to the following email address:
<snip>
Michael Abraham Shulman has written a coroutine feature for
Emacs at the following location.
https://www.emacswiki.org/emacs/coroutine.el
I am about to write a completely pre-emptive time-sharing system
but first I need to know if I will be re-inventing the wheel.
I hope my contribution to GNU Emacs is helpful for all the
programmers out there who agonize over GNUS busy waiting all the
time.
</snip>
--
Sincerely and kindest regards, Davin.
Davin Pearson http://davin.50webs.com
[-- Attachment #2: Type: text/html, Size: 1139 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: A completely pre-emptive time sharing system for GNU Emacs
2019-02-06 14:33 A completely pre-emptive time sharing system for GNU Emacs Davin Pearson
2019-02-06 6:18 ` John Wiegley
2019-02-06 8:48 ` Tom Tromey
@ 2019-02-06 15:35 ` Eli Zaretskii
2 siblings, 0 replies; 5+ messages in thread
From: Eli Zaretskii @ 2019-02-06 15:35 UTC (permalink / raw)
To: Davin Pearson; +Cc: emacs-devel
> From: Davin Pearson <davin.pearson@gmail.com>
> Date: Thu, 7 Feb 2019 03:33:23 +1300
>
> Michael Abraham Shulman has written a coroutine feature for
> Emacs at the following location.
>
> https://www.emacswiki.org/emacs/coroutine.el
I believe the concurrency feature present in Emacs 26 is a better
solution for the same class of problems.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: A completely pre-emptive time sharing system for GNU Emacs
2019-02-06 6:18 ` John Wiegley
@ 2019-02-09 14:47 ` Davin Pearson
0 siblings, 0 replies; 5+ messages in thread
From: Davin Pearson @ 2019-02-09 14:47 UTC (permalink / raw)
To: Davin Pearson, emacs-devel
[-- Attachment #1: Type: text/plain, Size: 937 bytes --]
On Wed, 6 Feb 2019 at 19:18, John Wiegley <johnw@gnu.org> wrote:
> >>>>> "DP" == Davin Pearson <davin.pearson@gmail.com> writes:
>
> DP> I am about to write a completely pre-emptive time-sharing system but
> first
> DP> I need to know if I will be re-inventing the wheel.
>
> Hi Davin,
>
> Will this be a C extension of Emacs core?
>
>
I plan to write the extension in Elisp.
> What are your intentions for the project? What needs do you see it
> fulfilling?
>
>
Anyone who wants Java style threads in their Elisp programs.
Basically, my idea is this: Suppose you have the following Elisp code:
(defun code ()
(setq abc 'def)
(setq def 'ghi))
My mult-threader then generates the following code.
(defun foo-1 ()
(setq abc 'def)
)
(defun foo-2 ()
(setq def 'ghi))
Obviously the code gets difficult when you have if/while constructs.
--
Sincerely and kindest regards, Davin.
Davin Pearson http://davin.50webs.com
[-- Attachment #2: Type: text/html, Size: 1957 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2019-02-09 14:47 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-02-06 14:33 A completely pre-emptive time sharing system for GNU Emacs Davin Pearson
2019-02-06 6:18 ` John Wiegley
2019-02-09 14:47 ` Davin Pearson
2019-02-06 8:48 ` Tom Tromey
2019-02-06 15:35 ` Eli Zaretskii
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).