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
    Andrew Tropin (abcdw@fosstodon.org)'s status on Monday, 03-Mar-2025 23:13:53 JST Andrew Tropin Andrew Tropin

    Today I learned that Racket and Guile represent syntax objects for lists differently.

    I don't know yet which one I prefer, because in Guile `syntax` not always returns a syntax-object as one could expect, sometimes it returns a list.

    (use-modules (system syntax))
    (syntax? (syntax (+ 3 4))) ;; => #f
    (syntax? (syntax hi)) ;; => #t

    On the other hand TSPL4 book says that #'(+ 3 4) returns a valid list.

    Who read RnRS? What does it say for this case?

    #scheme #racket #guile #lisp #macros #til

    In conversation about 4 months ago from fosstodon.org permalink

    Attachments


    1. https://cdn.fosstodon.org/media_attachments/files/114/059/449/828/564/963/original/3ce2680367af80db.png

    2. https://cdn.fosstodon.org/media_attachments/files/114/059/523/818/662/189/original/1b95c12d9028a134.png
    • Embed this notice
      RecurringBloatware (recurringbloatware@mastodon.social)'s status on Monday, 03-Mar-2025 23:13:52 JST RecurringBloatware RecurringBloatware
      in reply to

      @abcdw You're doing great.

      Honestly, I am still not "good" enough to be able to do Guile Scheme or Guix because circumstances, but I hope that I could contribute to the ecosystem, especially for Guile and Prescheme. Maybe devenv, but for Guix? Or Kakoune, but Scheme-powered?

      #scheme #guile #lisp #prescheme #RnRs

      In conversation about 4 months ago permalink
    • Embed this notice
      anemofilia (anemofilia@mathstodon.xyz)'s status on Monday, 03-Mar-2025 23:13:52 JST anemofilia anemofilia
      in reply to
      • RecurringBloatware

      @RecurringBloatware I would love to have, maybe even help to develop, a Scheme-powered Kakoune.

      In conversation about 4 months ago permalink
    • Embed this notice
      Andrew Tropin (abcdw@fosstodon.org)'s status on Monday, 03-Mar-2025 23:13:53 JST Andrew Tropin Andrew Tropin
      in reply to

      BTW, today I implemented `syntax->list` using a `syntax-case`. I needed it to get a list of values from args pattern variable of (arg1 args ...) pattern.

      And only now I realized that I don't actually need it, because #'(args ...) is already a list in Guile.

      It solves my previous question about syntax->list I had last week:
      https://fosstodon.org/@abcdw/114018596208278873

      In conversation about 4 months ago permalink

      Attachments


      1. https://cdn.fosstodon.org/media_attachments/files/114/059/592/494/042/682/original/ca18df8109ba6a67.png

      2. No result found on File_thumbnail lookup.
        Andrew Tropin (@abcdw@fosstodon.org)
        from Andrew Tropin
        Are there any similar to Racket's syntax-e and syntax->list functions in Guile Scheme? https://docs.racket-lang.org/reference/stxops.html#%28def._%28%28quote._~23~25kernel%29._syntax-e%29%29 https://docs.racket-lang.org/reference/stxops.html#%28def._%28%28quote._~23~25kernel%29._syntax-~3elist%29%29 #guile #scheme #racket #lisp #macros
    • Embed this notice
      Andrew Tropin (abcdw@fosstodon.org)'s status on Monday, 03-Mar-2025 23:13:53 JST Andrew Tropin Andrew Tropin
      in reply to

      I'm curious: is it too geeky stuff to talk about out loud or is it still ok?)

      In conversation about 4 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.