emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: other "concurrency" approaches


From: Eli Zaretskii
Subject: Re: other "concurrency" approaches
Date: Tue, 03 Nov 2015 17:44:21 +0200

> From: Nic Ferrier <address@hidden>
> Date: Tue, 03 Nov 2015 11:50:37 +0000
> 
> Fork looks very hard to solve, in the same way that threads are quite
> hard to solve.
> 
> But starting a headless Emacs, given that we have daemon already,
> wouldn't be that hard.

What is a "headless Emacs"?

> What you want is the ability to do something like this:
> 
> 
>  (let ((proc (start-process "emacs" args-to-make-it-headless)))
>    (process-send-string proc (prin1-to-string '(+ 1 (* 30 45))))
>    (process-send-eof proc)
>    (print (buffer-string (process-buffer proc))))
> 
> in other words, an Emacs that just reads forms from stdin and executes
> them and outputs to stdout.

This sounds like a description of -batch, but you already know about
it, so I'm quite sure I'm missing something important here.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]