From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Arsen =?utf-8?Q?Arsenovi=C4=87?= Newsgroups: gmane.emacs.devel Subject: Re: tree-sitter and Android port Date: Mon, 20 Feb 2023 16:38:49 +0100 Message-ID: <86k00cpcbn.fsf@aarsen.me> References: <87ttzkmrw1.fsf.ref@yahoo.com> <87ttzkmrw1.fsf@yahoo.com> <877cwcfmal.fsf_-_@yahoo.com> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="35450"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Yuan Fu , Theodor Thornhill , emacs-devel@gnu.org To: Po Lu Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Mon Feb 20 16:49:47 2023 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 1pU8QE-00090h-HN for ged-emacs-devel@m.gmane-mx.org; Mon, 20 Feb 2023 16:49:46 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pU8PZ-0005hz-LJ; Mon, 20 Feb 2023 10:49:05 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pU8PX-0005gE-Ss for emacs-devel@gnu.org; Mon, 20 Feb 2023 10:49:04 -0500 Original-Received: from mout-p-102.mailbox.org ([2001:67c:2050:0:465::102]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_CHACHA20_POLY1305:256) (Exim 4.90_1) (envelope-from ) id 1pU8PU-0002nO-Js for emacs-devel@gnu.org; Mon, 20 Feb 2023 10:49:03 -0500 Original-Received: from smtp202.mailbox.org (smtp202.mailbox.org [10.196.197.202]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-384) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-p-102.mailbox.org (Postfix) with ESMTPS id 4PL6KL6HCGz9scK; Mon, 20 Feb 2023 16:48:54 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aarsen.me; s=MBO0001; t=1676908134; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=7+gKK7LxoQuNa/MdK2iE3HSNKSG/SuKAnuloVjHbBHQ=; b=u+6fmGQYCPTrfzyg5hyVFxgdd40z30iH0gdhOFWd1EcQyVpB5jSEVBvm9AOur3bbVAmjC7 xw8EspDMTa7UenR8hLlmXnqgaXP0hWa+3gjobcpDN7j+QA9fDVuc5ulZFIfLaL3z7JFrPT bCFNgW6Ie419rSiGqDKuZDxpjAvXD2JTp2dF8MPGqos9r2DuWKOnjvBUxnq7F8nj6g3zzP 3gJrR6hMmYb5d1fi03NSAKc/P4h+hyjzhyYpS6/XKL9blIU0lvOyF4Se7Bz5OgCW6GU/GB uilIayY/g0BIgdVmDJQiCfrgwWRYMuJAYA8U+oxW5t2s4QTLbnYCHq8BN2yGog== In-reply-to: <877cwcfmal.fsf_-_@yahoo.com> Received-SPF: pass client-ip=2001:67c:2050:0:465::102; envelope-from=arsen@aarsen.me; helo=mout-p-102.mailbox.org X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, 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.29 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-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:303610 Archived-At: --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Hi, Po Lu writes: > I've added support for tree-sitter to the Android port, and ported that > library to our Android build system as well. Thanks, that should greatly improve the efficiency of fontification in due time. > However, there is one problem. Android does not let Emacs link with any > shared libraries or run any executables installed in non-system > directories, meaning that compiled grammars cannot be installed in a > useful fashion. This is done for security reasons, as apparently many > Android programs have been tricked into executing malicious downloaded > code in the past. Based on my prior experience with Termux, I suspect that the Emacs home directory should work. Termux is able to both build and launch programs in that directory, and I suspect also dlopen () libraries, though I have not tried that. > Would one of you two (Yuan Fu or Theodor) please ask the tree-sitter > developers if there is a way to solve this problem (i.e. by having > tree-sitter provide a way to ``interpret'' uncompiled grammar files.) > > Thanks in advance. P.S: I noticed that the Termux wiki lists some file managers that integrate with SAF, and hence, should be able to access the home directory on devices with poor built-in file managers: https://wiki.termux.com/wiki/Internal_and_external_storage While the manual should probably skirt from naming specific file managers, it could be good to name what a file manager needs to be able to access the Emacs home directory (namely, SAF support). Thanks in advance. =2D-=20 Arsen Arsenovi=C4=87 --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iOYEARYKAI4WIQT+4rPRE/wAoxYtYGFSwpQwHqLEkwUCY/OWXF8UgAAAAAAuAChp c3N1ZXItZnByQG5vdGF0aW9ucy5vcGVucGdwLmZpZnRoaG9yc2VtYW4ubmV0RkVF MkIzRDExM0ZDMDBBMzE2MkQ2MDYxNTJDMjk0MzAxRUEyQzQ5MxAcYXJzZW5AYWFy c2VuLm1lAAoJEFLClDAeosST/RcA/2UMKahqjUBuEEzdpQImIan1R3OTv5bBi1E+ lwDWD77RAP4t34DdNl6lOF7xMwpMEn/zfYQh2wLYwJKIuplhGA0KCg== =hElU -----END PGP SIGNATURE----- --=-=-=--