Rocksolid Light

Welcome to Rocksolid Light

mail  files  register  newsreader  groups  login

Message-ID:  

Live Free or Live in Massachusetts.


devel / comp.lang.tcl / Re: AdventOfCode 2022

SubjectAuthor
* AdventOfCode 2022Peter Dean
`* AdventOfCode 2022Peter Dean
 `- AdventOfCode 2022Ralf Fassel

1
Re: AdventOfCode 2022

<uiev2n$1dus3$1@dont-email.me>

  copy mid

https://news.novabbs.org/devel/article-flat.php?id=12738&group=comp.lang.tcl#12738

  copy link   Newsgroups: comp.lang.tcl
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder2.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: peterd@nospam.net (Peter Dean)
Newsgroups: comp.lang.tcl
Subject: Re: AdventOfCode 2022
Date: Wed, 8 Nov 2023 13:25:11 +1000
Organization: A noiseless patient Spider
Lines: 20
Message-ID: <uiev2n$1dus3$1@dont-email.me>
References: <yga4ju7zdyg.fsf@akutech.de>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Wed, 8 Nov 2023 03:25:12 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="197cfb2c5047c664b0c77b92ca5ea458";
logging-data="1506179"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18wa2k9VGFM7rR1vpZdM7e5"
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:r/35IzBXgRb1yV41kWUn566Dlg4=
Content-Language: en-AU
In-Reply-To: <yga4ju7zdyg.fsf@akutech.de>
 by: Peter Dean - Wed, 8 Nov 2023 03:25 UTC

On 7/12/22 20:48, Ralf Fassel wrote:
> The event has already started at December 1st (obviously :-),
> but I'd nevertheless like to draw your attention to it:
>
> https://adventofcode.com/2022/about
>
> The first 6 days were easily solvable by using TCL.
>
> Have fun!
> R'
Can anybody help me with day 7? Just practising with last year's,
thought I might try this year's when it comes out. Hence necropost. I
didn't have much trouble with the first 6 either. And managed 16 in
2020. Too old to learn functional language nonsense if I can solve it
in tcl.

The solution certainly involves nested dictionaries but I'm stumped on
the best design

peter

Re: AdventOfCode 2022

<uigam0$1lmcl$1@dont-email.me>

  copy mid

https://news.novabbs.org/devel/article-flat.php?id=12746&group=comp.lang.tcl#12746

  copy link   Newsgroups: comp.lang.tcl
Path: i2pn2.org!i2pn.org!news.chmurka.net!eternal-september.org!feeder2.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: peter@invalid.org (Peter Dean)
Newsgroups: comp.lang.tcl
Subject: Re: AdventOfCode 2022
Date: Thu, 9 Nov 2023 01:49:20 +1000
Organization: A noiseless patient Spider
Lines: 23
Message-ID: <uigam0$1lmcl$1@dont-email.me>
References: <yga4ju7zdyg.fsf@akutech.de> <uiev2n$1dus3$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Wed, 8 Nov 2023 15:49:21 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="197cfb2c5047c664b0c77b92ca5ea458";
logging-data="1759637"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+Hv4Z/xlWczx8jQD8kvu+v"
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:TXV7Wzi+d2Vn3W1nJw4GrHf5D5k=
Content-Language: en-US
In-Reply-To: <uiev2n$1dus3$1@dont-email.me>
 by: Peter Dean - Wed, 8 Nov 2023 15:49 UTC

On 8/11/23 13:25, Peter Dean wrote:
> On 7/12/22 20:48, Ralf Fassel wrote:
>> The event has already started at December 1st (obviously :-),
>> but I'd nevertheless like to draw your attention to it:
>>
>>    https://adventofcode.com/2022/about
>>
>> The first 6 days were easily solvable by using TCL.
>>
>> Have fun!
>> R'
> Can anybody help me with day 7?  Just practising with last year's,
> thought I might try this year's when it comes out. Hence necropost. I
> didn't have much trouble with the first 6 either. And managed 16 in
> 2020.  Too old to learn functional language nonsense if I can solve it
> in tcl.
>
> The solution certainly involves nested dictionaries but I'm stumped on
> the best design
>
> peter
Forget about it. Turns out the trick is using glob patterns in dict key,
something I'd forgotten about.

Re: AdventOfCode 2022

<ygah6lvw5u1.fsf@panther.akutech-local.de>

  copy mid

https://news.novabbs.org/devel/article-flat.php?id=12770&group=comp.lang.tcl#12770

  copy link   Newsgroups: comp.lang.tcl
Path: i2pn2.org!rocksolid2!news.neodome.net!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: ralfixx@gmx.de (Ralf Fassel)
Newsgroups: comp.lang.tcl
Subject: Re: AdventOfCode 2022
Date: Thu, 09 Nov 2023 11:59:02 +0100
Lines: 14
Message-ID: <ygah6lvw5u1.fsf@panther.akutech-local.de>
References: <yga4ju7zdyg.fsf@akutech.de> <uiev2n$1dus3$1@dont-email.me>
<uigam0$1lmcl$1@dont-email.me>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
X-Trace: individual.net gaGmY1uGFU97sQl7rHNIoQFQGs8w12XdcAjweHgwKvSS9afLk=
Cancel-Lock: sha1:UvhvnFk3wtAo1e+EL2KeyEZ6p8w= sha1:ADckFVDYTOLTVXZAooRfgQGPqdQ= sha256:vAbecyd89oTuoPmfEBX52vV2+myCRL7KY1sugqBql84=
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux)
 by: Ralf Fassel - Thu, 9 Nov 2023 10:59 UTC

* Peter Dean <peter@invalid.org>
| On 8/11/23 13:25, Peter Dean wrote:
--<snip-snip>--
| > Can anybody help me with day 7?  Just practising with last year's,
| > thought I might try this year's when it comes out. Hence
| > necropost.
--<snip-snip>--
| Forget about it. Turns out the trick is using glob patterns in dict
| key, something I'd forgotten about.

Hmm, I hadn't used dict glob, but regexps to scan the lines.
If you're interested -> mail me, then I would share my solution...

R'

1
server_pubkey.txt

rocksolid light 0.9.8
clearnet tor