Ancestors

Written by Steve Purcell on 2024-12-15 at 15:34

Poking at #AdventOfCode in #uiua again today, trying to remember some of the language from a year ago. Here's Day 2:

⊜(□⊜⋕≠@ .)≠@\n.

SafeA ← +⊃(/×∊⇡¯3|/×∊+1⇡3)⧈(/-)2

SafeB ← >0/+≡(SafeA▽) ⊙¤ ⊞≠.⇡⧻ .

∩(/+) ∵⊃(SafeB°□|SafeA°□)

https://www.uiua.org/pad?src=0_14_0-rc_1__IyBBT0MgMgokIDcgNiA0IDIgMQokIDEgMiA3IDggOQokIDkgNyA2IDIgMQokIDEgMyAyIDQgNQokIDggNiA0IDQgMQokIDEgMyA2IDcgOQoK4oqcKOKWoeKKnOKLleKJoEAgLiniiaBAXG4uClNhZmVBIOKGkCAr4oqDKC_Dl-KIiuKHocKvM3wvw5fiiIorMeKHoTMp4qeIKC8tKTIKU2FmZUIg4oaQID4wLyviiaEoU2FmZUHilr0pIOKKmcKkIOKKnuKJoC7ih6Hip7sgLgriiKkoLyspIOKIteKKgyhTYWZlQsKw4pahfFNhZmVBwrDilqEpCg==

=> More informations about this toot | More toots from sanityinc@hachyderm.io

Written by Steve Purcell on 2024-12-15 at 16:40

And Day 3:

A ← /+≡/× ∵⋕≡↘ 1 regex "mul\\((\\d+),(\\d+)\\)"

B ← /+⊜(A ↘ ⬚∞⊢⊚ ⌕ "do()".) ¬⦷"don't()" . ⊂ "do()"

⊃(B|A)

https://www.uiua.org/pad?src=0_14_0-rc_1__IyBBT0MgRGF5IDMKJCB4bXVsKDIsNCkmbXVsWzMsN10hXmRvbid0KClfbXVsKDUsNSkrbXVsKDMyLDY0XShtdWwoMTEsOCl1bmRvKCk_bXVsKDgsNSkpCgpBIOKGkCAvK-KJoS_DlyDiiLXii5XiiaHihpggMSByZWdleCAibXVsXFwoKFxcZCspLChcXGQrKVxcKSIKQiDihpAgLyviipwoQSDihpgg4qya4oie4oqi4oqaIOKMlSAiZG8oKSIuKSDCrOKmtyJkb24ndCgpIiAuIOKKgiAiZG8oKSIK4oqDKEJ8QSkK

[#]AdventOfCode #uiua

=> More informations about this toot | More toots from sanityinc@hachyderm.io

Toot

Written by Steve Purcell on 2024-12-15 at 18:18

Day 4:

⊜∘¬∊@\n.

IsXMAS ← /+≡(≍"XMAS")⊂≡⇌.[⊃(⊢|⊢⍉|⊡⍉⊟⇌.⇡4|⊡⍉⊟.⇡4)]

IsCrossMAS ← =2/+≡(≍"MAS") ⊂≡⇌.[⊃(⊡⍉⊟⇌.⇡3|⊡⍉⊟.⇡3)]

∩(/+♭) ⬚@.⧈⊃(IsCrossMAS|IsXMAS) 4_4

https://www.uiua.org/pad?src=0_14_0-rc_1__IyBBT0MgRGF5IDQKCiQgTU1NU1hYTUFTTQokIE1TQU1YTVNNU0EKJCBBTVhTWE1BQU1NCiQgTVNBTUFTTVNNWAokIFhNQVNBTVhBTU0KJCBYWEFNTVhYQU1BCiQgU01TTVNBU1hTUwokIFNBWEFNQVNBQUEKJCBNQU1NTVhNTU1NCiQgTVhNWEFYTUFTWAoK4oqc4oiYwqziiIpAXG4uCklzWE1BUyAgICAg4oaQIC8r4omhKOKJjSJYTUFTIiniioLiiaHih4wuW-KKgyjiiqJ84oqi4o2JfOKKoeKNieKKn-KHjC7ih6E0fOKKoeKNieKKny7ih6E0KV0KSXNDcm9zc01BUyDihpAgPTIvK-KJoSjiiY0iTUFTIikg4oqC4omh4oeMLlviioMo4oqh4o2J4oqf4oeMLuKHoTN84oqh4o2J4oqfLuKHoTMpXQriiKkoLyvima0pIOKsmkAu4qeI4oqDKElzQ3Jvc3NNQVN8SXNYTUFTKSA0XzQK

[#]AdventOfCode #uiua

=> More informations about this toot | More toots from sanityinc@hachyderm.io

Descendants

Written by RasterInterrupt on 2024-12-15 at 18:56

@sanityinc I’m pretty sure I saw a text like this on Mulder’s pinboard in The X-Files.

=> More informations about this toot | More toots from rasterinterrupt@oldbytes.space

Written by Steve Purcell on 2024-12-15 at 19:18

@rasterinterrupt hahahaha! 😂

=> More informations about this toot | More toots from sanityinc@hachyderm.io

Written by Xavier Van de Woestyne on 2024-12-15 at 19:32

@sanityinc brrr fascinating but intimidating.... Brrr

=> More informations about this toot | More toots from xvw@merveilles.town

Written by Steve Purcell on 2024-12-15 at 19:39

@xvw I think it's easier to grok than APL or J, and the docs and interactive pad are great for learning stuff. Worth a dabble if it tickles your brain!

=> More informations about this toot | More toots from sanityinc@hachyderm.io

Written by Steve Purcell on 2024-12-15 at 19:40

@xvw in particular, the pad lets you build things up interactively like in a repl, so the programming flow can be fun

=> More informations about this toot | More toots from sanityinc@hachyderm.io

Written by Xavier Van de Woestyne on 2024-12-15 at 19:41

@sanityinc nice (but yes, for me APL and J are ... VERY intimidating).

=> More informations about this toot | More toots from xvw@merveilles.town

Written by Dan Farmer on 2024-12-15 at 19:52

@sanityinc @xvw J is like catnip for me. Evil catnip. I've been curious about uiua vs bqn as far as the next-gen APLs go though 🤔 (edit: oh, uiua is stack-based too probably shouldn't have called it a next gen apl then)

=> More informations about this toot | More toots from dfarmer@hachyderm.io

Written by Steve Purcell on 2024-12-15 at 20:53

@dfarmer @xvw the stack parts fit really nicely with the array bits IMO

=> More informations about this toot | More toots from sanityinc@hachyderm.io

Written by Xavier Van de Woestyne on 2024-12-15 at 21:19

@sanityinc @dfarmer impressive !

And, it is out of context but would you liké to review some ... Elisp ?

=> More informations about this toot | More toots from xvw@merveilles.town

Written by Steve Purcell on 2024-12-15 at 21:49

@xvw @dfarmer maybe, feel free to send a link

=> More informations about this toot | More toots from sanityinc@hachyderm.io

Written by Xavier Van de Woestyne on 2024-12-16 at 01:22

@sanityinc @dfarmer oh ! Thanks ! https://github.com/tarides/ocaml-eglot

It is m'y first Emacs purpose !

=> More informations about this toot | More toots from xvw@merveilles.town

Written by Steve Purcell on 2024-12-16 at 10:06

@xvw Okay, some review feedback:

=> More informations about this toot | More toots from sanityinc@hachyderm.io

Written by Xavier Van de Woestyne on 2024-12-16 at 10:23

@sanityinc thanks a lot!!! It is very valuable and i'll push your suggestions soon as possible !

=> More informations about this toot | More toots from xvw@merveilles.town

Proxy Information
Original URL
gemini://mastogem.picasoft.net/thread/113658214264043429
Status Code
Success (20)
Meta
text/gemini
Capsule Response Time
416.238222 milliseconds
Gemini-to-HTML Time
3.868645 milliseconds

This content has been proxied by September (ba2dc).