{"id":20109508,"url":"https://github.com/agentcooper/eye","last_synced_at":"2025-05-06T10:31:22.147Z","repository":{"id":204775846,"uuid":"711916499","full_name":"agentcooper/eye","owner":"agentcooper","description":"Eye is a statically typed compiled language implemented using LLVM, with a syntax inspired by TypeScript","archived":false,"fork":false,"pushed_at":"2024-01-28T20:09:20.000Z","size":363,"stargazers_count":9,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-09T11:48:41.760Z","etag":null,"topics":["compiler","llvm","programming-language","typescript"],"latest_commit_sha":null,"homepage":"","language":"C++","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/agentcooper.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}},"created_at":"2023-10-30T12:40:40.000Z","updated_at":"2024-10-30T18:56:35.000Z","dependencies_parsed_at":"2023-11-15T14:26:48.636Z","dependency_job_id":"1405b861-53dd-4f8f-85a9-652d031dc68a","html_url":"https://github.com/agentcooper/eye","commit_stats":null,"previous_names":["agentcooper/eye"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/agentcooper%2Feye","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/agentcooper%2Feye/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/agentcooper%2Feye/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/agentcooper%2Feye/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/agentcooper","download_url":"https://codeload.github.com/agentcooper/eye/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252665952,"owners_count":21785174,"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":["compiler","llvm","programming-language","typescript"],"created_at":"2024-11-13T18:08:40.910Z","updated_at":"2025-05-06T10:31:21.252Z","avatar_url":"https://github.com/agentcooper.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Eye\n\n**🚧 Work in progress 🚧**\n\nEye is a statically typed compiled language implemented using LLVM, with a syntax inspired by TypeScript.\n\n```typescript\ninterface Counter {\n  inc: () =\u003e i64,\n  reset: () =\u003e void\n}\n\nfunction makeCounter(initialValue: i64): Counter {\n  let counter = initialValue;\n  let inc = (): i64 =\u003e {\n    counter = counter + 1;\n    return counter;\n  };\n  let reset = (): void =\u003e {\n    counter = 0;\n  };\n  return { inc: inc, reset: reset };\n}\n\nfunction main(): i64 {\n  let counter = makeCounter(10);\n  let inc = counter.inc;\n  let reset = counter.reset;\n  print(inc());\n  print(inc());\n  reset();\n  print(inc());\n  print(inc());\n  return 0;\n}\n```\n\nRoadmap is available in [`TODO.md`](TODO.md).\n\n## Build\n\n```bash\nmake all\n```\n\nMake sure you have LLVM installed.\n\nOn macOS 13, I have LLVM installed through [Brew](https://formulae.brew.sh/formula/llvm), with following environment variables set:\n\n```bash\nexport PATH=\"/opt/homebrew/opt/llvm/bin:$PATH\"\nexport SDKROOT=\"$(xcrun --show-sdk-path)\"\nexport LIBRARY_PATH=\"$LIBRARY_PATH:$SDKROOT/usr/lib\"\nexport LDFLAGS=\"-L/opt/homebrew/opt/llvm/lib\"\nexport CPPFLAGS=\"-I/opt/homebrew/opt/llvm/include\"\n```\n\n## Run example programs\n\n```bash\n# compile and run\nmake program SOURCE_FILE=snapshots/closure.eye \u0026\u0026 ./program\n\n# compile and run (debug)\nDEBUG=1 make program SOURCE_FILE=snapshots/closure.eye \u0026\u0026 ./program\n```\n\n## Tests\n\nTesting is done by checking the expected change in snapshots.\n\n```bash\nmake snapshot\n```\n\n## Name\n\nThe name \"Eye\" is inspired by the [IJ bay in Amsterdam](https://en.wikipedia.org/wiki/IJ_(Amsterdam)).","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fagentcooper%2Feye","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fagentcooper%2Feye","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fagentcooper%2Feye/lists"}