From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-0.2 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, HTML_MESSAGE,MAILING_LIST_MULTI,MIME_HTML_ONLY,MIME_HTML_ONLY_MULTI, MPART_ALT_DIFF,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2 autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 2904 invoked from network); 25 Jan 2023 23:00:14 -0000 Received: from tb-ob0.topicbox.com (64.147.108.117) by inbox.vuxu.org with ESMTPUTF8; 25 Jan 2023 23:00:14 -0000 Received: from tb-mx0.topicbox.com (tb-mx0.nyi.icgroup.com [10.90.30.73]) by tb-ob0.topicbox.com (Postfix) with ESMTP id B02E232638 for ; Wed, 25 Jan 2023 18:00:12 -0500 (EST) (envelope-from bounce.mM4392b819b7aecdeb8619aff1.r522be890-2105-11eb-b15e-8d699134e1fa@9fans.bounce.topicbox.com) Received: by tb-mx0.topicbox.com (Postfix, from userid 1132) id A8DC2C5242B; Wed, 25 Jan 2023 18:00:12 -0500 (EST) ARC-Authentication-Results: i=2; topicbox.com; arc=pass; dkim=pass (2048-bit rsa key sha256) header.d=iitbombay-org.20210112.gappssmtp.com header.i=@iitbombay-org.20210112.gappssmtp.com header.b=b0+HTEwl header.a=rsa-sha256 header.s=20210112 x-bits=2048; dmarc=none policy.published-domain-policy=none policy.applied-disposition=none policy.evaluated-disposition=none (p=none,d=none,d.eval=none) policy.policy-from=p header.from=iitbombay.org; spf=pass smtp.mailfrom=bakul@iitbombay.org smtp.helo=mail-il1-f180.google.com; x-internal-arc=fail (as.1.topicbox.com=pass, ams.1.topicbox.com=fail (body has been altered)) (Message modified while forwarding at Topicbox) ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d= topicbox.com; h=content-type:content-transfer-encoding:from :mime-version:subject:date:message-id:references:in-reply-to:to :list-help:list-id:list-post:list-subscribe:reply-to :list-unsubscribe; s=sysmsg-1; t=1674687612; bh=ItpPa4XDm/zttKrS j7Hr88fmX2ilLb8UtgTGJ1nB5N4=; b=o2nrjppctejqPCt+obU72Z7fJxKs68EQ DF00xFU1EknOS/WbsLLhRZ519UvMcPaYgj0aN505zCaJgKYFs8kF8FbqlkB6VahE gG3ME2fHAbspYHeIIrLn6Ac4vzNU2uNDJRAlgleODyWcxOS79tF4g4javmT+bU1z pMepddKTvYA= ARC-Seal: i=2; a=rsa-sha256; cv=pass; d=topicbox.com; s=sysmsg-1; t= 1674687612; b=koTf+VaeI8BfhhmhMhr15TCoeCk6rhImBk45YqLdfNxh/i+Dwv vmxHavUgpH9DEkl/iYE6Fi1bgRyGdey29BMwnmiEMnhxYn6XFntI9JtXBIh1U2xL Y1ge1Hz61eR4SrKiRkMDzMnebjZ7kHzKD9c1JH8jIHB+VB6N+0mfMAzxQ= Authentication-Results: topicbox.com; arc=pass; dkim=pass (2048-bit rsa key sha256) header.d=iitbombay-org.20210112.gappssmtp.com header.i=@iitbombay-org.20210112.gappssmtp.com header.b=b0+HTEwl header.a=rsa-sha256 header.s=20210112 x-bits=2048; dmarc=none policy.published-domain-policy=none policy.applied-disposition=none policy.evaluated-disposition=none (p=none,d=none,d.eval=none) policy.policy-from=p header.from=iitbombay.org; spf=pass smtp.mailfrom=bakul@iitbombay.org smtp.helo=mail-il1-f180.google.com; x-internal-arc=fail (as.1.topicbox.com=pass, ams.1.topicbox.com=fail (body has been altered)) (Message modified while forwarding at Topicbox) X-Received-Authentication-Results: tb-mx0.topicbox.com; arc=none (no signatures found); bimi=skipped (DMARC did not pass); dkim=pass (2048-bit rsa key sha256) header.d=iitbombay-org.20210112.gappssmtp.com header.i=@iitbombay-org.20210112.gappssmtp.com header.b=b0+HTEwl header.a=rsa-sha256 header.s=20210112 x-bits=2048; dmarc=none policy.published-domain-policy=none policy.applied-disposition=none policy.evaluated-disposition=none (p=none,d=none,d.eval=none) policy.policy-from=p header.from=iitbombay.org; iprev=pass smtp.remote-ip=209.85.166.180 (mail-il1-f180.google.com); spf=pass smtp.mailfrom=bakul@iitbombay.org smtp.helo=mail-il1-f180.google.com; x-aligned-from=pass (Address match); x-google-dkim=pass (2048-bit rsa key) header.d=1e100.net header.i=@1e100.net header.b=HXyN9Rr1; x-me-sender=none; x-ptr=pass smtp.helo=mail-il1-f180.google.com policy.ptr=mail-il1-f180.google.com; x-return-mx=pass header.domain=iitbombay.org policy.is_org=yes (MX Records found: aspmx.l.google.com,alt3.aspmx.l.google.com,alt1.aspmx.l.google.com,alt2.aspmx.l.google.com,alt4.aspmx.l.google.com); x-return-mx=pass smtp.domain=iitbombay.org policy.is_org=yes (MX Records found: aspmx.l.google.com,alt3.aspmx.l.google.com,alt1.aspmx.l.google.com,alt2.aspmx.l.google.com,alt4.aspmx.l.google.com); x-tls=pass smtp.version=TLSv1.2 smtp.cipher=ECDHE-RSA-AES256-GCM-SHA384 smtp.bits=256/256; x-vs=clean score=90 state=0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=9fans.net; h= content-type:content-transfer-encoding:from:mime-version:subject :date:message-id:references:in-reply-to:to:list-help:list-id :list-post:list-subscribe:reply-to:list-unsubscribe; s=dkim-1; t=1674687612; x=1674774012; bh=1SUNLhrE5DrBaEoD9RVwrMvjtBGrJvWz cxgqVTwIUqY=; b=YypVRJVaQIRv813lCt3FKTCh2mBUyyc5TuL+M5c9Pqu2a0hy phuEcVs96VN8cXWLoeevl61ktmtjR+kSYoIQhTY+vWiiGWxU/di8YFs78yTpmlvy QxxMEsmZ+ovUFjbnEVGVmnH0metCSoypYW3kYZNZvRmj7Axi25JLkLcJhHA= Received: from tb-mx0.topicbox.com (localhost.local [127.0.0.1]) by tb-mx0.topicbox.com (Postfix) with ESMTP id 8D093C51F68 for <9fans@9fans.net>; Wed, 25 Jan 2023 17:59:44 -0500 (EST) (envelope-from bakul@iitbombay.org) Received: from tb-mx0.topicbox.com (localhost [127.0.0.1]) by tb-mx0.topicbox.com (Authentication Milter) with ESMTP id FB7D56532C8; Wed, 25 Jan 2023 17:59:44 -0500 ARC-Seal: i=1; a=rsa-sha256; cv=none; d=topicbox.com; s=arcseal; t= 1674687584; b=SylGWL48yTok/dAMMfkEii7EA5D+98mrqgwn4YLEleBQZrBhTx 4kzWYDR8nPU5wr5AcgQmeQbhnIH3ODERjSXkmpYE/ws9V7mXI+vmb4lFGxIMBr0q M6XnlOSlQFc3lKULXbJoxH8926hcXz9nQgnwK5+3abMFrm/dnUqHoo+wJmkmSZSW zjaND7dqdkMlGUHMI3Uy1RPg3Vlr2Ivd7t0ThlnK0i5sxv8fjp59eDLP5foQlZ9D L7zVyqxGURtZ8HDHxMJzel8Y2oSGs7b7dYyf8ZkuFo+zv51tO7FauyEObpCjCb2W ypzvICwISMcx7A+PZE9+7nTJHhIdEgmxU7gw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d= topicbox.com; h=content-type:content-transfer-encoding:from :mime-version:subject:date:message-id:references:in-reply-to:to; s=arcseal; t=1674687584; bh=kCtOf+r7wV0koeU+/k1KKWBvJYsXq3PwPcg 07ry2YuA=; b=r0hhrsl6z0aklRgcmQSLaM8YBLejUOBNE8ASBppnLDtGjg8CEcO zjiPDE57PTQ0LB6zm1JjvZC4bxbGDfvGz3NLbVCcj62lS9FTDqLmm4fJUJ9uDuey 6QqsZsk/THxFmef37hnbyBGJwsp9wQmEexMf9I0a2RqWVeQfIDaDBG7ZXfPXkZx8 OQ9xLNVYhL/7FEHOPiqiMuDkrACMjMdLeJSfiVSjaqYyR29tj4jZC5ru1z9icmf9 9ynW3/ZKocgm8nsemnTQDl4PyTfIIWJvZgZPgyLYrahtyc7R5A1rjLa5J9fABLEE qb/q79eK0mbKGXVb2KhIpEfq5N8UU7gTVZQ== ARC-Authentication-Results: i=1; tb-mx0.topicbox.com; arc=none (no signatures found); bimi=skipped (DMARC did not pass); dkim=pass (2048-bit rsa key sha256) header.d=iitbombay-org.20210112.gappssmtp.com header.i=@iitbombay-org.20210112.gappssmtp.com header.b=b0+HTEwl header.a=rsa-sha256 header.s=20210112 x-bits=2048; dmarc=none policy.published-domain-policy=none policy.applied-disposition=none policy.evaluated-disposition=none (p=none,d=none,d.eval=none) policy.policy-from=p header.from=iitbombay.org; iprev=pass smtp.remote-ip=209.85.166.180 (mail-il1-f180.google.com); spf=pass smtp.mailfrom=bakul@iitbombay.org smtp.helo=mail-il1-f180.google.com; x-aligned-from=pass (Address match); x-google-dkim=pass (2048-bit rsa key) header.d=1e100.net header.i=@1e100.net header.b=HXyN9Rr1; x-me-sender=none; x-ptr=pass smtp.helo=mail-il1-f180.google.com policy.ptr=mail-il1-f180.google.com; x-return-mx=pass header.domain=iitbombay.org policy.is_org=yes (MX Records found: aspmx.l.google.com,alt3.aspmx.l.google.com,alt1.aspmx.l.google.com,alt2.aspmx.l.google.com,alt4.aspmx.l.google.com); x-return-mx=pass smtp.domain=iitbombay.org policy.is_org=yes (MX Records found: aspmx.l.google.com,alt3.aspmx.l.google.com,alt1.aspmx.l.google.com,alt2.aspmx.l.google.com,alt4.aspmx.l.google.com); x-tls=pass smtp.version=TLSv1.2 smtp.cipher=ECDHE-RSA-AES256-GCM-SHA384 smtp.bits=256/256; x-vs=clean score=90 state=0 X-ME-VSCause: gggruggvucftvghtrhhoucdtuddrgedvhedruddvfedgtddvucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdggtfgfnhhsuhgsshgtrhhisggvpdfu rfetoffkrfgpnffqhgenuceurghilhhouhhtmecufedttdenucgoufhushhpvggtthffoh hmrghinhculdegledmnefqnhhlhicuohhnvgcuphgrrhhtucdlhedumdenjfgrmhfjvggr uggvrhfhihgvlhguucfjvggruggvrhcuufgtohhrihhnghculddquddtmdenucfjughrpe gtgffhggfufffkfhgjvffosegrjehmrehhtdejnecuhfhrohhmpeeurghkuhhlucfuhhgr hhcuoegsrghkuhhlsehiihhtsghomhgsrgihrdhorhhgqeenucggtffrrghtthgvrhhnpe efudfgveffledtvedukefgiedtjeeiuefgfefhlefhhffhhfeutdetueevvedthfenucff ohhmrghinheptggrlhhlqdgttgdrohhrghdptghouggvsggvrhhgrdhorhhgpdhgihhthh husgdrihhopdhgihhthhhusgdrtghomhdphihouhhtuhgsvgdrtghomhdpkhigrdgtohhm pdhtohhpihgtsghogidrtghomhenucfkphepvddtledrkeehrdduieeirddukedtpddutd ejrddvudehrddvvdefrddvvdelnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghm pehinhgvthepvddtledrkeehrdduieeirddukedtpdhhvghlohepmhgrihhlqdhilhduqd hfudektddrghhoohhglhgvrdgtohhmpdhmrghilhhfrhhomhepoegsrghkuhhlsehiihht sghomhgsrgihrdhorhhgqe X-ME-VSScore: 90 X-ME-VSCategory: clean Received-SPF: pass (iitbombay.org: Sender is authorized to use 'bakul@iitbombay.org' in 'mfrom' identity (mechanism 'include:_spf.google.com' matched)) receiver=tb-mx0.topicbox.com; identity=mailfrom; envelope-from="bakul@iitbombay.org"; helo=mail-il1-f180.google.com; client-ip=209.85.166.180 Received: from mail-il1-f180.google.com (mail-il1-f180.google.com [209.85.166.180]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by tb-mx0.topicbox.com (Postfix) with ESMTPS for <9fans@9fans.net>; Wed, 25 Jan 2023 17:59:43 -0500 (EST) (envelope-from bakul@iitbombay.org) Received: by mail-il1-f180.google.com with SMTP id g15so163579ild.3 for <9fans@9fans.net>; Wed, 25 Jan 2023 14:59:43 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=to:in-reply-to:references:message-id:date:subject:mime-version:from :content-transfer-encoding:x-gm-message-state:from:to:cc:subject :date:message-id:reply-to; bh=kCtOf+r7wV0koeU+/k1KKWBvJYsXq3PwPcg07ry2YuA=; b=HXyN9Rr1ZYrf82kWtVL+6k8gEqohUBuvjJdYdRuqyNsQcvVPMmXukBJI3/n9urddyW t/DI9lKyGbTDAhRHH6aGBC5PRjqeU2hjCNxOMiF1PiPUfJdKZqvzLIhj0dicdhBl+rDG nAV9yIyluaalf0a07iERcWkmvJPF0lVX4D5ZkP4wc7VBWDDvgz25sLWUtbGgc/9gdWwW ovzgmORpmibIV3XO6uPyX3SI5Dd0ojdKK7H3EsfHAwtiTprF+9lerxfGHb+W8SKzisar pGvXVexm9gJZYDhcug2Geho/wFGDSEXP6/er3FSIPJrytwQR1gN0XkePGWn5UBzQzLfl dcSg== X-Gm-Message-State: AFqh2kq8dHcDTRq2ptbCORIzwtuT+DV0BE58g5M37+6Y5VZXLp+VWg70 5sbkABU7AYg5EnhVIufb5y6k9BtuCazcrp/q X-Google-Smtp-Source: AMrXdXv03Wb+vixfhjQjdXMLY9UvvE4KNS7iiHSXJvChR1nzRKevP2BdQVHLWpKKDYE4vvpHkCp6Ow== X-Received: by 2002:a92:d11:0:b0:30f:36e0:21d1 with SMTP id 17-20020a920d11000000b0030f36e021d1mr17890236iln.3.1674687582662; Wed, 25 Jan 2023 14:59:42 -0800 (PST) Received: from smtpclient.apple (107-215-223-229.lightspeed.sntcca.sbcglobal.net. [107.215.223.229]) by smtp.gmail.com with ESMTPSA id b27-20020a05663805bb00b0038a5370658bsm2052366jar.6.2023.01.25.14.59.42 for <9fans@9fans.net> (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 25 Jan 2023 14:59:42 -0800 (PST) Content-Type: multipart/alternative; boundary=Apple-Mail-1BA7CD1E-9FE5-4390-A2A1-1EDA70DD5CAD Content-Transfer-Encoding: 7bit From: Bakul Shah Mime-Version: 1.0 (1.0) Subject: Re: [9fans] plan 9 and lisp Date: Wed, 25 Jan 2023 14:59:30 -0800 Message-Id: <95B1E5AF-25E1-4E17-A76A-A025DBECFCFB@iitbombay.org> References: In-Reply-To: To: 9fans <9fans@9fans.net> X-Mailer: iPad Mail (20D47) Topicbox-Policy-Reasoning: allow: sender is a member Topicbox-Message-UUID: f9050aa8-9d03-11ed-8674-f773d7d8f0df Archived-At: =?UTF-8?B?PGh0dHBzOi8vOWZhbnMudG9waWNib3guY29tL2dyb3Vwcy85?= =?UTF-8?B?ZmFucy9UN2IwYWZiZWZiNTMxODliNi1NNDM5MmI4MTliN2FlY2RlYjg2MTlh?= =?UTF-8?B?ZmYxPg==?= List-Help: List-Id: "9fans" <9fans.9fans.net> List-Post: List-Software: Topicbox v0 List-Subscribe: Precedence: list Reply-To: 9fans <9fans@9fans.net> List-Unsubscribe: , Topicbox-Delivery-ID: 2:9fans:437d30aa-c441-11e9-8a57-d036212d11b0:522be890-2105-11eb-b15e-8d699134e1fa:M4392b819b7aecdeb8619aff1:1:VsXe03ObvjbDHAVK-nLlzbj3CacfbffnKlQj71R3mqQ --Apple-Mail-1BA7CD1E-9FE5-4390-A2A1-1EDA70DD5CAD Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
s9fes code is easy to read but there are lots of choices on = unix platforms which are better than s9fes in many respects. I usually use = gambit or chez scheme. But most of them depend on unix or tools available o= n unix. While creating a scheme interpreter is relatively easy, what is mis= sing is an industrial strength scheme “with batteries included”= (Go is a good example of this). And no, IMHO Racket is not it. =

On Jan 23, 2023, at 3:34 A= M, Nick LaForge <nicklaforge@gmail.com> wrote:


Not Plan 9, but lately I've been working in Chicken, which is a l= ovely pragmatic Scheme for *nix: https= ://www.call-cc.org/ . Perhaps I should give s9fes a shot as well!
=

Nick

On Fri, Jan 20, 2023 at 11:47 AM Ba= kul Shah <bakul@iitbombay.org= > wrote:
Thanks!

Nick Nickolov's k comes with solut= ions to ~150  AoC-{2015..2022} puzzles. All run when you make k! As an= example, here is aoc/21/25.k (Game of Sea Cucumbers, which Russ vlogged ab= out): 

#!../../k<= /font>
n:#'1*:\x:".>v"?0:&q= uot;i/25"
(l;d;r;u):n/'n!= 9;/:(!n)+/:3(|1 -1*)\!2 /left down right up
i:0;{i+:1;x:a[r]+x*~a:(1=3Dx)>x l;(2*a d)+x*~a:(2=3Dx)>x u}/,/= x;i

[Of course, the real fun is in = solving these puzzles but it helps to know what others do!]
Unfor= tunately no plan9 port as it relies on mmap.

https://xpqz.github.io/kbook/Introduction.html

=
It is also one of the fastest (~0.5 sec to generate and add a billion = numbers on a Ryzen 2700).

On= Jan 19, 2023, at 9:07 AM, Skip Tavakkolian <skip.tavakkolian@gmail.com> wro= te:

Regarding Ivy, rsc has some fantastic example code= in the form of
solutions to the Advent of Code 2021 puzzles:
https:= //www.youtube.com/@rscgolang/videos

On Thu, Jan 19, 2023 at = 7:48 AM Bakul Shah <bakul@iitbombay.org> wrote:

On Jan 19, 2023, at 7:57 AM, mkf9 <mkf9@riseup.net> wrote:

Lassi Kortela wrote:
Chibi-Scheme= has run on Plan 9.
and also S9, which Bakul Shah ported = to Plan 9,
https://github.com/bakul/s9fes.

Nils M Holm, = the author of s9fes, did the original
port with some help from me. He = didn't want to
maintain plan9 related changes which is why I ammaintaining it. Nils also has a book on it but
AFAIK it doesn't= cover anything specific to plan9.

Speaking of little languages.= ...
Nils also ported his klong array programming language
to plan= 9 & has a book on it! Slightly more verbose
than k (roughly k3 fro= m kx.com)

Then t= here is https://git= hub.com/ktye/i which supports
a dialect of k. Not sure which, prob= ably k6 or k7. And
there is minimal help in the form of readme.txt but= it
compiles & runs on 9front:

% git/clone https://github.com/ktye/i% git/clone ht= tps://github.com/ktye/wg
% cd i
% go build '-buildvcs=3Df= alse'
% ./k
ktye/k
!10
0 1 2 3 4 5 6 7 8 9
+\!= 10
0 1 3 6 10 15 21 28 36 45
d:`a`b`c!(1 2;3 4;5 6)
d
`= a|1 2
`b|3 4
`c|5 6
+d
a b c
-----
1 3 5
2 4 6
\\

There is of course Rob Pike's ivy.

------------------------------------------
9fans: 9fans<= br />Permalink: https://9fans.topicb= ox.com/groups/9fans/T7b0afbefb53189b6-Mfc5857d5dc8b7c9e5c3f2194
De= livery options: https://9fans.topicbox.com/groups/9fans/subscriptio= n

= --Apple-Mail-1BA7CD1E-9FE5-4390-A2A1-1EDA70DD5CAD--