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

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

# Example program -- LISP syntax # Create a "function" from a quoted list: (set 'four-plus-five '( (set 'x 4) (set 'y 5) (print (+ x y)) ) ) # But the quoted list isn't special... # We could construct it "by hand": (set 'four-times-five (make-array)) (set 'temp-line (make-array)) (push temp-line "print") (set 'temp-call (make-array)) (push temp-call "*") (push temp-call 4) (push temp-call 5) (push temp-line temp-call) (push four-times-five temp-line) # Call our functions: (four-plus-five) (print ln) (four-times-five) (print ln)

Download link

https://files.mastodon.social/media_attachments/files/114/308/867/852/607/502/original/5788a7604ed44be1.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

    This is what I came up with; I think of it as "0-lisp". In LISP a "2-LISP" is a LISP where functions and variables live in different namespaces, and in a "1-LISP" they live in one namespace. Projecting backward, in my 0-LISP, the distinction itself disappears totally; functions are lists and *any list can be executed*. I wanted to know what this changed. Here's what I found:

    It helps very little, and makes certain important things a huge pain. Oops! Still, it was very educational to learn this.

    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.