unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Qiantan Hong <qhong@mit.edu>
To: "emacs-devel@gnu.org" <emacs-devel@gnu.org>
Subject: About implementing libre.js/el in Emacs
Date: Sat, 29 Aug 2020 19:14:25 +0000	[thread overview]
Message-ID: <791FBE67-B71F-4F80-810D-BE29B55FD10C@mit.edu> (raw)


[-- Attachment #1.1: Type: text/plain, Size: 1104 bytes --]

Hi,

As RMS recently pointed out, we should have something like Libre.js
for our JavaScript Webkit Xwidgets in emacs.
I plan to implement that idea, but I have some design choices and
would like to hear inputs from you guys.

There are two obvious options to achieve this:
1) Implement (part of) the Web Extension API
https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/API <https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/API>
and let libre.js runs as-is in Emacs.
2) reimplement libre.js as libre.el

Both will require adding primitives to Emacs C source to expose
urlRequest events, etc.

Option 1, besides enabling libre.js, can also bring numerous existing
cross-browser extensions to Emacs, if we finally support a large enough
portion of the Web Extension API. However those extensions are
all written in JS and JS is worse than Elisp.

Option 2 might require as much work as option 1, but without the additional
benefit (or drawback?) of bringing other JS extensions.

What do you think?

Best,
Qiantan

qhong@mit.edu




[-- Attachment #1.2: Type: text/html, Size: 4060 bytes --]

[-- Attachment #2: smime.p7s --]
[-- Type: application/pkcs7-signature, Size: 1858 bytes --]

             reply	other threads:[~2020-08-29 19:14 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-08-29 19:14 Qiantan Hong [this message]
2020-08-29 21:10 ` About implementing libre.js/el in Emacs Paul Eggert
2020-08-30  2:26   ` Tim Cross
2020-08-30  2:45     ` Qiantan Hong
2020-08-30  7:44       ` Tim Cross
2020-08-30 14:13       ` T.V Raman
2020-08-31  3:53         ` Richard Stallman
2020-08-31  4:11           ` Qiantan Hong
2020-08-31  4:15             ` Stefan Monnier
2020-08-31  4:17               ` Qiantan Hong
2020-08-31 13:48           ` T.V Raman
2020-09-01  3:22             ` Richard Stallman
2020-08-31  3:57     ` Richard Stallman
2020-08-31  3:57 ` Richard Stallman
2020-08-31  4:13   ` Qiantan Hong
2020-09-01  3:24     ` Richard Stallman
2020-08-31  4:24   ` Qiantan Hong

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=791FBE67-B71F-4F80-810D-BE29B55FD10C@mit.edu \
    --to=qhong@mit.edu \
    --cc=emacs-devel@gnu.org \
    /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).