From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wr1-f49.google.com ([209.85.221.49]) by ewsd; Thu Oct 29 02:33:42 -0400 2020 Received: by mail-wr1-f49.google.com with SMTP id i1so1517208wro.1 for <9front@9front.org>; Wed, 28 Oct 2020 23:33:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:message-id:to:subject:date:in-reply-to:mime-version :content-transfer-encoding; bh=GuERP3TQvUBLr2h6kWlawxQQ6cVM9PFZS1XVF4ECibY=; b=avnGkaPE0GHnyz5xOP5xLghGUyY7WlVRzlEzfmhHwTiaoIHRp7bMZDUc+s8Z1VT0kQ raSmF+GFncGqlW3j0HC0gAIET6Ev4Hys9A+OInKmtJbPdb6TOC4N/lSHtIFoyDLxBDDj 8gKcWHbHNDSMoIk0M0ausySZCmvGYlZI8BvaJ/mg+tg8S77E21bXWmYipPqazyKm/LzN qf0jUo8vUQ9iZOwQJWyKZlYWJnqyeqdyOXedc3qgZyhc3e28I8gORwH0Mw0rFetju6+A uJ3/D5Q6ydbj9DFh8EEmPQd/GXp9asmZfOhvhIlol6V9yPtTcYAS++O5BqvwI6YLdzhT /DrA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:message-id:to:subject:date:in-reply-to :mime-version:content-transfer-encoding; bh=GuERP3TQvUBLr2h6kWlawxQQ6cVM9PFZS1XVF4ECibY=; b=q0T0ovk09C2mU9jTNVEmhhIEuym0gtpWs2lo69PJ36e0MX30rtHobullE7BZ4/oUjv S2rY0TlEJExhTPMgCQhpSJzXKiLm8XY0kOkiHhhvwSfHokSc26KSEkkGK/4eejOnTrz5 Bjn2fUkLPwuqUCXmDXFncCN4bxbxUBb95DjsuwNBrIIDnrITokwSI3MnVHBs2FHjzLT0 Fvz+dGvYbmE/aNVu2w45stQjKk5EV31yW6e1ushf05h/OzfukzR/Birj+k/l5xAFV+DU WHdDAy7fqv/M4wPZ4iABLsb2Dyfq1GbOwwa6iPngCsXOJidBBMkjsxY9Kln+fDMsdTU2 VXfA== X-Gm-Message-State: AOAM533kq7YAYrHauTURknnU7KODx8scmC/JbiWodAH2jS2AcPkewrjG C5Tp8b0xyXle3J8GWwatDShEn0U23Sg= X-Google-Smtp-Source: ABdhPJxRqmJAS4lm1koSDlktVXCKawq5XgXd0Pg+9HZJYalVS04OsMikzOPkO8al9q5u0cTJM04x4Q== X-Received: by 2002:a5d:6cc8:: with SMTP id c8mr3245266wrc.233.1603953216991; Wed, 28 Oct 2020 23:33:36 -0700 (PDT) Return-Path: Received: from hades (lfbn-idf1-1-101-190.w82-124.abo.wanadoo.fr. [82.124.189.190]) by smtp.gmail.com with ESMTPSA id s9sm3418022wrf.90.2020.10.28.23.33.36 for <9front@9front.org> (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 28 Oct 2020 23:33:36 -0700 (PDT) From: telephil9@gmail.com X-Google-Original-From: pme@gmail.com Message-ID: <45AAAAFB514C120ECD58E8418B3FDEC1@gmail.com> To: 9front@9front.org Subject: Re: [9front] lua9: lua interpreter with plan9 bindings Date: Thu, 29 Oct 2020 07:33:34 +0100 In-Reply-To: <20201028214706.32ed9f21@riseup.net> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit List-ID: <9front.9front.org> List-Help: X-Glyph: ➈ X-Bullshit: anonymous open-source package pipelining-based realtime event > On Tue, 27 Oct 2020 11:41:38 +0100 > telephil9@gmail.com wrote: > >> > On Tue, Oct 27, 2020 at 9:20 AM wrote: >> >> >> >> Hi, >> >> >> >> Building on the lua port by staalmannen >> >> (http://github.com/staalmannen/lua), I wrote a custom version of >> >> the lua interpreter including bindings to some plan9 libraries. I >> >> feel that lua is a simple (and good enough) scripting language >> >> which makes writing GUI code more convenient than in C. For the >> >> time being, this includes bindings for libdraw but I plan to >> >> extend this to other plan9 libraries in the future (libplumb for >> >> instance). >> > >> > Nice work! >> > I imagine you wrote a custom interpreter because Plan 9 does not >> > have a well established dynamic library mechanism. Do you plan on >> > embedding everything into the interpreter? >> >> Thanks. >> Yes, the lack of dynamic library loading gives no other choice than >> embedding everything in the interpreter. This is the reason why I >> wrote this instead of lua modules as you would find on other >> platforms. >> > > Do you plan on porting it from APE to native Plan 9 libaries? > That would allow native code to link to liblua.a. > > I have a WIP port that does that, but I have other projects that need > my attention more. > > Personally, I'd love to use Lua instead of Acid's rather limited > scripting language, that's my biggest motivation for writing the port. That was not the initial plan but I have been thinking about it lately as it would also give access to more libraries (main interest would be 9p). I might give this a shot in the upcoming weeks.