{"id":17697499,"url":"https://github.com/x86y/franca","last_synced_at":"2025-10-11T15:40:53.737Z","repository":{"id":176843782,"uuid":"659643816","full_name":"x86y/franca","owner":"x86y","description":"terse rust library","archived":false,"fork":false,"pushed_at":"2023-10-02T12:27:58.000Z","size":2247,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-31T00:41:54.809Z","etag":null,"topics":["apl","array","bqn","j","k","macro","macros","metaprogramming","rust","rust-macros","terse"],"latest_commit_sha":null,"homepage":"https://x86y.github.io/franca/","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/x86y.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-06-28T09:00:24.000Z","updated_at":"2023-10-02T12:23:43.000Z","dependencies_parsed_at":null,"dependency_job_id":"2008a846-4478-46bc-a5ea-e0e0f4c4b35a","html_url":"https://github.com/x86y/franca","commit_stats":null,"previous_names":["x86y/tersers","x86y/franca"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/x86y/franca","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/x86y%2Ffranca","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/x86y%2Ffranca/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/x86y%2Ffranca/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/x86y%2Ffranca/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/x86y","download_url":"https://codeload.github.com/x86y/franca/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/x86y%2Ffranca/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279007602,"owners_count":26084334,"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","status":"online","status_checked_at":"2025-10-11T02:00:06.511Z","response_time":55,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["apl","array","bqn","j","k","macro","macros","metaprogramming","rust","rust-macros","terse"],"created_at":"2024-10-24T14:47:43.856Z","updated_at":"2025-10-11T15:40:53.709Z","avatar_url":"https://github.com/x86y.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Franca\nMacros for writing terser Rust code. This crate contains both a library that exports the macros and a binary that transforms any Rust code to Rust code that uses the exported macros.\n\nAccess the online demo hosted on github pages [here](https://x86y.github.io/franca).\n\n## Example code written using Franca macros:\n```rs\nuse franca::*;\npub struct Program {\n    pub p: usize,\n    pub a: Vec\u003ci64\u003e,\n    pub ip: usize,\n    pub b: Vec\u003ci64\u003e,\n}\nimpl Program {\n    pub fn eval(\u0026mut self, s: Sstr) {\n        lm!(st, vec![]; b, 0; a, \u0026mut self.a; p, \u0026mut self.p; ip, \u0026mut self.ip);\n        l!(by, s.as_bytes());\n        W!(*ip \u003c by.len(), {\n            l!(c, _c!(by[*ip]));\n            M!(c; ']', {Ic!(nz!(a[*p]), *ip = st.pop().unwrap()); b = *ip};\n                  '[', {Ic!(z!(a[*p]), *ip = b); st.push(*ip)};\n                  '+', ic!(a[*p]);\n                  '-', dc!(a[*p]);\n                  '\u003e', ic!(*p);\n                  '\u003c', dc!(*p);\n                  '.', self.b.push(a[*p]);\n                  ',', {};\n                  _, unreachable!()\n            );\n            ic!(*ip);\n        })\n    }\n}\n\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fx86y%2Ffranca","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fx86y%2Ffranca","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fx86y%2Ffranca/lists"}