{"id":15908163,"url":"https://github.com/ignalina/alloy","last_synced_at":"2025-03-22T00:31:37.560Z","repository":{"id":60452463,"uuid":"540966397","full_name":"Ignalina/alloy","owner":"Ignalina","description":"Go to Rust calls with Apache Arrow datatype as parameter","archived":false,"fork":false,"pushed_at":"2023-11-11T15:31:30.000Z","size":45712,"stargazers_count":3,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-18T06:35:29.050Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Ignalina.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2022-09-24T21:02:38.000Z","updated_at":"2022-10-17T18:23:48.000Z","dependencies_parsed_at":"2024-10-28T11:52:01.149Z","dependency_job_id":"d997819d-4e76-4dfc-bbb5-22b135e4b139","html_url":"https://github.com/Ignalina/alloy","commit_stats":{"total_commits":146,"total_committers":5,"mean_commits":29.2,"dds":0.547945205479452,"last_synced_commit":"1874b90d9db3cdbd619006b2de8fdca3c7f99ad3"},"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ignalina%2Falloy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ignalina%2Falloy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ignalina%2Falloy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ignalina%2Falloy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Ignalina","download_url":"https://codeload.github.com/Ignalina/alloy/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244890102,"owners_count":20527030,"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-06T14:10:59.734Z","updated_at":"2025-03-22T00:31:36.263Z","avatar_url":"https://github.com/Ignalina.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"![Builds](https://github.com/Ignalina/alloy/actions/workflows/builds.yml/badge.svg)\n![Rust tests](https://github.com/Ignalina/alloy/actions/workflows/rust-tests.yml/badge.svg)\n![Go tests](https://github.com/Ignalina/alloy/actions/workflows/go-tests.yml/badge.svg)\n\n![alloy](https://raw.githubusercontent.com/Ignalina/alloy/main/images/alloy.svg)\u003cbr\u003e\n\nFull design/build/deploy doc se [doc/README](doc/README.md)\n\nAn GO module allowing calls to Rust code code with Apache Arrow data. Operate in either one-shot mode or IPC streaming.  \nAn example application in need of this is Thund , An Go/Rust based Apache Arrow centric DAG executor\n\nAlloy means a mixture between two or more components and is a joint venture between Wilhelm Ågren (Rust)  and Rickard Lundin(GO).\n\n## Usage example\nThe example main.go should envision how your GO application utilize Alloy.\n\n```golang\nfunc main() {\n\tmem := memory.NewGoAllocator()\n\n\tvar b api.Bridge\n\tb = rust.Bridge{api.CommonParameter{mem}}\n\n\tvalues := [][]int32{\n\t\t{1, 2, 3, -4},\n\t\t{2, 3, 4, 5},\n\t\t{3, 4, 5, 6},\n\t}\n\n\tbuilders, arrays := buildAndAppend(mem, values)\n\n\tret, err := b.FromChunks(arrays)\n\n\tif nil != err {\n\t\tfmt.Println(err)\n\t} else {\n\t\trust.Info(fmt.Sprintf(\"Rust counted %v arrays sent through ffi\", ret))\n\t}\n}\n```\n\nOutput, where default dummy Rust backend echoes out the sent data. It will be up to the Rust guys to implent code to process the data to their hearts content !!\n\n\n```bash\n$ ./alloy\n[2022-10-17 18:09:34] [INFO] [Go]\tExporting ArrowSchema and ArrowArray #1 to C\n[2022-10-17 18:09:34] [INFO] [Go]\tExporting ArrowSchema and ArrowArray #2 to C\n[2022-10-17 18:09:34] [INFO] [Go]\tExporting ArrowSchema and ArrowArray #3 to C\n[2022-10-17 18:09:34] [INFO] [Go]\tCalling Rust through C rust now with 3 ArrowArrays\n[2022-10-17 18:09:34] [INFO] [Rust]\tHello! Reading the rust pointers now.\n[2022-10-17 18:09:34] [INFO] [Rust]\tarray1: Int32[1, 2, 3, -4]\n[2022-10-17 18:09:34] [INFO] [Rust]\tarray2: Int32[2, 3, 4, 5]\n[2022-10-17 18:09:34] [INFO] [Rust]\tarray3: Int32[3, 4, 5, 6]\n[2022-10-17 18:09:34] [INFO] [Go]\tHello, again! Successfully sent Arrow data to Rust.\n[2022-10-17 18:09:34] [INFO] [Go]\tRust counted 3 arrays sent through rust\n```\n\n\n## License\nAll code written is to be held under a general MIT-license, please see [LICENSE](https://github.com/Ignalina/alloy/blob/main/LICENSE) for specific information.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fignalina%2Falloy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fignalina%2Falloy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fignalina%2Falloy/lists"}