{"id":17214275,"url":"https://github.com/kalimehtar/gls","last_synced_at":"2026-01-05T23:02:31.549Z","repository":{"id":13771931,"uuid":"16466885","full_name":"Kalimehtar/gls","owner":"Kalimehtar","description":"Generic Little System","archived":false,"fork":false,"pushed_at":"2024-05-05T11:36:45.000Z","size":299,"stargazers_count":17,"open_issues_count":0,"forks_count":1,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-01-30T11:43:39.988Z","etag":null,"topics":["racket"],"latest_commit_sha":null,"homepage":null,"language":"Racket","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/Kalimehtar.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":"2014-02-03T00:39:41.000Z","updated_at":"2024-07-26T12:40:50.000Z","dependencies_parsed_at":"2024-11-19T02:02:02.055Z","dependency_job_id":null,"html_url":"https://github.com/Kalimehtar/gls","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/Kalimehtar%2Fgls","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Kalimehtar%2Fgls/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Kalimehtar%2Fgls/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Kalimehtar%2Fgls/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Kalimehtar","download_url":"https://codeload.github.com/Kalimehtar/gls/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245467215,"owners_count":20620210,"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":["racket"],"created_at":"2024-10-15T03:02:21.160Z","updated_at":"2026-01-05T23:02:26.498Z","avatar_url":"https://github.com/Kalimehtar.png","language":"Racket","funding_links":[],"categories":[],"sub_categories":[],"readme":"gls\n===\n\nGLS - Generic Little (Object, Type, Anything, ...) System\n\nIt provides multiple dispatch for Racket.\n\nDifferences from Swindle:\n\n- Doesn't force you to change all. GLS is a small collection with a dozen of\n  functions in API. It only adds generic functions.\n\n- It based upon types, not classes. You may dispatch you function on any\n  predicate you may imagine: `exact-integer?`, `(real-in 0 10)`, \n`(and? stream? (not/c stream-empty?))`, ...\n\nGLS is based on Greg Sullivan's \u003ca\nhref=\"https://github.com/gregsgit/glos\"\u003eGLOS\u003c/a\u003e, that was witten for\nscheme48. It has the same API, but without implemetation of own object system \n(glos-records). So GLS is not \"generic little object system\", but simply\n\"generic little system\". But I added support for racket/class: you may use\nclass instead of type predicate and GLS correctly supports subtypes\n(subclasses).\n\nSorry for bad documentation: for API look into \u003ca href=https://github.com/Kalimehtar/gls/blob/master/gls/main.rkt\u003e main.rkt\u003c/a\u003e, for examples of use\n-- \u003ca href=https://github.com/Kalimehtar/gls/blob/master/gls/test.rkt\u003etest.rkt\u003c/a\u003e.\n\nSome description of GLOS is in the paper \u003ca\nhref=\"https://github.com/gregsgit/glos/blob/master/ref-dyn-patterns.pdf\"\u003eref-dyn-patterns\u003c/a\u003e. \n\nAlso, slides in \u003ca href=\"https://github.com/gregsgit/glos/blob/master/proglangsandsofteng.pdf\"\u003eproglangsandsofteng\u003c/a\u003e work\nthrough some examples using GLOS.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkalimehtar%2Fgls","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkalimehtar%2Fgls","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkalimehtar%2Fgls/lists"}