More Advent of Code in Uiua

แชร์
ฝัง
  • เผยแพร่เมื่อ 4 ต.ค. 2024
  • Problem description: adventofcode.c...
    Take a look at Uiua! www.uiua.org/pad

ความคิดเห็น • 12

  • @kaikalii
    @kaikalii 11 หลายเดือนก่อน +15

    Your step-by-step explanation is excellent!
    This problem is weirdly conducive to array programming, and it's a great showcase!
    Just a tip: if you just put the input string on the stack then do `p ←` on the next line, that will bind it the same way and save some indentation.

  • @pvstar1323
    @pvstar1323 11 หลายเดือนก่อน +9

    Thank you for this. The way you do your solutions makes me understand array based languages better

  • @firstname9150
    @firstname9150 4 หลายเดือนก่อน +1

    Great video! Please do more UIUA, love it!

  • @eliseulucenabarros3920
    @eliseulucenabarros3920 10 หลายเดือนก่อน +1

    COMPLETELY MIND BLOWING....

  • @sneezy_hd8362
    @sneezy_hd8362 11 หลายเดือนก่อน +4

    Nice video, please do more of these

  • @code_explorations
    @code_explorations 11 หลายเดือนก่อน +2

    Love it, thank you. I found it hard to follow after a certain point, but am now working through it slowly.

  • @TankorSmash
    @TankorSmash 9 หลายเดือนก่อน

    Great video, thanks for putting it out!

  • @TigerWalts
    @TigerWalts 11 หลายเดือนก่อน +9

    Very sad that you didn't name the winning indices array `w` for `windices`.
    I can happily say I actually followed this all the way through and even knew in general what the next step was going to be.
    I need to get better with Fork, Both and Dip as they all help to prevent stack juggling. I did see there is also a Restack function which you could use to do some monstrous things with.

    • @feathecutie9942
      @feathecutie9942 11 หลายเดือนก่อน +1

      Restack has been deprecated (and i think already officially removed in the latest version) because it made stack shuffling too hard to read/understand

    • @TigerWalts
      @TigerWalts 11 หลายเดือนก่อน

      @@feathecutie9942 Probably for the best

  • @anon_y_mousse
    @anon_y_mousse 11 หลายเดือนก่อน +1

    Was this language designed for code golfing? I think if I were to use this language full time I'd need to type the full name of each function because otherwise I'd go nuts.

  • @8panthermodern2
    @8panthermodern2 11 หลายเดือนก่อน

    This has to be one of the worst-named programming languages I have ever seen