From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Richard Stallman Newsgroups: gmane.emacs.devel Subject: Re: About implementing libre.js/el in Emacs Date: Mon, 31 Aug 2020 23:24:56 -0400 Message-ID: References: <791FBE67-B71F-4F80-810D-BE29B55FD10C@mit.edu> Reply-To: rms@gnu.org Content-Type: text/plain; charset=Utf-8 Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="5224"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: Qiantan Hong Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue Sep 01 05:25:32 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 1kCwvL-0001Ep-Mz for ged-emacs-devel@m.gmane-mx.org; Tue, 01 Sep 2020 05:25:31 +0200 Original-Received: from localhost ([::1]:37062 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kCwvK-0006eF-OZ for ged-emacs-devel@m.gmane-mx.org; Mon, 31 Aug 2020 23:25:30 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:41842) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kCwuq-0006CP-IO for emacs-devel@gnu.org; Mon, 31 Aug 2020 23:25:00 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:40230) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kCwuq-00056n-5b; Mon, 31 Aug 2020 23:25:00 -0400 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.82) (envelope-from ) id 1kCwum-00052j-9m; Mon, 31 Aug 2020 23:24:56 -0400 In-Reply-To: (message from Qiantan Hong on Mon, 31 Aug 2020 04:13:58 +0000) 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:254464 Archived-At: [[[ To any NSA and FBI agents reading my email: please consider ]]] [[[ whether defending the US Constitution against all enemies, ]]] [[[ foreign or domestic, requires you to follow Snowden's example. ]]] > I highly agree with that, however currently numerous browser extensions > are already implemented completely in Javascript, including LibreJS. That is true, but it is secondary. There are things bigger and deeper at stake here: keeping Emacs fundamentally clean, and avoiding the extremely unwise practice of running programs right off other people's web sites. > Maybe another option is to have the other way around, implement > a JavaScript to Elisp translator, and support Emacs Lisp version of > those web extension APIs. Then we can run the translator on librejs > to get librejs.el as a starting point. Ideally this would operate on Javascript source code only, and would generate something that would not actually be ready to run, but would be a starting point for writing a real Emacs Lisp program. That way, people would not tempted to run compiled (*) Javascript programs straight off web pages. * Obfuscating or compacting Javascript is a form of compilation, for these purposes. -- Dr Richard Stallman Chief GNUisance of the GNU Project (https://gnu.org) Founder, Free Software Foundation (https://fsf.org) Internet Hall-of-Famer (https://internethalloffame.org)