{"id":13782468,"url":"https://github.com/stijlist/roots","last_synced_at":"2025-05-11T15:32:32.398Z","repository":{"id":19076263,"uuid":"22303515","full_name":"stijlist/roots","owner":"stijlist","description":"a lisp interpreter in C","archived":false,"fork":false,"pushed_at":"2017-05-13T07:01:56.000Z","size":100,"stargazers_count":4,"open_issues_count":1,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-05-10T03:49:02.649Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/stijlist.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-07-27T04:48:49.000Z","updated_at":"2020-10-13T05:22:11.000Z","dependencies_parsed_at":"2022-09-01T10:00:33.948Z","dependency_job_id":null,"html_url":"https://github.com/stijlist/roots","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/stijlist%2Froots","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stijlist%2Froots/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stijlist%2Froots/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stijlist%2Froots/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/stijlist","download_url":"https://codeload.github.com/stijlist/roots/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253588746,"owners_count":21932316,"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":[],"created_at":"2024-08-03T18:01:37.580Z","updated_at":"2025-05-11T15:32:32.083Z","avatar_url":"https://github.com/stijlist.png","language":"C","funding_links":[],"categories":["C"],"sub_categories":[],"readme":"This is a toy lisp implementation loosely based on Paul Graham's [The Roots of Lisp](http://ep.yimg.com/ty/cdn/paulgraham/jmc.ps) (postscript file).\n\nWorking:\n\n- car (head)\n- cdr (tail)\n- cons\n- if\n- quote\n- atom\n- eq\n- let\n- lambda\n  - recursion\n  - lexical scope\n  - closures\n- define (for repl only)\n- integer arithmetic\n  - add\n  - subtract\n  - multiply\n  - divide\n- non-alphabetical symbols\n- inspect\n- variadic functions\n- repl works on multiline functions\n- cond\n- program termination with nonzero return in error cases\n\nTODO:\n- bootstrap\n- strings\n- garbage collection\n\n\nknown bugs:\n\nSide-effects in \"if\" or \"cond\" forms don't work:\n\n```\n  (define l (quote (1 2)))\n  (if (inspect (cons 3 l)) 1 0)\n  (inspect l)\n```\n\nUpdated testing strategy:\n\n- input and expected output files\n- shell script that executes the input files with the current version of roots and runs diff on the input and output, printing the filenames of the diffs\n- git precommit hook that updates the diffs\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstijlist%2Froots","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstijlist%2Froots","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstijlist%2Froots/lists"}