{"id":16590473,"url":"https://github.com/federicotdn/pimacs","last_synced_at":"2025-03-16T21:30:33.568Z","repository":{"id":79465564,"uuid":"402592542","full_name":"federicotdn/pimacs","owner":"federicotdn","description":"A partial, experimental implementation of an Elisp interpreter written in Go","archived":false,"fork":false,"pushed_at":"2024-07-07T20:26:49.000Z","size":1314,"stargazers_count":33,"open_issues_count":0,"forks_count":1,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-03-16T05:51:16.939Z","etag":null,"topics":["elisp","emacs","go","golang","interpreter","lisp"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/federicotdn.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2021-09-02T23:50:20.000Z","updated_at":"2025-03-11T11:36:18.000Z","dependencies_parsed_at":"2024-01-12T02:38:27.468Z","dependency_job_id":"f4e4ebac-ad8e-46ab-b7e0-bb92a140ad5e","html_url":"https://github.com/federicotdn/pimacs","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/federicotdn%2Fpimacs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/federicotdn%2Fpimacs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/federicotdn%2Fpimacs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/federicotdn%2Fpimacs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/federicotdn","download_url":"https://codeload.github.com/federicotdn/pimacs/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243936413,"owners_count":20371510,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["elisp","emacs","go","golang","interpreter","lisp"],"created_at":"2024-10-11T23:13:14.825Z","updated_at":"2025-03-16T21:30:33.025Z","avatar_url":"https://github.com/federicotdn.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n  \u003cimg alt=\"pimacs\" src=\"https://github.com/federicotdn/pimacs/raw/main/etc/logo.png\" width=\"50%\"\u003e\n  \u003cbr/\u003e\n\u003c/p\u003e\n\n## Summary\n\nA partial, experimental implementation of an Elisp (Emacs Lisp) interpreter, written in Go.\n\n## Project goals\n- Practice Go development.\n- Learn more about the Emacs internals, particularly the Elisp interpreter.\n- Learn about Lisp interpreter design in general.\n- Practice reading C code.\n- Learn about lower level functions such as `setjmp`, `longjmp`, etc.\n- Learn about the general challenges found when creating a text editor.\n\n## Usage\nAssuming you have the Go compiler installed, simply use `make build` to compile Pimacs, and then `./pimacs` to start the REPL.\n\nNote that many, many Elisp functions and macros are **not** implemented. You can, however, use the following (among others):\n```\nintern read-from-string read load eval funcall apply progn prog1 cond\nsetq and or if while quote function defconst let let* catch\nunwind-protect condition-case throw signal prin1 print princ\nprin1-to-string null sequencep consp listp symbolp stringp\nnumber-or-marker-p char-or-string-p integerp numberp bufferp\ncharacterp char-table-p vectorp boundp fboundp makunbound fmakunbound\ncar cdr car-safe cdr-safe setcar setcdr symbol-plist symbol-name set\nfset symbol-value symbol-function eq defalias + \u003c bare-symbol cons\nlist length equal eql assq assoc memq get put plistp plist-get plist-put\nnconc provide nreverse reverse require nthcdr nth mapcar buffer-string\ninsert current-buffer set-buffer get-buffer buffer-name buffer-list\nget-buffer-create read-from-minibuffer getenv-internal recursive-edit\nmake-char-table char-table-range set-char-table-range\nchar-table-parent set-char-table-parent multibyte-string-p %\n```\n\nNote that some of these may be only partially implemented, or be a stub/placeholder.\n\n### Examples\nSet a variable and read it:\n```elisp\n\u003e (setq greeting \"hello\")\n\"hello\"\n\u003e greeting\n\"hello\"\n```\n\nCreate a function and call it:\n```elisp\n\u003e (fset 'twice (function (lambda (x) (+ x x))))\n(lambda (x) (+ x x))\n\u003e (twice 21)\n42\n```\n\nTry out a non-local exit:\n```elisp\n\u003e (catch 'test (throw 'test 123))\n123\n```\n\nCreate a vector of integers:\n```elisp\n\u003e (setq vec [1 2 3 4])\n[1 2 3 4]\n\u003e (vectorp vec)\nt\n```\n\nUse backquotes:\n```elisp\n\u003e (setq lst '(2 3 4))\n(2 3 4)\n\u003e `(1 ,@lst 5 6)\n(1 2 3 4 5 6)\n```\n\nCreate a multibyte string:\n```elisp\n\u003e (setq s \"ñandú\")\n\"ñandú\"\n\u003e (multibyte-string-p s)\nt\n```\n\n## Design and general notes\nIn order to read about the design choices for Pimacs, how it works internally, and how it is different from Emacs' Elisp interpreter, see the [design.md](etc/design.md) document.\n\n## Tests\nUse `make test` to run the test suite.\n\n## Similar projects\nCheck out [Rune](https://github.com/CeleritasCelery/rune), a re-implementation of Emacs from scratch using Rust.\n\n## License\nLike Emacs, Pimacs is licensed under the GNU General Public License, version 3.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffedericotdn%2Fpimacs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffedericotdn%2Fpimacs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffedericotdn%2Fpimacs/lists"}