{"id":24058230,"url":"https://github.com/ctsrc/cl","last_synced_at":"2026-02-07T07:01:31.925Z","repository":{"id":84662173,"uuid":"397012371","full_name":"ctsrc/cl","owner":"ctsrc","description":"Solutions to some exercises from the book ANSI Common Lisp","archived":false,"fork":false,"pushed_at":"2021-08-27T03:01:30.000Z","size":43,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-07-30T01:33:47.237Z","etag":null,"topics":["exercises","problems","solutions"],"latest_commit_sha":null,"homepage":"","language":"Common Lisp","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/ctsrc.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-08-16T23:29:12.000Z","updated_at":"2024-02-05T23:10:51.000Z","dependencies_parsed_at":null,"dependency_job_id":"65c92966-03d7-4f8b-b7af-5f35b154a929","html_url":"https://github.com/ctsrc/cl","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ctsrc/cl","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ctsrc%2Fcl","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ctsrc%2Fcl/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ctsrc%2Fcl/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ctsrc%2Fcl/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ctsrc","download_url":"https://codeload.github.com/ctsrc/cl/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ctsrc%2Fcl/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29188304,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-07T05:07:31.176Z","status":"ssl_error","status_checked_at":"2026-02-07T05:06:15.227Z","response_time":63,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["exercises","problems","solutions"],"created_at":"2025-01-09T05:56:30.295Z","updated_at":"2026-02-07T07:01:31.910Z","avatar_url":"https://github.com/ctsrc.png","language":"Common Lisp","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Solutions to some exercises from the book ANSI Common Lisp\n\nThis repository contains solutions that I have written to a few\nof the exercises from the book *ANSI Common Lisp* by Paul Graham.\nThe book came out in year 1996, and is an interesting read today\n(year 2021) as well, in my opinion.\n\n## Paul Graham\n\npg, as you may know, was one of the co-founders of\n[Y Combinator](http://ycombinator.com/), the first of a new type\nof startup incubator. Prior to that he co-founded\n[Viaweb](https://en.wikipedia.org/wiki/Viaweb), in 1995.\nThey wrote Viaweb partially in Lisp.\n\npg has written a couple of other books as well, including\n*Hackers \u0026 Painters: Big Ideas from the Computer Age*. This other\nbook I have read also and I enjoyed that one too.\n\n## The book ANSI Common Lisp\n\nYou can read reviews and stuff about the book *ANSI Common Lisp* here:\n\nhttps://www.goodreads.com/book/show/41801.ANSI_Common_Lisp\n\nAnd you can see the Amazon listing for the book here (affiliate link):\n\n[![An image showing the cover of the book ANSI Common Lisp by Paul Graham](https://ws-na.amazon-adsystem.com/widgets/q?_encoding=UTF8\u0026MarketPlace=US\u0026ASIN=0133708756\u0026ServiceVersion=20070822\u0026ID=AsinImage\u0026WS=1\u0026Format=_SL250_\u0026tag=codetrotter-20)](https://www.amazon.com/gp/product/0133708756/ref=as_li_tl?ie=UTF8\u0026camp=1789\u0026creative=9325\u0026creativeASIN=0133708756\u0026linkCode=as2\u0026tag=codetrotter-20\u0026linkId=79f72e2b82ad2b55bae9fbbe53ee4a65)\n\n[ANSI Common Lisp listing on Amazon](https://www.amazon.com/gp/product/0133708756/ref=as_li_tl?ie=UTF8\u0026camp=1789\u0026creative=9325\u0026creativeASIN=0133708756\u0026linkCode=as2\u0026tag=codetrotter-20\u0026linkId=5c1780d903bedacafcd8ee7f8a27d3b0)\n\nYou will probably want to buy it used. That's what I did. I mean, it's\na good book, but I don't think almost any book should cost you \u003e$100 USD\nin 2021-dollars. Somewhere between $15 and $45 is a fair price\nin 2021-dollars for most good books.\n\nBuying it used from Amazon you can get it at a decent price.\nBuying it new from Amazon will cost you over $100 at the moment. So yeah,\nbuy it used somewhere. Either at Amazon or someplace else.\n\n## About these solutions\n\nAll the solutions include a comment at the start of the file, with a reproduction\nof the assignment text so that it makes sense to the reader what the program is trying\nto do without having to consult with the paperback copy of the ANSI Common Lisp book.\n\nExercise solutions are named according to chapter and exercise number.\n\n## Running the solutions\n\nBefore attempting to run any of the solutions, please ensure that you have\nthe necessary dependencies installed on your computer. You can find a list\nof dependencies that need to be installed in the section titled\n[Prerequisites](#prerequisites), below.\n\nRun any of the solutions, e.g.:\n\n```zsh\n./e-10-1.cl\n```\n\n### Special notes about running some of the solutions\n\n* `e-11-2.cl` produces a file named `spheres.pgm` as its output.\n  The PGM format is a lowest common denominator grayscale file format.\n  It is designed to be extremely easy to learn and write programs for.\n  See http://netpbm.sourceforge.net/doc/pgm.html for details\n  about the PGM format.\n\n  On macOS you can `open spheres.pgm` or double-click on it and\n  by default it will open in Preview where you can view it.\n  On other platforms there are programs that allow you to view\n  PGM files as well. Look up the details for your platform online.\n\n## Prerequisites\n\nThe following dependencies need to be installed in order\nto run the code in this repository and in order to be able\nto view the generated output:\n\n* Steel Bank Common Lisp\n* Graphviz\n\nThe subsections that follow explain how to install these\ndependencies on some common Unix operating systems, including\nmacOS, FreeBSD and some popular Linux distros.\n\n### macOS\n\nAssuming you have [Homebrew](https://brew.sh/) installed:\n\n```zsh\nbrew install sbcl graphviz\n```\n\n### FreeBSD\n\n(The command below needs to be run as root, I recommend using `doas` to execute commands as root.)\n\n```zsh\npkg install sbcl graphviz\n```\n\n### Linux\n\nUse the package manager or other type of preferred installation method that they use on your distro.\nHere's how to do it for some of the most common Linux distros.\n\n#### Debian / Ubuntu / KDE Neon / most Debian derivatives:\n\n```zsh\nsudo apt-get install sbcl graphviz\n```\n\n#### Fedora\n\n```zsh\nsudo dnf install sbcl graphviz\n```\n\n#### openSUSE Tumbleweed\n\n```zsh\nsudo zypper install sbcl graphviz\n```\n\n#### openSUSE Leap\n\nPackage `sbcl` is not available for openSUSE Leap 15.3 at the time of this\nwriting according to https://software.opensuse.org/package/sbcl\n\nPackage `graphviz` is not available for openSUSE Leap 15.3 at the time of this\nwriting according to https://software.opensuse.org/package/graphviz\n\n#### Arch Linux\n\n```zsh\nsudo pacman -S sbcl graphviz\n```\n\n#### Gentoo Linux\n\n```zsh\nemerge --ask dev-lisp/sbcl media-gfx/graphviz\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fctsrc%2Fcl","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fctsrc%2Fcl","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fctsrc%2Fcl/lists"}