From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eduardo Ochs Newsgroups: gmane.emacs.devel Subject: Re: Emacs <-> Lua bridge Date: Mon, 19 Apr 2021 04:40:59 -0300 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="34236"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Emacs developers To: michael schuldt Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Mon Apr 19 09:42:07 2021 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 1lYOXn-0008nH-7B for ged-emacs-devel@m.gmane-mx.org; Mon, 19 Apr 2021 09:42:07 +0200 Original-Received: from localhost ([::1]:43996 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lYOXm-0004lt-Aj for ged-emacs-devel@m.gmane-mx.org; Mon, 19 Apr 2021 03:42:06 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:56164) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lYOWz-00047Q-NA for emacs-devel@gnu.org; Mon, 19 Apr 2021 03:41:19 -0400 Original-Received: from mail-pl1-x62d.google.com ([2607:f8b0:4864:20::62d]:36748) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lYOWv-0006Rq-KO for emacs-devel@gnu.org; Mon, 19 Apr 2021 03:41:17 -0400 Original-Received: by mail-pl1-x62d.google.com with SMTP id g16so361057plq.3 for ; Mon, 19 Apr 2021 00:41:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=yBo1sOJ+zeF2nx6KLu0fK9HsdWaXX1ql4hTHYgw9c/8=; b=EQkRpfMXYwt2HwWsayxFkVU9cJx+fFanaqWqdSydG1OeOyoMMAiOGqNAa3Wzzez1cb 0pgp8PGNIGFhO+5YFi6Ke5F+6CENxr7+dUUtfKEvnRvIIM/MPiCBaLFwne0FILls8b2/ MWO0dJRuW1iBLJ7jlg5q23U6xlcp44fvXN0oG7JYqw2fkKnvEHbWneDcoqNgPEesuINB 1EhA+ipdXmQDwWkKcor6nRhEKOLEDgpO5A0lMw3rDie3uHvIuiV8tOXv6Amrfq9FZPwJ 1IeeVw4NtBQfAEZk+JjgstGipyJdasgpcLIb4chrsiN28htpm+5aza3HqgArDUsoerTX Zr8A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=yBo1sOJ+zeF2nx6KLu0fK9HsdWaXX1ql4hTHYgw9c/8=; b=UWdefMOS1Yjk2Lbia5gshGeVzQbNrXNkBHhlyr5sDg4t+JIMj8jJVE55Q3LF/hvtMM 2euBqX73Y8Q4b3eIXG9pgJVw4gCz1WK8bWtvfQ8iROsStq+a/oW2GQ/6c2b2p1w4NnzM 3ZrkPdMXxlsGZ7Qy3iXM7UQbzO+pUkzyIP70QUmHtnKfqMwjV5YXBNvWlcK4AXZIoeXW L+1wjMjpUQf8t0+6zbWAYxen2/sSYxE0+KSfKvKQuJFfPDtsoTjbylKEtjo364LEiFG8 YKE1eg3rpG81TXi5PWbyiuwiWrqdE4sOYwUSkOEnpUgRsOhS8Q3Y4/q604XxM54Qnkkm Q2ZQ== X-Gm-Message-State: AOAM533nlf3dk7j7OwSkL/PTYN6oxGfKUuV09AD28SIoUkiKLqfzlWCw SqsAB7mtTbs8OWcDANZPChtvTaaFBGNE2fNl/+Q= X-Google-Smtp-Source: ABdhPJxch7ctDRVpRD3mSYwm1UeWDQjljXCbjt6Mq6QeJf8k0DVyRUhcoHGydB9Txzis0ZwXP3gyOENLgFxZlomnP1U= X-Received: by 2002:a17:90a:c203:: with SMTP id e3mr23126351pjt.173.1618818071325; Mon, 19 Apr 2021 00:41:11 -0700 (PDT) In-Reply-To: Received-SPF: pass client-ip=2607:f8b0:4864:20::62d; envelope-from=eduardoochs@gmail.com; helo=mail-pl1-x62d.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, 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:268153 Archived-At: Hi Michael, this looks very interesting! What did you use it for? Do you have plans to adapt your src/luamacs.c and make it into something that can be loaded as a module? I am quite incompetent with C, so I can't help you with the C side besides offering encouragement and testing... At this moment I have these short-term goals with the emlua module: 1. Adapt https://github.com/edrx/edrxrepl to emlua, 2. Use emlua to help me edit the files into which I throw interesting URLs compulsively when I am browsing the web in half-brain-dead mode, One of my medium-term goals is to use emlua to turn Emacs into an editor of derivation trees - see: http://angg.twu.net/dednat6/tug-slides.pdf at this moment I have to edit them by hand, using rectangle commands and picture mode, and some operations on them are hard to do... Note that dednat6 has a mini-Forth inside, that is based on this: http://angg.twu.net/miniforth-article.html And this may be somewhat related to the other stuff in your github page... Cheers! =) Eduardo Ochs http://angg.twu.net/#eev On Sun, 18 Apr 2021 at 17:16, michael schuldt wrote: > > Awesome! > > Several years ago I compiled the Lua interpreter into Emacs and added functions for accessing each from the other. > It was just fun experimental software and is not supported or actively developed and still has unresolved issues, > but might be of interest to you. This was before modules got added to Emacs. > You can check out the code here: https://github.com/mschuldt/luamacs