From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Qiantan Hong Newsgroups: gmane.emacs.devel Subject: About implementing libre.js/el in Emacs Date: Sat, 29 Aug 2020 19:14:25 +0000 Message-ID: <791FBE67-B71F-4F80-810D-BE29B55FD10C@mit.edu> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="Apple-Mail=_DDA5DD21-DF40-4AE0-899F-88C8257B1837"; protocol="application/pkcs7-signature"; micalg=sha-256 Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="32382"; mail-complaints-to="usenet@ciao.gmane.io" To: "emacs-devel@gnu.org" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sat Aug 29 21:15:44 2020 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kC6KG-0008Jl-BT for ged-emacs-devel@m.gmane-mx.org; Sat, 29 Aug 2020 21:15:44 +0200 Original-Received: from localhost ([::1]:57920 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kC6KE-0000SN-Nh for ged-emacs-devel@m.gmane-mx.org; Sat, 29 Aug 2020 15:15:42 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:55472) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kC6J4-0007pJ-A0 for emacs-devel@gnu.org; Sat, 29 Aug 2020 15:14:30 -0400 Original-Received: from outgoing-exchange-3.mit.edu ([18.9.28.13]:46442) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kC6J2-0000UM-6I for emacs-devel@gnu.org; Sat, 29 Aug 2020 15:14:29 -0400 Original-Received: from oc11exedge2.exchange.mit.edu (OC11EXEDGE2.EXCHANGE.MIT.EDU [18.9.3.18]) by outgoing-exchange-3.mit.edu (8.14.7/8.12.4) with ESMTP id 07TJEQZO024833 for ; Sat, 29 Aug 2020 15:14:26 -0400 Original-Received: from oc11expo16.exchange.mit.edu (18.9.4.47) by oc11exedge2.exchange.mit.edu (18.9.3.18) with Microsoft SMTP Server (TLS) id 15.0.1293.2; Sat, 29 Aug 2020 15:14:17 -0400 Original-Received: from oc11expo16.exchange.mit.edu (18.9.4.47) by oc11expo16.exchange.mit.edu (18.9.4.47) with Microsoft SMTP Server (TLS) id 15.0.1365.1; Sat, 29 Aug 2020 15:14:25 -0400 Original-Received: from oc11expo16.exchange.mit.edu ([18.9.4.47]) by oc11expo16.exchange.mit.edu ([18.9.4.47]) with mapi id 15.00.1365.000; Sat, 29 Aug 2020 15:14:25 -0400 Thread-Topic: About implementing libre.js/el in Emacs Thread-Index: AQHWfjic43/eAWMCC0OsYNLTW9kwBg== Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: yes x-ms-exchange-messagesentrepresentingtype: 1 x-ms-exchange-transport-fromentityheader: Hosted x-originating-ip: [18.18.245.17] Received-SPF: pass client-ip=18.9.28.13; envelope-from=qhong@mit.edu; helo=outgoing-exchange-3.mit.edu X-detected-operating-system: by eggs.gnu.org: First seen = 2020/08/29 14:27:33 X-ACL-Warn: Detected OS = Windows 7 (Websense crawler) X-Spam_score_int: -41 X-Spam_score: -4.2 X-Spam_bar: ---- X-Spam_report: (-4.2 / 5.0 requ) BAYES_00=-1.9, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:254398 Archived-At: --Apple-Mail=_DDA5DD21-DF40-4AE0-899F-88C8257B1837 Content-Type: multipart/alternative; boundary="Apple-Mail=_F40F256E-9FF0-4488-8551-2AB1904558E6" --Apple-Mail=_F40F256E-9FF0-4488-8551-2AB1904558E6 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii 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= = 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 --Apple-Mail=_F40F256E-9FF0-4488-8551-2AB1904558E6 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=us-ascii 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
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




= --Apple-Mail=_F40F256E-9FF0-4488-8551-2AB1904558E6-- --Apple-Mail=_DDA5DD21-DF40-4AE0-899F-88C8257B1837 Content-Disposition: attachment; filename="smime.p7s" Content-Type: application/pkcs7-signature; name="smime.p7s" Content-Transfer-Encoding: base64 MIAGCSqGSIb3DQEHAqCAMIACAQExDzANBglghkgBZQMEAgEFADCABgkqhkiG9w0BBwEAAKCCA70w ggO5MIIDIqADAgECAhAaql39NsO1qLVjkS2hl517MA0GCSqGSIb3DQEBCwUAMGwxCzAJBgNVBAYT AlVTMRYwFAYDVQQIEw1NYXNzYWNodXNldHRzMS4wLAYDVQQKEyVNYXNzYWNodXNldHRzIEluc3Rp dHV0ZSBvZiBUZWNobm9sb2d5MRUwEwYDVQQLEwxDbGllbnQgQ0EgdjEwHhcNMjAwODAzMDEyNDIz WhcNMjEwODAxMDEyNDIzWjCBoTELMAkGA1UEBhMCVVMxFjAUBgNVBAgTDU1hc3NhY2h1c2V0dHMx LjAsBgNVBAoTJU1hc3NhY2h1c2V0dHMgSW5zdGl0dXRlIG9mIFRlY2hub2xvZ3kxFTATBgNVBAsT DENsaWVudCBDQSB2MTEVMBMGA1UEAxMMUWlhbnRhbiBIb25nMRwwGgYJKoZIhvcNAQkBFg1xaG9u Z0BNSVQuRURVMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAylUlEQdK4BSXKzoGh6As CKN/TpLmC0kjhPdxUKMj1/86Xl6GDCla4h95uISDOWVAKdu3cIlA8m9zRLT2jNEIkt1DVpXP6c9h y8RRyfJm0qlrvr6tsHi5AmO4Li6s2dEGaTxbakPL6vEn7ZYr86t5orq56nubki77Z8ZvRv9/fWdF bF/YBNGDayLNk0NbXIEQdCHiz1l+bxfw+GHHRmdOge3MKWSg463+GGMdxtLQ61AbtR2vm47FIJBt c0X6ptcInWUg4Nf/9vSNGl6KvREvfbEWKCT6TfL5ncIFlitf6ZWKue2PZ4ULFfIQ3/7EsE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