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
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
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
@sanityinc brrr fascinating but intimidating.... Brrr
=> More informations about this toot | More toots from xvw@merveilles.town
@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
@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
@dfarmer @xvw the stack parts fit really nicely with the array bits IMO
=> More informations about this toot | More toots from sanityinc@hachyderm.io
@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
@xvw @dfarmer maybe, feel free to send a link
=> More informations about this toot | More toots from sanityinc@hachyderm.io
@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
@xvw Okay, some review feedback:
=> More informations about this toot | More toots from sanityinc@hachyderm.io
@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
text/gemini
This content has been proxied by September (ba2dc).