{"id":25019031,"url":"https://github.com/minervasrefuge/gzzg","last_synced_at":"2025-08-26T01:04:22.584Z","repository":{"id":274387792,"uuid":"922449101","full_name":"MinervasRefuge/GZZG","owner":"MinervasRefuge","description":"A typed Zig wrapper for the Guile (scheme) C API.","archived":false,"fork":false,"pushed_at":"2025-04-11T09:37:17.000Z","size":183,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-11T11:47:54.315Z","etag":null,"topics":["guile","guile-scheme","zig","ziglang"],"latest_commit_sha":null,"homepage":"","language":"Zig","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/MinervasRefuge.png","metadata":{"files":{"readme":"README.org","changelog":"CHANGELOG.org","contributing":null,"funding":"FUNDING.yml","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,"zenodo":null},"funding":{"ko_fi":"minervasrefuge"}},"created_at":"2025-01-26T08:34:01.000Z","updated_at":"2025-04-11T09:37:31.000Z","dependencies_parsed_at":null,"dependency_job_id":"f8520497-858d-4ff4-ad87-f2112fbfe995","html_url":"https://github.com/MinervasRefuge/GZZG","commit_stats":null,"previous_names":["minervasrefuge/gzzg"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MinervasRefuge%2FGZZG","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MinervasRefuge%2FGZZG/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MinervasRefuge%2FGZZG/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MinervasRefuge%2FGZZG/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/MinervasRefuge","download_url":"https://codeload.github.com/MinervasRefuge/GZZG/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248658456,"owners_count":21140947,"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":["guile","guile-scheme","zig","ziglang"],"created_at":"2025-02-05T11:19:49.458Z","updated_at":"2025-04-13T03:23:35.989Z","avatar_url":"https://github.com/MinervasRefuge.png","language":"Zig","funding_links":["https://ko-fi.com/minervasrefuge","https://ko-fi.com/Z8Z81D600C"],"categories":[],"sub_categories":[],"readme":"#+OPTIONS: toc:nil\n#+OPTIONS: ^:nil\n* GZZG\n[[https://ko-fi.com/Z8Z81D600C][https://ko-fi.com/img/githubbutton_sm.svg]]\n----------\nA typed Zig wrapper for the Guile (scheme) C API.\n\nRequires ~libguile-3.0~. Currently targeting ~zig@0.14~\n\n** Basic Example\n#+begin_src scheme\n  (display \"Sum of Numbers: \")\n  (display (+ (1+ 4) 2 3))\n  (newline)\n#+end_src\n\n#+begin_src zig :results verbatim :exports both\n  const gzzg    = @import(\"gzzg\");\n  const Num     = gzzg.Number;\n  const Str     = gzzg.String;\n  const display = gzzg.display;\n  const newline = gzzg.newline;\n\n  pub fn main() !void {\n      gzzg.initThreadForGuile();\n      \n      const a = Num.from(4);\n      const b = Num.from(2);\n\n      display(Str.fromUTF8(\"Sum of Numbers: \"));\n      display(a.onePlus().sum(b).sum(.from(3)));\n      newline();\n  }\n#+end_src\n\n#+RESULTS:\n: Sum of Numbers: 10\n\nCheckout the other examples in the =Example= folder.\n\n** Note regarding ~setjmp~ / ~longjmp~\nZig considers unsound and can't be used. [[https://github.com/ziglang/zig/issues/1656][Issue 1656]]. There are workarounds planned in the future. It's recommended for the moment to consider places of memory allocation (that don't use Guile's GC Alloc) and appropriately check or wrap with a ~gzzg.catchException~ \"closure\".\n\n----------\n#+begin_quote\nI'm not a fruitcake. Am I lad? -- Wallace\n#+end_quote\n\nBSD-3-Clause : Copyright © 2025 Abigale Raeck.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fminervasrefuge%2Fgzzg","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fminervasrefuge%2Fgzzg","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fminervasrefuge%2Fgzzg/lists"}