{"id":16576299,"url":"https://github.com/mkhan45/scalogic","last_synced_at":"2025-06-27T03:11:42.086Z","repository":{"id":207725122,"uuid":"719324936","full_name":"mkhan45/scalogic","owner":"mkhan45","description":null,"archived":false,"fork":false,"pushed_at":"2024-05-02T23:48:50.000Z","size":1948,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-05T19:51:41.678Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://mkhan45.github.io/scalogic/","language":"Scala","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/mkhan45.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":"2023-11-15T23:36:21.000Z","updated_at":"2025-01-17T20:15:36.000Z","dependencies_parsed_at":"2024-05-03T00:47:52.557Z","dependency_job_id":"1dbd921f-72fb-45cf-bd38-a113e3a8892f","html_url":"https://github.com/mkhan45/scalogic","commit_stats":{"total_commits":33,"total_committers":1,"mean_commits":33.0,"dds":0.0,"last_synced_commit":"0fefe969f3e05c7aad0c5f8ca65197f108193614"},"previous_names":["mkhan45/idk"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/mkhan45/scalogic","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mkhan45%2Fscalogic","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mkhan45%2Fscalogic/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mkhan45%2Fscalogic/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mkhan45%2Fscalogic/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mkhan45","download_url":"https://codeload.github.com/mkhan45/scalogic/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mkhan45%2Fscalogic/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262181060,"owners_count":23271320,"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-11T22:07:51.073Z","updated_at":"2025-06-27T03:11:42.053Z","avatar_url":"https://github.com/mkhan45.png","language":"Scala","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Scala Logic language\n\nWebsite: \u003chttps://mkhan45.github.io/scalogic/\u003e\n\nA logic programming language similar to MiniKanren. The code for the engine (\u003c200LOC)\nis in `Reunify.scala`\n\n```\nedge(1, 2)\nedge(2, 3)\nconnected(x, z) :- ((x == z || edge(x, z)) || (edge(x, y) \u0026\u0026 connected(y, z)))\n\nedge(1, 2): true\nedge(2, 3): true\nedge(1, 3): false\nconnected(1, 3): true\n\nsameLength(x, y) :- ((x == () \u0026\u0026 y == ()) || ((x == (xh, xs) \u0026\u0026 y == (yh, ys)) \u0026\u0026 sameLength(xs, ys)))\n\n// solves for a valid xs\n(xh, xs) == (1, (2, (3, (4, ())))): Map(xh -\u003e 1, xs -\u003e (2, (3, (4, ()))))\n\nsameLength((1, (2, ())), (2, (3, ()))): true\nsameLength((1, (2, ())), (2, ())): false\n\n// solves for a valid a that makes the two lists the same length\nsameLength((1, (3, (5, ()))), (1, (3, a))): HashMap(a -\u003e (yh'', ()))\n```\n\n## Running\n\n### Development mode:\n```sh\nsbt\u003e ~fastLinkJS\n```\n```sh\ncd vite\nnpm run dev\n```\n\n### Build\n```sh\n./build_web.sh\nbasic-http-server docs\n```\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmkhan45%2Fscalogic","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmkhan45%2Fscalogic","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmkhan45%2Fscalogic/lists"}