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_ADSP_CUSTOM_MED, DKIM_SIGNED,DKIM_VALID,FREEMAIL_FROM,HTML_MESSAGE,MAILING_LIST_MULTI, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2 autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 27357 invoked from network); 23 Jan 2023 11:33:09 -0000 Received: from tb-ob0.topicbox.com (64.147.108.117) by inbox.vuxu.org with ESMTPUTF8; 23 Jan 2023 11:33:09 -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 A415E2C81E for ; Mon, 23 Jan 2023 06:33:04 -0500 (EST) (envelope-from bounce.mMef1c930d3d165e97d956eb29.r522be890-2105-11eb-b15e-8d699134e1fa@9fans.bounce.topicbox.com) Received: by tb-mx0.topicbox.com (Postfix, from userid 1132) id 90793BF5CB1; Mon, 23 Jan 2023 06:33:04 -0500 (EST) ARC-Authentication-Results: i=2; topicbox.com; arc=pass; dkim=pass (2048-bit rsa key sha256) header.d=gmail.com header.i=@gmail.com header.b=KyaZBrej header.a=rsa-sha256 header.s=20210112 x-bits=2048; dmarc=pass policy.published-domain-policy=none policy.published-subdomain-policy=quarantine policy.applied-disposition=none policy.evaluated-disposition=none (p=none,sp=quarantine,d=none,d.eval=none) policy.policy-from=p header.from=gmail.com; spf=pass smtp.mailfrom=nicklaforge@gmail.com smtp.helo=mail-ed1-f48.google.com; x-internal-arc=fail (as.1.topicbox.com=pass, ams.1.topicbox.com=fail (message has been altered)) (Message modified while forwarding at Topicbox) ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d= topicbox.com; h=mime-version:references:in-reply-to:from:date :message-id:subject:to:content-type:list-help:list-id:list-post :list-subscribe:reply-to:content-transfer-encoding :list-unsubscribe; s=sysmsg-1; t=1674473583; bh=pGHtRP4vej+8V4FY jn67mnwn31NlwmfwTbDLZURc6HU=; b=qJEVf5LXbrwX6brvrY8mw7wblTExyOHX DRITqmmXHHtnwdSBhKXX+O/98er6Wq0MicgbhEiHwhnp8rnsGsnj3AEstM+E/XSs GSgUqkNXkhLC2IMIup05UFyrLnxgfN3MDxyZnNtla74anrFuySt2XFCU91N/9NUS 0G1AFBtMFOQ= ARC-Seal: i=2; a=rsa-sha256; cv=pass; d=topicbox.com; s=sysmsg-1; t= 1674473583; b=ieZaSsu69i38mE1BDaefKs8SVy98AID8rSKeWOPVs/o1j0mJ5r Q9MKtGhkFe3cl5/WG8jD3KXGAEVpeVe8jpTTJpNGuioxJ86a213ae9TGu8WwvWR5 jheDG8qzPHG56hjOIp89uPrKmy2EvfngGEAWmFu/3lGbI/78KuLv8Sw74= Authentication-Results: topicbox.com; arc=pass; dkim=pass (2048-bit rsa key sha256) header.d=gmail.com header.i=@gmail.com header.b=KyaZBrej header.a=rsa-sha256 header.s=20210112 x-bits=2048; dmarc=pass policy.published-domain-policy=none policy.published-subdomain-policy=quarantine policy.applied-disposition=none policy.evaluated-disposition=none (p=none,sp=quarantine,d=none,d.eval=none) policy.policy-from=p header.from=gmail.com; spf=pass smtp.mailfrom=nicklaforge@gmail.com smtp.helo=mail-ed1-f48.google.com; x-internal-arc=fail (as.1.topicbox.com=pass, ams.1.topicbox.com=fail (message 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 Policy is not at enforcement); dkim=pass (2048-bit rsa key sha256) header.d=gmail.com header.i=@gmail.com header.b=KyaZBrej header.a=rsa-sha256 header.s=20210112 x-bits=2048; dmarc=pass policy.published-domain-policy=none policy.published-subdomain-policy=quarantine policy.applied-disposition=none policy.evaluated-disposition=none (p=none,sp=quarantine,d=none,d.eval=none) policy.policy-from=p header.from=gmail.com; iprev=pass smtp.remote-ip=209.85.208.48 (mail-ed1-f48.google.com); spf=pass smtp.mailfrom=nicklaforge@gmail.com smtp.helo=mail-ed1-f48.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=7iiwYY0a; x-me-sender=none; x-ptr=pass smtp.helo=mail-ed1-f48.google.com policy.ptr=mail-ed1-f48.google.com; x-return-mx=pass header.domain=gmail.com policy.is_org=yes (MX Records found: alt2.gmail-smtp-in.l.google.com,gmail-smtp-in.l.google.com,alt3.gmail-smtp-in.l.google.com,alt1.gmail-smtp-in.l.google.com,alt4.gmail-smtp-in.l.google.com); x-return-mx=pass smtp.domain=gmail.com policy.is_org=yes (MX Records found: alt2.gmail-smtp-in.l.google.com,gmail-smtp-in.l.google.com,alt3.gmail-smtp-in.l.google.com,alt1.gmail-smtp-in.l.google.com,alt4.gmail-smtp-in.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= mime-version:references:in-reply-to:from:date:message-id:subject :to:content-type:list-help:list-id:list-post:list-subscribe :reply-to:content-transfer-encoding:list-unsubscribe; s=dkim-1; t=1674473583; x=1674559983; bh=ce1F8F+9qFA7NoEqC4wAIdaHSV61eExO lF+nHpTA3Dc=; b=g9qXrUi0vgtqwo2+vxQLR+0RTr3XCPfYEPIH3x+e2iFeLjek zGZ9JoMBnS0ba09HSSwZcJ/z8iDN6QY7U9FmDexJmUGALtLg9FXmz/4ZdtzACAhY CegwF6OrQUCchUFG9KFtZJLUamkVV9NdPpNgsglOvvVwDI7ERP57RW3EHwI= Received: from tb-mx0.topicbox.com (localhost.local [127.0.0.1]) by tb-mx0.topicbox.com (Postfix) with ESMTP id 53C53BF5870 for <9fans@9fans.net>; Mon, 23 Jan 2023 06:32:45 -0500 (EST) (envelope-from nicklaforge@gmail.com) Received: from tb-mx0.topicbox.com (localhost [127.0.0.1]) by tb-mx0.topicbox.com (Authentication Milter) with ESMTP id D9498A56C7A; Mon, 23 Jan 2023 06:32:45 -0500 ARC-Seal: i=1; a=rsa-sha256; cv=none; d=topicbox.com; s=arcseal; t= 1674473565; b=KvrKhQsdmQ2ujjfNpwaYAyTSiL35k4dj6uDqZStCIM7AFrP8Pd vIr3DfSFe5vvrx6DlSJSHdVIRE+8X3AAQ1XA4KMPEtioNGjnH9Lhpi2eHBttO8ny wUN4LEmMeloiu1ZF0LCr+0LW5lPSYyNlCU0quo+EfEpxSzvSF3ad9sIcOmK3Dv06 knxp5mDmAlBffs7nCng7ch2tIcKo7A0NR4x3Y1lceGkxzESpXBgo8cQ9hJDmbL8z u+bYmtGsywkAEAo5OPAbOekyf05DocshrNqTjM+hX0Xl8dIGO8fnDWatAgRSTkge Gmj9Fjjf7aVAov9Sh0BhPIo20BADdpm0uAJw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d= topicbox.com; h=mime-version:references:in-reply-to:from:date :message-id:subject:to:content-type; s=arcseal; t=1674473565; bh=QK/K8oSNnsShaKb8bpaKzmRiWJUOuJ/VwpusR8InMBE=; b=VOGuqnHOxVwt uCF9h+GaMxwFIXN52BKPl4LxKkeiWW9EGmyDNVWUg/hvXsP2sUWJXx5PX8I6yx7O wvXbBGI+ZlaZk+//YMiTfh72TKiKhHXK8iOMUSpT49TR7wgReo6INcdBjUy0Xd9o mQgIJMhpsIqphpA/+nSx/+GtmGaQa87D3DteEfaB74vUFzJOSZLoAtx2v05zfvVI +CWfrJ0Waml/Q3g8e4R7O1+JTev8b0D7P5pRKDs/1rXulz0QiLOgnuSpl6SrEN3b FiBCnho83QYHr/GTZ/i5zNAb3N2Hgi15C75b39mmioLX9LGCw+ZpbR6+8AEdynrV 4XSXv6rsIg== ARC-Authentication-Results: i=1; tb-mx0.topicbox.com; arc=none (no signatures found); bimi=skipped (DMARC Policy is not at enforcement); dkim=pass (2048-bit rsa key sha256) header.d=gmail.com header.i=@gmail.com header.b=KyaZBrej header.a=rsa-sha256 header.s=20210112 x-bits=2048; dmarc=pass policy.published-domain-policy=none policy.published-subdomain-policy=quarantine policy.applied-disposition=none policy.evaluated-disposition=none (p=none,sp=quarantine,d=none,d.eval=none) policy.policy-from=p header.from=gmail.com; iprev=pass smtp.remote-ip=209.85.208.48 (mail-ed1-f48.google.com); spf=pass smtp.mailfrom=nicklaforge@gmail.com smtp.helo=mail-ed1-f48.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=7iiwYY0a; x-me-sender=none; x-ptr=pass smtp.helo=mail-ed1-f48.google.com policy.ptr=mail-ed1-f48.google.com; x-return-mx=pass header.domain=gmail.com policy.is_org=yes (MX Records found: alt2.gmail-smtp-in.l.google.com,gmail-smtp-in.l.google.com,alt3.gmail-smtp-in.l.google.com,alt1.gmail-smtp-in.l.google.com,alt4.gmail-smtp-in.l.google.com); x-return-mx=pass smtp.domain=gmail.com policy.is_org=yes (MX Records found: alt2.gmail-smtp-in.l.google.com,gmail-smtp-in.l.google.com,alt3.gmail-smtp-in.l.google.com,alt1.gmail-smtp-in.l.google.com,alt4.gmail-smtp-in.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: gggruggvucftvghtrhhoucdtuddrgedvhedruddukedgvdeiucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdggtfgfnhhsuhgsshgtrhhisggvpdfu rfetoffkrfgpnffqhgenuceurghilhhouhhtmecufedttdenucgoufhushhpvggtthffoh hmrghinhculdegledmnecujfgurhepgghfjgfhfffkuffvtgesrgdtreertddtjeenucfh rhhomheppfhitghkucfnrgfhohhrghgvuceonhhitghklhgrfhhorhhgvgesghhmrghilh drtghomheqnecuggftrfgrthhtvghrnhepjeekteefkeeggffhgedtveelkedvfedvvdek vdelffevfeelvdfhvdfgueetgfeinecuffhomhgrihhnpegtrghllhdqtggtrdhorhhgpd gtohguvggsvghrghdrohhrghdpghhithhhuhgsrdhiohdpghhithhhuhgsrdgtohhmpdih ohhuthhusggvrdgtohhmpdhkgidrtghomhdpthhophhitggsohigrdgtohhmnecukfhppe dvtdelrdekhedrvddtkedrgeeknecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghm pehinhgvthepvddtledrkeehrddvtdekrdegkedphhgvlhhopehmrghilhdqvgguuddqfh egkedrghhoohhglhgvrdgtohhmpdhmrghilhhfrhhomhepoehnihgtkhhlrghfohhrghgv sehgmhgrihhlrdgtohhmqe X-ME-VSScore: 49 X-ME-VSCategory: clean Received-SPF: pass (gmail.com ... _spf.google.com: Sender is authorized to use 'nicklaforge@gmail.com' in 'mfrom' identity (mechanism 'include:_netblocks.google.com' matched)) receiver=tb-mx0.topicbox.com; identity=mailfrom; envelope-from="nicklaforge@gmail.com"; helo=mail-ed1-f48.google.com; client-ip=209.85.208.48 Received: from mail-ed1-f48.google.com (mail-ed1-f48.google.com [209.85.208.48]) (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>; Mon, 23 Jan 2023 06:32:44 -0500 (EST) (envelope-from nicklaforge@gmail.com) Received: by mail-ed1-f48.google.com with SMTP id v30so14169270edb.9 for <9fans@9fans.net>; Mon, 23 Jan 2023 03:32:44 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=QK/K8oSNnsShaKb8bpaKzmRiWJUOuJ/VwpusR8InMBE=; b=7iiwYY0aA9jaL1bEMHHy9niK7ArJXsyoHSqu9zlS0wJUblOUCUN/VZekEsB1DC3DmF nM4Hr0fybRXEk1LnSnLx+0DMT8CQUQM2A1YXnfvkNWCSc7G1ZkucvBmwnFznwdQublxn 5I3EcG8TBc/syZ11Cie/mxU1SEqt+Yd3bv/sSA/RhLNLokiPxImK0QIsVakfSSTOHGV7 rKEnGm/5fOl5Ua342EgSjCCElKASPExmJBX22tNYSK5BIOTF9eYc0A3xZumCOm5zjzFe 9vj+MP3MWRCwfCkMWIWVaC0EWEKrclEBmsYdjF364TD1PlfYPNmqXr9kbb7lqlp4YH8O 0vkQ== X-Gm-Message-State: AFqh2koZzp4IuKbmOAas1nMbtZEh461L+9wtAlC7VcPZju1eNxZDXNA7 dnmJ+gpd656xfZEIfaTQNAsNuI1wPY68LXG+7d5Bt1ihiQ== X-Google-Smtp-Source: AMrXdXseCN1qimrIKUQZgC5h8SPvnk0jSN1bX7Q9Hb2SEb0jt1JJm0Tz5wCVLaYhWfjF1KFYFOMzcB3PoNrMST+dcfA= X-Received: by 2002:a05:6402:24a3:b0:47e:d405:b952 with SMTP id q35-20020a05640224a300b0047ed405b952mr2596457eda.228.1674473563385; Mon, 23 Jan 2023 03:32:43 -0800 (PST) MIME-Version: 1.0 References: <8760942b-b1c9-aed1-c194-9ba15ffe2c4a@riseup.net> <436AD830-991E-42F8-9CFC-A18CE66E1A52@iitbombay.org> In-Reply-To: From: Nick LaForge Date: Mon, 23 Jan 2023 03:31:30 -0800 Message-ID: Subject: Re: [9fans] plan 9 and lisp To: 9fans <9fans@9fans.net> Content-Type: multipart/alternative; boundary=000000000000ee73cf05f2ecc1df Topicbox-Policy-Reasoning: allow: sender is a member Topicbox-Message-UUID: abe3f11a-9b11-11ed-b449-c9ba9e681f9f Archived-At: =?UTF-8?B?PGh0dHBzOi8vOWZhbnMudG9waWNib3guY29tL2dyb3Vwcy85?= =?UTF-8?B?ZmFucy9UN2IwYWZiZWZiNTMxODliNi1NZWYxYzkzMGQzZDE2NWU5N2Q5NTZl?= =?UTF-8?B?YjI5Pg==?= 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:Mef1c930d3d165e97d956eb29:1:9M6hzfpblpQfsf2qis2JtS1u7LaqEiw2uUNIaxz6Zpk --000000000000ee73cf05f2ecc1df Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Not Plan 9, but lately I've been working in Chicken, which is a lovely 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 Bakul Shah wrote: > Thanks! > > Nick Nickolov's k comes with solutions 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!] > 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 > numbers on a Ryzen 2700). > > On Jan 19, 2023, at 9:07 AM, Skip Tavakkolian > wrote: > > 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 wrote: > > > On Jan 19, 2023, at 7:57 AM, mkf9 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 am > maintaining 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 plan9 & has a book on it! Slightly more verbose > than k (roughly k3 from kx.com) > > 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: > > % 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. >=20 > *9fans * / 9fans / see discussions > + participants > + delivery options > Permalink > ------------------------------------------ 9fans: 9fans Permalink: https://9fans.topicbox.com/groups/9fans/T7b0afbefb53189b6-Mef1c9= 30d3d165e97d956eb29 Delivery options: https://9fans.topicbox.com/groups/9fans/subscription --000000000000ee73cf05f2ecc1df Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Not Plan 9, but lately I've been work= ing in Chicken, which is a lovely 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 Bakul Shah <bakul@iitbombay.org> wrote:
Thanks!

Nick Nicko= lov's k comes with solutions to ~150  AoC-{2015..2022} puzzles. Al= l run when you make k! As an example, here is aoc/21/25.k (Game of Sea Cucu= mbers, 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!]
Unfortunately no plan9 port as it relies on mmap.


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.tavak= kolian@gmail.com> wrote:

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 am
maintaining it. Nils also has a book on it b= ut
AFAIK it doesn't cover anything specific to plan9.

S= peaking of little languages....
Nils also ported his klong array progr= amming language
to plan9 & has a book on it! Slightly more verbose=
than k (roughly k3 from k= x.com)

Then there is https://github.com/ktye/i which supports
a dialec= t of k. Not sure which, probably k6 or k7. And
there is minimal help i= n the form of readme.txt but it
compiles & runs on 9front:
% git/clone htt= ps://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
\\

There is of course Ro= b Pike's ivy.

---------------------------------= ---------
9fans: 9fans
Permalink: https://9fans.topicbox.com/groups/9fans/T7b0afbefb53189b6-Mfc5857d5= dc8b7c9e5c3f2194
Delivery options: https://9fans.topicbox.= com/groups/9fans/subscription

= --000000000000ee73cf05f2ecc1df--