{"id":23007444,"url":"https://github.com/xor-bits/ion","last_synced_at":"2025-04-02T15:21:22.258Z","repository":{"id":140090259,"uuid":"592314409","full_name":"xor-bits/ion","owner":"xor-bits","description":null,"archived":false,"fork":false,"pushed_at":"2023-10-02T10:33:57.000Z","size":206,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-08T06:16:49.203Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Rust","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/xor-bits.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}},"created_at":"2023-01-23T13:18:20.000Z","updated_at":"2023-01-23T13:23:38.000Z","dependencies_parsed_at":"2023-09-25T03:48:34.703Z","dependency_job_id":null,"html_url":"https://github.com/xor-bits/ion","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/xor-bits%2Fion","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xor-bits%2Fion/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xor-bits%2Fion/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xor-bits%2Fion/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/xor-bits","download_url":"https://codeload.github.com/xor-bits/ion/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246837615,"owners_count":20841906,"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-12-15T08:15:39.286Z","updated_at":"2025-04-02T15:21:22.240Z","avatar_url":"https://github.com/xor-bits.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Ion\n\nSimple type-inferred statically-typed language\n\n```rust\n// currently working:\nfn add(l: i32, r: i32): i32 {\n    return l + r;\n}\n\nfn main(): none {\n    print(add(4, 5));\n    let x = 6;\n    print(x);\n    x *= 2;\n    print(x);\n}\n\n// todo:\n\n// optionally fully type-inferred\nfn add(l, r) {\n    // undecided: optional semicolons\n    // limited syntax\n    l + r\n}\n\n// statements in module level\n// str sum (concat)\nprint(add(\"Hello, \", \"world!\"))\nprint(add(4, 5))\n\n// format strings\nprint(f\"4+5={add(4, 5)}\")\n\n// anon.functions / lamdas / closures\nlet sub = fn(a, b) {\n    a - b\n}\n\nlet x = 5\nfn captures() {\n    print(x)\n}\ncaptures()\n\n// undecided: partial eval using captures\n// not very readable?\nlet add_5 = add(5)\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxor-bits%2Fion","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fxor-bits%2Fion","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxor-bits%2Fion/lists"}