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

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

$ ./target/release/lisp0 sample/demo2.l0 at idx: 0 value: 10 at idx: 1 value: 4 at idx: 2 value: 21 at idx: 3 value: 2 at idx: 4 value: 1

Download link

https://files.mastodon.social/media_attachments/files/114/308/920/710/182/197/original/e244970aaf7b7cab.png

Notices where this attachment appears

  1. Embed this notice
    mcc (mcc@mastodon.social)'s status on Friday, 11-Apr-2025 03:06:44 JST mcc mcc
    in reply to

    Now, since *I'm* the one writing this LISP, I do get to make some changes. The main thing I wanted to change, as it's the #1 thing that infuriates me writing LISP, is parentheses. This "LISP" has a syntax where each line (as separated by newlines or commas) implicitly has () around it. Meanwhile, {} and [] are shorthand, for

    {x,y,z} => '((x)(y)(z))

    [x,y,z] => (make-array [(x),(y),(z)])

    In other words {} is functions (quoted lists) and [] is array literals.

    Is this still a LISP? I don't care!

    In conversation about a month ago from mastodon.social permalink
  • 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.