From nobody Thu Sep 05 14:13:34 2024 X-Original-To: freebsd-hackers@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4X01YX4scdz5W6rR for ; Thu, 05 Sep 2024 14:13:36 +0000 (UTC) (envelope-from kevans@FreeBSD.org) Received: from smtp.freebsd.org (smtp.freebsd.org [IPv6:2610:1c1:1:606c::24b:4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "smtp.freebsd.org", Issuer "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4X01YX443Lz4VD2; Thu, 5 Sep 2024 14:13:36 +0000 (UTC) (envelope-from kevans@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1725545616; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=QCC6RG4y2lIIcez8eekcJHGbAOa4AKOThnj4XI9IE5w=; b=OpsS0VA0fBiOItCzSYc4OOcaAexjg2Htf8uDnmD8mYPR5+nmZvox4Lqg3mk1cYJSTFjhfL hbybay113HWmz5XpuGOrwu/bb3x+W6ouK9MVwQ48Fzt1XeWN/yHEbWGGJTtI3wbg12bfX1 hpEI3UslkUaD3+tY5b7+noVA15d8scg4i4kuvVgFsRb4UU1rYBtQz9YVFBwBgx0CctAvxy c37z6y78mYn34hmigxpX45Sbe5sJTWYx8Ht7gwiksMwo2ysAprB3VD1M4Cwsgniy1/epSW qUARY1BTznX3wdly3vZtE48x6/iU5tsvlTNMZBTupYsv4sEbH/H5ToVN8AoOgg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1725545616; a=rsa-sha256; cv=none; b=hDzKeetMB/lcQvzkOR3diDbxJrur2BG05XlH+WCViOQWRRvzymhIWI9VB9t2SIlMSNqWnv h5yHDNSOJwjPVg85PT9m+N9ypkc48JJnL6fTYNtZFd1vfeXI3hTzh5jCk/En9KgMgJRlfN O7fqOAZZYECZ7mHPdzgRiIgUdBOEMuCovSjmmo5jxkbvv6cBvH/BsS3IGuTikvHvtJz9tL 0i/ybsviHU84Bc507tXjddm4U58961P4mA/TFzWbwHgy0VgHtMvONS8MFkcJf4NA0s8mbA FeU8weCc62eOH/eF0vWo8K5SXGNa4RoBUsc66a+o7cvba2pjkWS/u40h0BWSlQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1725545616; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=QCC6RG4y2lIIcez8eekcJHGbAOa4AKOThnj4XI9IE5w=; b=NHttBH8hNmFEV2kU32dI0daAqbLaKJv1L0tdVFwW6mlPUki7TRYcdT7r9fi+X8G73LyZu2 9VCFqoTlOxmP0T12AeRZ/O8P/Jv7kA5qCgZUfBqfVmNurWggQGQLdst5q4upQJlSO/XDMH 2IbUXfun9Xwz6xxvAycUND8j0HM2nZkxK7Ya+PqdqAJCC+gLp+TDn7ME7iJrg5znCPpPpN PhbnVBI5n8rjkZWF3h28aBtRhIYtnJlUU7hCMx+no0yDyc16kg2Rp1nc4P1+dWvGaFl4OL +/T672RLOdMGpzFJMlEbCgCYeK7q+ob6mr6UY06/4F3EVEz6i6N5zOgcyluO6w== Received: from [10.9.4.95] (unknown [209.182.120.176]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) (Authenticated sender: kevans/mail) by smtp.freebsd.org (Postfix) with ESMTPSA id 4X01YX1VD7z19CX; Thu, 5 Sep 2024 14:13:36 +0000 (UTC) (envelope-from kevans@FreeBSD.org) Message-ID: Date: Thu, 5 Sep 2024 09:13:34 -0500 List-Id: Technical discussions relating to FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-hackers List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-hackers@FreeBSD.org MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: Suitability of Lua as a userland-programming language? To: Bertrand Petit , David Chisnall , freebsd-hackers@freebsd.org References: <40836902-cb68-45e0-b4ec-623c21aa47ba@FreeBSD.org> <88AC3419-2BD0-4664-80E8-368360E143B4@freebsd.org> <20240905131543.GD1354@memo2.memo.frmug.org> Content-Language: en-US From: Kyle Evans In-Reply-To: <20240905131543.GD1354@memo2.memo.frmug.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 9/5/24 08:15, Bertrand Petit wrote: > On Thu, Sep 05, 2024 at 08:25:26AM +0100, David Chisnall wrote: >> >> It took me about an hour to go from never having written any Lua to >> writing some Lua code that actually worked (and that we still use). > > I made the same observation here, I must add that having a > funcional programming background helps greatly. The conciseness of the > reference manual is lovely even if I think it is badly organised. > > I regret the "any variable name is assumed to be global unless > explicitly declared as a local" concept which preclude users from > writing large programs easily. 1-indexed strings is... peculiar by > modern times. I see the language libraries as very limited and > unsuitable for system programming---I was frustrated to not find map > nor reduce. If Lua is to be integrated into base for public > consumption we should [...] We will not be exposing flua for general public consumption, but anything in base is welcome to use it and we're happy to expand our collection of modules as needed. Thanks, Kyle Evans