{"id":33231759,"url":"https://github.com/alex-gutev/generic-cl","last_synced_at":"2026-01-18T06:01:17.646Z","repository":{"id":45182712,"uuid":"159969827","full_name":"alex-gutev/generic-cl","owner":"alex-gutev","description":"Generic function interface to standard Common Lisp functions","archived":false,"fork":false,"pushed_at":"2024-11-15T13:01:32.000Z","size":662,"stargazers_count":157,"open_issues_count":1,"forks_count":8,"subscribers_count":14,"default_branch":"master","last_synced_at":"2025-12-09T13:51:15.144Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://alex-gutev.github.io/generic-cl/","language":"Common Lisp","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/alex-gutev.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","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},"funding":{"github":"alex-gutev","patreon":null,"open_collective":null,"ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"custom":null}},"created_at":"2018-12-01T17:30:33.000Z","updated_at":"2025-10-05T06:32:49.000Z","dependencies_parsed_at":"2024-06-20T04:25:21.285Z","dependency_job_id":"75ae916b-1a48-4df7-bee8-b94b340277ab","html_url":"https://github.com/alex-gutev/generic-cl","commit_stats":null,"previous_names":[],"tags_count":13,"template":false,"template_full_name":null,"purl":"pkg:github/alex-gutev/generic-cl","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alex-gutev%2Fgeneric-cl","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alex-gutev%2Fgeneric-cl/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alex-gutev%2Fgeneric-cl/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alex-gutev%2Fgeneric-cl/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/alex-gutev","download_url":"https://codeload.github.com/alex-gutev/generic-cl/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alex-gutev%2Fgeneric-cl/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28531991,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-18T00:39:45.795Z","status":"online","status_checked_at":"2026-01-18T02:00:07.578Z","response_time":98,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":[],"created_at":"2025-11-16T18:00:20.905Z","updated_at":"2026-01-18T06:01:17.641Z","avatar_url":"https://github.com/alex-gutev.png","language":"Common Lisp","readme":"# GENERIC-CL\n\nGENERIC-CL provides a generic function wrapper over various functions\nin the Common Lisp standard, such as equality predicates and sequence\noperations. The goal of this wrapper is to provide a standard\ninterface to common operations, such as testing for the equality of\ntwo objects, which is extensible to user-defined types.\n\n## Example\n\nIn Common lisp you have a number of different equality comparison\nfunctions for different object types. Worse still you have to invent a\nnew name for the comparison functions for each of your own object\ntypes.\n\n**Standard Common Lisp:**\n\n```lisp\n(eq 'a x)           ;; Symbols\n(= 1 2)             ;; Numbers\n(equal '(1 2 3) x)  ;; Lists\n(equal \"hello\" y)   ;; Strings\n(equalp #(1 2 3) z) ;; Arrays\n\n(foo-equal x y)     ;; Instances of class foo\n```\n\nIn GENERIC-CL there is a single equality predicate `=` which can be\nused on objects of any builtin type. Since it's implemented using\ngeneric functions, it can be extended with methods for user-defined\nclasses and structures.\n\n**Using GENERIC-CL:**\n\n```lisp\n(= 'a x)       ;; Symbols\n(= 1 2)        ;; Numbers\n(= '(1 2 3) x) ;; Lists\n(= \"hello\" y)  ;; Strings\n(= #(1 2 3) z) ;; Arrays\n\n(= x y)        ;; Instances of class foo\n```\n\nGENERIC-CL also provides generic interfaces for comparison (`\u003c`, `\u003e`,\n...) functions, copying objects, iteration, sequence operations,\nhash-tables capable of storing keys of user defined classes, and many\nmore.\n\n## Documentation\n\nFull documentation is available online in HTML format at\n\u003chttps://alex-gutev.github.io/generic-cl/\u003e, and also in AsciiDoc\nformat in the `doc/` folder.\n\n## Isn't this slow?\n\nGeneric functions do carry an additional overhead over ordinary\nfunctions, however this isn't a significant issue for most\napplications. \n\nFor those applications where the speed of generic-functions is an\nissue, generic function calls can be optimized, using\n[static-dispatch](https://github.com/alex-gutev/static-dispatch) on\nwhich this library is built, to be as efficient (and sometimes even\nmore efficient) as ordinary function calls, when the types of the\narguments are known at compile-time. Check out the\n[Optimization](https://alex-gutev.github.io/generic-cl/#gf-optimization)\nsection for more information.\n\n","funding_links":["https://github.com/sponsors/alex-gutev"],"categories":["Python ##","Miscellaneous ##"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falex-gutev%2Fgeneric-cl","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falex-gutev%2Fgeneric-cl","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falex-gutev%2Fgeneric-cl/lists"}