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=-1.0 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, HTML_MESSAGE,MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2 autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 6023 invoked from network); 20 Jan 2023 19:45:56 -0000 Received: from tb-ob21.topicbox.com (173.228.157.67) by inbox.vuxu.org with ESMTPUTF8; 20 Jan 2023 19:45:56 -0000 Received: from tb-mx1.topicbox.com (tb-mx1.nyi.icgroup.com [10.90.30.61]) by tb-ob21.topicbox.com (Postfix) with ESMTP id 2E6E125D32 for ; Fri, 20 Jan 2023 14:45:53 -0500 (EST) (envelope-from bounce.mM28a9059decf39a3bacc5e4c6.r522be890-2105-11eb-b15e-8d699134e1fa@9fans.bounce.topicbox.com) Received: by tb-mx1.topicbox.com (Postfix, from userid 1132) id 0CFF3A209C0; Fri, 20 Jan 2023 14:45:53 -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=0ub+1K9W 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-io1-f51.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=from:content-type:mime-version:subject:date :references:to:in-reply-to:message-id:list-help:list-id :list-post:list-subscribe:reply-to:content-transfer-encoding :list-unsubscribe; s=sysmsg-1; t=1674243952; bh=YhbrFJwxm+SziqYc tG7j++E58P8fYxX7RObaancRak4=; b=XWbc94Yw6VkKsn2pOwnH9tHQ2+BABSoJ QKHl/yVnzHqemUWUGz44gFdoPK1PM8LYRl9yI7i7ZGVrKGOaEH7DFoAXsCbWB5S6 7T1qt0aygbnHfpVKrQguiTxWz5G14iKstUGlE1QeSj312is5jOmcWRMv/NzU96qr QELpyWyUc8M= ARC-Seal: i=2; a=rsa-sha256; cv=pass; d=topicbox.com; s=sysmsg-1; t= 1674243952; b=Xk4ZPUdQYdh7UwF14HCjN0+NzBWhOUjLMM6ZPAoh1rdp50t4gu bOTn65d0HGPRlrdlW0+d7mCQuYF+5Ejj2uSXPDFiZgFKVQm/T0lls4KbZ8tk5Ag5 7Y1cY3skR0rwtofCplaDMlGVPGX7xDAiiaGQycREvbPN5lFR6WFGB6InU= 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=0ub+1K9W 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-io1-f51.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=0ub+1K9W 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.51 (mail-io1-f51.google.com); spf=pass smtp.mailfrom=bakul@iitbombay.org smtp.helo=mail-io1-f51.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=DfOXGg4a; x-me-sender=none; x-ptr=pass smtp.helo=mail-io1-f51.google.com policy.ptr=mail-io1-f51.google.com; x-return-mx=pass header.domain=iitbombay.org policy.is_org=yes (MX Records found: alt3.aspmx.l.google.com,alt2.aspmx.l.google.com,alt1.aspmx.l.google.com,alt4.aspmx.l.google.com,aspmx.l.google.com); x-return-mx=pass smtp.domain=iitbombay.org policy.is_org=yes (MX Records found: alt3.aspmx.l.google.com,alt2.aspmx.l.google.com,alt1.aspmx.l.google.com,alt4.aspmx.l.google.com,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=49 state=0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=9fans.net; h=from :content-type:mime-version:subject:date:references:to :in-reply-to:message-id:list-help:list-id:list-post :list-subscribe:reply-to:content-transfer-encoding :list-unsubscribe; s=dkim-1; t=1674243952; x=1674330352; bh=bscL CcHumxjqiTrPLgRxIHf8SqNtkxx17v1F6HeZvuQ=; b=VilX9uLUEVXcO0Nue3We Nby9SmVXgS4rn1MfqF2cgqCxycXkqoxbwXSS6d7dA7uYhWST2CuBUQEMSV2Yu+8N sHFY40PiIxxNMb31/+dL5GjHVda9DrAZBA0E9f1pUdL7nzRFNNR+T3dgwm8v1eO8 RYr8BsJDDgmLBs/aYpbvBcM= Received: from tb-mx0.topicbox.com (localhost.local [127.0.0.1]) by tb-mx0.topicbox.com (Postfix) with ESMTP id A9C15BCCC43 for <9fans@9fans.net>; Fri, 20 Jan 2023 14:45:40 -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 B19FC874E37; Fri, 20 Jan 2023 14:45:40 -0500 ARC-Seal: i=1; a=rsa-sha256; cv=none; d=topicbox.com; s=arcseal; t= 1674243940; b=vkjMzC35hEPWFPw3tuauRhcbfJ6NT0rJOnmAaVX+tO7DqD9zHS 25n0+XAv9jo8TqGuCvRMrvkL2d7wUNAviHc+qW1KCGi4SOfLessEqs/cvyxk69Ny UUzwAatsOUbG8/TV797SiC5qgjhlMKVEMLEiRue5Ii+zt1DCWEPCluqCPiH6kg2e wm96OdPaJcFKb6CRyahTQwTUnbAxmJOnScoIVVkq0mjFPk2ei4TG18Jm/ITrbex1 KFuQycqLMBTyIRdx2sfWd/SPSr4DODrQ/yFfY0sMknEsic6UhDpfG0epND6U2DSf LI7XF2sIqoAOi+jLAnXKFd5m6QF491SOS+zg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d= topicbox.com; h=from:content-type:mime-version:subject:date :references:to:in-reply-to:message-id; s=arcseal; t=1674243940; bh=Bwfye3f6u+TWxuY/NqYJrrlRlnotazKismNE8qZXjVA=; b=wcmXvkd3s1N7 iYCUM+B3SbIGD0QwX0kjT6PMhnQdZivmIQL9dtEb5+FBkmeB5Fv6aVvve1+MJMFw f3n5F6P/Z7edILjk5661brt5MEkLN7aDEU6Pjd2WpBLwT6/iDE4E7AhmG9R2hjJ8 U64sUv7MfGwPbW/ZCx1tDe8kiXGrWaJWV7ExGjTgY8q8cjhNkDbs1UTfxhGHUe4R 58I69FsAD2LpRb5Wf8GGfJ4huJ3yUQDrzzFqAUuP+ZKuK0Twm2G+NcTz6G0xT3tD 9WtuHog/rS7gsNksft+HrA3PYg+uNUDN2TMYohm/iBdKSbTcuSP55Bo4IWO1t6PZ Fc3civB+zg== 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=0ub+1K9W 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.51 (mail-io1-f51.google.com); spf=pass smtp.mailfrom=bakul@iitbombay.org smtp.helo=mail-io1-f51.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=DfOXGg4a; x-me-sender=none; x-ptr=pass smtp.helo=mail-io1-f51.google.com policy.ptr=mail-io1-f51.google.com; x-return-mx=pass header.domain=iitbombay.org policy.is_org=yes (MX Records found: alt3.aspmx.l.google.com,alt2.aspmx.l.google.com,alt1.aspmx.l.google.com,alt4.aspmx.l.google.com,aspmx.l.google.com); x-return-mx=pass smtp.domain=iitbombay.org policy.is_org=yes (MX Records found: alt3.aspmx.l.google.com,alt2.aspmx.l.google.com,alt1.aspmx.l.google.com,alt4.aspmx.l.google.com,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=49 state=0 X-ME-VSCause: gggruggvucftvghtrhhoucdtuddrgedvhedrudduvddgudefudcutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpggftfghnshhusghstghrihgsvgdp uffrtefokffrpgfnqfghnecuuegrihhlohhuthemuceftddtnecuogfuuhhsphgvtghtff homhgrihhnucdlgeelmdenucfjughrpefhtggguffffhfvjgfkofesrgdtmherhhdtvden ucfhrhhomhepuegrkhhulhcuufhhrghhuceosggrkhhulhesihhithgsohhmsggrhidroh hrgheqnecuggftrfgrthhtvghrnhepkeeileejhfehffetheekfedtudfgkeeggeegtdfh uedtffdtjeeuhfeukeetvdffnecuffhomhgrihhnpegtohguvggsvghrghdrohhrghdpgh hithhhuhgsrdhiohdpghhithhhuhgsrdgtohhmpdihohhuthhusggvrdgtohhmpdhtohhp ihgtsghogidrtghomhenucfkphepvddtledrkeehrdduieeirdehuddpuddtjedrvdduhe drvddvfedrvddvleenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepihhnvght pedvtdelrdekhedrudeiiedrhedupdhhvghlohepmhgrihhlqdhiohduqdhfhedurdhgoh hoghhlvgdrtghomhdpmhgrihhlfhhrohhmpeeosggrkhhulhesihhithgsohhmsggrhidr ohhrgheq X-ME-VSScore: 49 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-io1-f51.google.com; client-ip=209.85.166.51 Received: from mail-io1-f51.google.com (mail-io1-f51.google.com [209.85.166.51]) (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>; Fri, 20 Jan 2023 14:45:39 -0500 (EST) (envelope-from bakul@iitbombay.org) Received: by mail-io1-f51.google.com with SMTP id p189so2967515iod.0 for <9fans@9fans.net>; Fri, 20 Jan 2023 11:45:39 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=message-id:in-reply-to:to:references:date:subject:mime-version:from :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=Bwfye3f6u+TWxuY/NqYJrrlRlnotazKismNE8qZXjVA=; b=DfOXGg4arvBTyRVzJ3qED40lyQp9ec0SqGjPLznA6GposVaNCT+moQeCgQCM4Xu23e BUlfFNQAIrSaz3NTtykBNNbqQVyACp/eF6RIWgD28UXxgaOLBmwZrKaJh+vR9V6Uj9ZA /fQ+Uhg8suVlaMSoKl7nf628lKua1zUYSHDxBjWJeJLnd8a7aiLS8waVygDtMA8sngkX 1aROMnvOwUF3XCGGItoOqGLopSooCvbRF7NIO/99+uDDnoyHHEGVcmZjRRjCISnU6dgq WaYbciaQmKZlFieSWD1hgAsWbcvT+8anzKybS8+xFyy0m3WAG5d4HDQkUFxcbhHUdKJX QD7Q== X-Gm-Message-State: AFqh2kpg3HGGIdEvNjOaHjXs6tZyC/vrtDYhrMLx0pLmZZQWPb6FWCJ6 sF7p+KQoJaz7THoNENe7gC3zw1yAls0mmICH X-Google-Smtp-Source: AMrXdXtnScbVPQYvZd5mjY8awL7tAKxIJnNZj65VhKy7bMoPnQH11SdVWW6M+ppKt5m9J+wQFsNvWw== X-Received: by 2002:a05:6602:2046:b0:704:a5d2:e3d1 with SMTP id z6-20020a056602204600b00704a5d2e3d1mr10979778iod.2.1674243939081; Fri, 20 Jan 2023 11:45:39 -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 g11-20020a02a08b000000b0038a3b8aaf11sm10835420jah.37.2023.01.20.11.45.38 for <9fans@9fans.net> (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Fri, 20 Jan 2023 11:45:38 -0800 (PST) From: Bakul Shah Content-Type: multipart/alternative; boundary="Apple-Mail=_4D398A68-DC6B-4673-A4AB-1B8014DF0FA5" Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3731.300.101.1.3\)) Subject: Re: [9fans] plan 9 and lisp Date: Fri, 20 Jan 2023 11:45:27 -0800 References: <8760942b-b1c9-aed1-c194-9ba15ffe2c4a@riseup.net> <436AD830-991E-42F8-9CFC-A18CE66E1A52@iitbombay.org> To: 9fans <9fans@9fans.net> In-Reply-To: Message-Id: X-Mailer: Apple Mail (2.3731.300.101.1.3) Topicbox-Policy-Reasoning: allow: sender is a member Topicbox-Message-UUID: 0839389e-98fb-11ed-b972-f88af2d346a2 Archived-At: =?UTF-8?B?PGh0dHBzOi8vOWZhbnMudG9waWNib3guY29tL2dyb3Vwcy85?= =?UTF-8?B?ZmFucy9UN2IwYWZiZWZiNTMxODliNi1NMjhhOTA1OWRlY2YzOWEzYmFjYzVl?= =?UTF-8?B?NGM2Pg==?= List-Help: List-Id: "9fans" <9fans.9fans.net> List-Post: List-Software: Topicbox v0 List-Subscribe: Precedence: list Reply-To: 9fans <9fans@9fans.net> Content-Transfer-Encoding: 7bit List-Unsubscribe: , Topicbox-Delivery-ID: 2:9fans:437d30aa-c441-11e9-8a57-d036212d11b0:522be890-2105-11eb-b15e-8d699134e1fa:M28a9059decf39a3bacc5e4c6:1:gJ-x2P9AhU6oQ6QUTU2JAhcu5Z_jTpzKtd4IPIQ5Ud0 --Apple-Mail=_4D398A68-DC6B-4673-A4AB-1B8014DF0FA5 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=UTF-8 Thanks! Nick Nickolov's k comes with solutions to ~150 AoC-{2015..2022} puzzles. A= ll run when you make k! As an example, here is aoc/21/25.k (Game of Sea Cuc= umbers, which Russ vlogged about):=20 #!../../k n:#'1*:\x:".>v"?0:"i/25" (l;d;r;u):n/'n!'/:(!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 w= hat others do!] Unfortunately no plan9 port as it relies on mmap. https://codeberg.org/ngn/k https://xpqz.github.io/kbook/Introduction.html https://github.com/razetime/ngn-k-tutorial It is also one of the fastest (~0.5 sec to generate and add a billion numbe= rs on a Ryzen 2700). > On Jan 19, 2023, at 9:07 AM, Skip Tavakkolian wrote: >=20 > 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 >=20 > On Thu, Jan 19, 2023 at 7:48 AM Bakul Shah wrote: >>=20 >> On Jan 19, 2023, at 7:57 AM, mkf9 wrote: >>>=20 >>> 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. >>=20 >> 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 am >> maintaining it. Nils also has a book on it but >> AFAIK it doesn't cover anything specific to plan9. >>=20 >> Speaking of little languages.... >> Nils also ported his klong array programming language >> to plan9 & has a book on it! Slightly more verbose >> than k (roughly k3 from kx.com) >>=20 >> Then there is https://github.com/ktye/i which supports >> a dialect of k. Not sure which, probably k6 or k7. And >> there is minimal help in the form of readme.txt but it >> compiles & runs on 9front: >>=20 >> % git/clone https://github.com/ktye/i >> % git/clone https://github.com/ktye/wg >> % cd i >> % go build '-buildvcs=3Dfalse' >> % ./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 >> \\ >>=20 >> There is of course Rob Pike's ivy. ------------------------------------------ 9fans: 9fans Permalink: https://9fans.topicbox.com/groups/9fans/T7b0afbefb53189b6-M28a90= 59decf39a3bacc5e4c6 Delivery options: https://9fans.topicbox.com/groups/9fans/subscription --Apple-Mail=_4D398A68-DC6B-4673-A4AB-1B8014DF0FA5 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=UTF-8
Thanks!

Nick Nickolov's k comes with so= lutions 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= about): 

#!../..= /k
n:#'1*:\x:".>v"?0= :"i/25"
(l;d;r;u):n/'n!= '/:(!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!]
U= nfortunately no plan9 port as it relies on mmap.

https://codeberg.org/ngn/k

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

On Jan 19, 2023, at 9:07 AM, Skip Tavakkolian <sk= ip.tavakkolian@gmail.com> wrote:

Regarding Ivy, rsc has some fantastic example code in the= form of
solutions to the Advent of Code 2021 puzzles:
https://ww= w.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 re= lated changes which is why I am
maintaining it. Nils also has a book o= n it but
AFAIK it doesn't cover anything specific to plan9.
<= br />Speaking of little languages....
Nils also ported his klong array= programming language
to plan9 & has a book on it! Slightly more v= erbose
than k (roughly k3 from kx.com)

Then there is https:= //github.com/ktye/i which supports
a dialect of k. Not sure which, pro= bably k6 or k7. And
there is minimal help in the form of readme.txt bu= t it
compiles & runs on 9front:

% git/clone https://git= hub.com/ktye/i
% git/clone https://github.com/ktye/wg
% cd i
% go build '-buildvcs=3Dfalse'
% ./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
Permalink: https://9fans.topicbox.com/gr= oups/9fans/T7b0afbefb53189b6-Mfc5857d5dc8b7c9e5c3f2194
Delivery option= s: https://9fans.topicbox.com/groups/9fans/subscription

= --Apple-Mail=_4D398A68-DC6B-4673-A4AB-1B8014DF0FA5--