{"id":16248357,"url":"https://github.com/lynn/cfunc","last_synced_at":"2025-03-19T19:31:56.639Z","repository":{"id":83430641,"uuid":"296346742","full_name":"lynn/cfunc","owner":"lynn","description":"A Norvig-y Lisp implementation I tried to write in C in 2015 or so","archived":false,"fork":false,"pushed_at":"2020-09-18T01:32:16.000Z","size":37,"stargazers_count":7,"open_issues_count":0,"forks_count":1,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-02-28T20:39:50.781Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/lynn.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,"publiccode":null,"codemeta":null}},"created_at":"2020-09-17T14:12:08.000Z","updated_at":"2024-02-21T11:45:40.000Z","dependencies_parsed_at":null,"dependency_job_id":"5aa35ad6-8895-4744-beb7-31fbe6a974ba","html_url":"https://github.com/lynn/cfunc","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/lynn%2Fcfunc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lynn%2Fcfunc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lynn%2Fcfunc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lynn%2Fcfunc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lynn","download_url":"https://codeload.github.com/lynn/cfunc/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244014176,"owners_count":20383715,"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-10-10T14:41:22.951Z","updated_at":"2025-03-19T19:31:56.340Z","avatar_url":"https://github.com/lynn.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"I dug this weird little unfinished C implementation of a Lisp out of my Dropbox (dated 2015). It seems to be based on that one [Peter Norvig article](https://norvig.com/lispy.html). Writing C is tricky.\n\nLooking back, it has a fun way of parsing code and making an S-expression tree in one pass. The output is nice and colorful, too. Sadly, it just keeps allocating stuff on a heap until it runs out and dies.\n\nIt's 2020 as I write this, so maybe if I let it sit on GitHub for five more years, by 2025 I'll have figured out how to implement garbage collection.\n\n**EDIT**: psych, I implemented mark-and-sweep, maybe\n\n# Usage\n\n```\nmake\n./cfunc examples/map.lisp\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flynn%2Fcfunc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flynn%2Fcfunc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flynn%2Fcfunc/lists"}