unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: Vasilij Schneidermann <mail@vasilij.de>
Cc: p.stephani2@gmail.com, eller.helmut@gmail.com, emacs-devel@gnu.org
Subject: Re: Some dynamic module questions
Date: Fri, 27 Nov 2020 17:09:04 +0200	[thread overview]
Message-ID: <83pn3yomzz.fsf@gnu.org> (raw)
In-Reply-To: <20201127135406.GI1558@odonien.localdomain> (message from Vasilij Schneidermann on Fri, 27 Nov 2020 14:54:06 +0100)

> Date: Fri, 27 Nov 2020 14:54:06 +0100
> From: Vasilij Schneidermann <mail@vasilij.de>
> Cc: eller.helmut@gmail.com, p.stephani2@gmail.com, emacs-devel@gnu.org
> 
> > So you'd need to use vectors instead.
> 
> Isn't that remarkably slow though? If you either pass a vector of
> integers on the Lisp side and recreate it on the C side using Flength
> and Farev or have a char array on the C side and create a Lisp array for
> the Lisp side, I can see that operation to outweigh otherwise fast
> foreign code easily. I've only experimented with encoding unibyte
> strings to/from hex strings though when using cryptographic code and
> that was slow enough to ruin the benefit of FFI.

I don't yet see why would you need to send data to a module.  Why not
generate that data in the module code itself, based on some Lisp you
get from Emacs?



  reply	other threads:[~2020-11-27 15:09 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-11-27 10:43 Some dynamic module questions Helmut Eller
2020-11-27 11:50 ` Philipp Stephani
2020-11-27 12:01   ` Helmut Eller
2020-11-27 12:17     ` Zhu Zihao
2020-11-27 12:25       ` Helmut Eller
2020-11-27 12:47     ` Eli Zaretskii
2020-11-27 12:59       ` Helmut Eller
2020-11-27 13:29         ` Eli Zaretskii
2020-11-27 13:32           ` Eli Zaretskii
2020-11-27 13:54             ` Vasilij Schneidermann
2020-11-27 15:09               ` Eli Zaretskii [this message]
2020-11-27 15:21                 ` Vasilij Schneidermann
2020-11-27 15:26                   ` Eli Zaretskii
2020-12-02 11:43                     ` Philipp Stephani
2020-12-03  5:30                       ` Richard Stallman
2020-12-03  8:08                       ` Lars Ingebrigtsen
2020-12-03  8:42                         ` Helmut Eller
2020-12-03 11:49                           ` Philipp Stephani
2020-12-03 15:13                             ` Stefan Monnier
2020-12-06 17:04                               ` Philipp Stephani
2020-11-27 14:06     ` Stefan Monnier

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=83pn3yomzz.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=eller.helmut@gmail.com \
    --cc=emacs-devel@gnu.org \
    --cc=mail@vasilij.de \
    --cc=p.stephani2@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).