* beginners elisp question - parallel execution
@ 2020-11-17 18:01 simon254
2020-11-17 20:19 ` Qiantan Hong
0 siblings, 1 reply; 2+ messages in thread
From: simon254 @ 2020-11-17 18:01 UTC (permalink / raw)
To: emacs-devel@gnu.org
Hi,
sorry if this is a very dumb question:
in the past there were discussions about multi threading in emacs. My impression is that where most of a performance gain like this would be useful is for e.g. computing fuzzy scores for a long list of candidates or similar things.
Would it be possible to introduce something like pure functions in fortran too elisp? I.e. functions that are not allowed to have side effects and for example act only on one list element? This could then be given to a new "number crunching" routine (mapcar_para?) which applies them in parallel to a list (via openmp or whatever)? Or is the concept already flawed?
Again, sorry if this is dumb,
Simon
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: beginners elisp question - parallel execution
2020-11-17 18:01 beginners elisp question - parallel execution simon254
@ 2020-11-17 20:19 ` Qiantan Hong
0 siblings, 0 replies; 2+ messages in thread
From: Qiantan Hong @ 2020-11-17 20:19 UTC (permalink / raw)
To: simon254@mailbox.org; +Cc: emacs-devel@gnu.org
[-- Attachment #1: Type: text/plain, Size: 849 bytes --]
I think the ’side-effect-free symbol property does this.
> On Nov 17, 2020, at 1:01 PM, simon254@mailbox.org wrote:
>
> Hi,
>
> sorry if this is a very dumb question:
>
> in the past there were discussions about multi threading in emacs. My impression is that where most of a performance gain like this would be useful is for e.g. computing fuzzy scores for a long list of candidates or similar things.
>
> Would it be possible to introduce something like pure functions in fortran too elisp? I.e. functions that are not allowed to have side effects and for example act only on one list element? This could then be given to a new "number crunching" routine (mapcar_para?) which applies them in parallel to a list (via openmp or whatever)? Or is the concept already flawed?
>
> Again, sorry if this is dumb,
>
> Simon
>
[-- Attachment #2: smime.p7s --]
[-- Type: application/pkcs7-signature, Size: 1858 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2020-11-17 20:19 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-11-17 18:01 beginners elisp question - parallel execution simon254
2020-11-17 20:19 ` Qiantan Hong
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).