{"id":23007434,"url":"https://github.com/xor-bits/zap","last_synced_at":"2025-08-14T03:31:39.840Z","repository":{"id":217355459,"uuid":"743587781","full_name":"xor-bits/zap","owner":"xor-bits","description":"a scripting language (primarily) for games written in Rust","archived":false,"fork":false,"pushed_at":"2024-11-05T02:51:10.000Z","size":187,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-11-05T03:27:15.304Z","etag":null,"topics":["interop","jit","llvm-frontend","scripting-language","strongly-typed","type-inference"],"latest_commit_sha":null,"homepage":"","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,"roadmap":null,"authors":null,"dei":null}},"created_at":"2024-01-15T14:55:21.000Z","updated_at":"2024-11-05T02:51:13.000Z","dependencies_parsed_at":"2024-02-12T11:49:35.217Z","dependency_job_id":null,"html_url":"https://github.com/xor-bits/zap","commit_stats":null,"previous_names":["xor-bits/uni-proj-lang","xor-bits/zap"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xor-bits%2Fzap","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xor-bits%2Fzap/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xor-bits%2Fzap/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xor-bits%2Fzap/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/xor-bits","download_url":"https://codeload.github.com/xor-bits/zap/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":229795798,"owners_count":18125286,"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":["interop","jit","llvm-frontend","scripting-language","strongly-typed","type-inference"],"created_at":"2024-12-15T08:15:36.852Z","updated_at":"2024-12-15T08:15:37.615Z","avatar_url":"https://github.com/xor-bits.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Zap\n\na programming language for (game) scripting\n\nstrongly typed, type inference, scripting language, interop, LLVM JIT\n\n## Hello world + Fibonacci sequence\n\n```go\nprints(\"Fibonacci sequence:\");\na := 0;\nb := 1;\nfor {\n    printi(a);\n    a, b = b, a + b;\n}\n```\n\n## Usage from Rust\n\n```rust\nlet mut compiler = Compiler::new();\ncompiler.add(\"sum\", |a: i32, b: i32| a + b).unwrap();\ncompiler.add(\"print\", |a: i32| println!(\"{a}\")).unwrap();\ncompiler.run(r#\"\n    print(sum(40, 2));\n\"#).unwrap();\n\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxor-bits%2Fzap","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fxor-bits%2Fzap","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxor-bits%2Fzap/lists"}