GNU social JP
  • FAQ
  • Login
GNU social JPは日本のGNU socialサーバーです。
Usage/ToS/admin/test/Pleroma FE
  • Public

    • Public
    • Network
    • Groups
    • Featured
    • Popular
    • People

Conversation

Notices

  1. Embed this notice
    screwlisp (screwtape@mastodon.sdf.org)'s status on Monday, 20-Jan-2025 11:12:14 JST screwlisp screwlisp

    #gameDev
    #codeGolf is a #game right?? "Challenges" and all that. #programmingChallenge #programming
    https://lispy-gopher-show.itch.io/lispmoo2/devlog/871475/nud-golf
    I modified my little NUD language to basically be vi but for #lisp lists. Er, if I do say so. YMMV

    Alternately, propose your own challenges for me and others to solve (I'll add them to the git here: https://codeberg.org/tfw/nud/src/branch/master/golf.org )

    If anyone wants help trying or has other commentary, lmk here or during the show.

    In conversation 7 months ago from mastodon.sdf.org permalink

    Attachments


    1. https://mastodon.sdf.org/system/media_attachments/files/113/858/239/709/575/750/original/923ac3776cd25d6a.png
    2. Domain not in remote thumbnail source whitelist: img.itch.zone
      NUD GOLF
      An obvious thing to try is NUD GOLF. This is a programming game where you try and write short computer programs in your golf language. This one is for NUD. See the README (lengthy) or cheatsheet (brie...
    3. Domain not in remote thumbnail source whitelist: codeberg.org
      nud/golf.org at master
      from tfw
      nud - Towards a Pratt parser
    • Embed this notice
      screwlisp (screwtape@mastodon.sdf.org)'s status on Monday, 20-Jan-2025 11:15:43 JST screwlisp screwlisp
      in reply to

      Yes I'm aware (nsubst 'foo 'ofo *test1*) would work, but that's against the spirit of things.

      In conversation 7 months ago permalink
    • Embed this notice
      𝚛𝚊𝚝 (rat@social.sdf.org)'s status on Monday, 20-Jan-2025 12:11:16 JST 𝚛𝚊𝚝 𝚛𝚊𝚝
      in reply to

      @screwtape proposed challenge:
      shall we play a game?
      at the (posix) shell on a pubnix(-like) system
      the admin has installed all the (common) lisps
      what code should happen when you type "help"?
      what other words should be available?
      #newbie #help #unix_surrealism

      In conversation 7 months ago permalink
    • Embed this notice
      screwlisp (screwtape@mastodon.sdf.org)'s status on Monday, 20-Jan-2025 12:20:34 JST screwlisp screwlisp
      in reply to
      • Karsten Johansson
      • 𝚛𝚊𝚝

      @rat
      $ clisp
      [1]> help
      You are in the top-level Read-Eval-Print loop.
      Help (abbreviated :h) = this lit
      Use the usual editing capabilities.
      (quit) or (exit) leaves CLISP.

      @ksaj

      In conversation 7 months ago permalink
    • Embed this notice
      𝚛𝚊𝚝 (rat@social.sdf.org)'s status on Monday, 20-Jan-2025 13:52:05 JST 𝚛𝚊𝚝 𝚛𝚊𝚝
      in reply to
      • Karsten Johansson

      @screwtape @ksaj good golf

      In conversation 7 months ago permalink
    • Embed this notice
      screwlisp (screwtape@mastodon.sdf.org)'s status on Monday, 20-Jan-2025 13:52:05 JST screwlisp screwlisp
      in reply to
      • Karsten Johansson
      • 𝚛𝚊𝚝

      @rat
      Sorry I parsed the words "lisp" nad "help" and @ksaj's clisp is what occured to me. I guess gnu clisp is dependable, sbcl is fancy / the heir to cmucl, ecl is-a-C/C++-shared-lib and directly credits the Kyoto common lisp devs, I never really encountered CCL.

      In conversation 7 months ago permalink
      Alfred M. Szmidt repeated this.
    • Embed this notice
      Karsten Johansson (ksaj@infosec.exchange)'s status on Monday, 20-Jan-2025 15:06:37 JST Karsten Johansson Karsten Johansson
      in reply to
      • 𝚛𝚊𝚝

      @screwtape @rat clisp isn't fussy, which is why I always use it to hammer out my thoughts. Then I use sbcl to fix up any of my wonkiness that clisp permits lol.

      In conversation 7 months ago permalink
    • Embed this notice
      screwlisp (screwtape@mastodon.sdf.org)'s status on Monday, 20-Jan-2025 17:08:43 JST screwlisp screwlisp
      in reply to

      I added the anti-features of apply-nconc-to-register & and erase-history << since nconcing registers really zazzes things up, and erasing history almost but not really forgives a lot of problems.

      NUD/USER> ^^
      (2 3)
      (> #:CURSOR (2 3) 4 (5 6))

      NUD/USER> >>
      (1 #1=(3) 4 (5 6 2 . #1#))

      They don't help my True Purpose of cdr-coding a Pratt Parser, but they do make cons trees into that room in David Bowie's labyrinth

      I HAVE BEEN GENEROUS UP TIL NOW BUT I CAN BE CRUEL

      In conversation 7 months ago permalink
    • Embed this notice
      screwlisp (screwtape@mastodon.sdf.org)'s status on Monday, 20-Jan-2025 17:28:49 JST screwlisp screwlisp
      in reply to

      I haven't utterly failed at thinking about a Pratt parser.

      Pratt uses recursive descent when parsing inputs. Whenever I read an operator, I call that operator's thing (whether it's a NUD or a LED), and it reads inputs until it hits something with equal or lower priority than itself, returning what it has finished recursively discovering was this piece of generated code. I hope instead of recursing, I can just keep moving forwards (in a way that looks a lot like recursing, to be fair).

      In conversation 7 months ago permalink
    • Embed this notice
      Karsten Johansson (ksaj@infosec.exchange)'s status on Monday, 20-Jan-2025 17:29:00 JST Karsten Johansson Karsten Johansson
      in reply to
      • 𝚛𝚊𝚝

      @screwtape @rat Pretty much this. I always use the hyperspec, so I actually forget what each lisp's help looks like. As long as there is a way to query a keyword or a topic, I'm happy.

      Ever seen the Python help? Yes, is thorough. But you get an eye-bleed of a screenful first.

      Sorry I wasn't online most of the weekend, and now posting from my cell phone, lol. Although, I do have a couple of lisps on my phone, but they are far from the usual choices.

      In conversation 7 months ago permalink
    • Embed this notice
      screwlisp (screwtape@mastodon.sdf.org)'s status on Wednesday, 22-Jan-2025 10:01:24 JST screwlisp screwlisp
      in reply to
      • 𝚛𝚊𝚝

      @rat No worries, as I mentioned, I'm holding off on introducing-other-people-to-it until the Arrokoth interface arrives, though I'm trying to engender in myself the habit of posting a golf per day on itch_io already

      In conversation 7 months ago permalink
    • Embed this notice
      𝚛𝚊𝚝 (rat@social.sdf.org)'s status on Wednesday, 22-Jan-2025 10:01:25 JST 𝚛𝚊𝚝 𝚛𝚊𝚝
      in reply to

      @screwtape sorry, totally misconstrued your "challenge" 🙃

      In conversation 7 months ago permalink

Feeds

  • Activity Streams
  • RSS 2.0
  • Atom
  • Help
  • About
  • FAQ
  • TOS
  • Privacy
  • Source
  • Version
  • Contact

GNU social JP is a social network, courtesy of GNU social JP管理人. It runs on GNU social, version 2.0.2-dev, available under the GNU Affero General Public License.

Creative Commons Attribution 3.0 All GNU social JP content and data are available under the Creative Commons Attribution 3.0 license.

Embed this notice