{"id":18221154,"url":"https://github.com/ninjascl/wren-odin","last_synced_at":"2025-10-08T23:55:22.675Z","repository":{"id":260850729,"uuid":"882089208","full_name":"NinjasCL/wren-odin","owner":"NinjasCL","description":"𓅨 Wren in Odin. Bindings for using Wren inside Odin.","archived":false,"fork":false,"pushed_at":"2025-06-03T02:03:20.000Z","size":1767,"stargazers_count":10,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-03T15:08:12.345Z","etag":null,"topics":["bindings","c99","odin-lang","wren-language"],"latest_commit_sha":null,"homepage":"https://ninjascl.github.io/wren-odin/0.4","language":"C","has_issues":true,"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/NinjasCL.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":"AUTHORS.md","dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-11-01T21:29:56.000Z","updated_at":"2025-06-03T02:03:24.000Z","dependencies_parsed_at":"2024-11-03T03:30:26.277Z","dependency_job_id":null,"html_url":"https://github.com/NinjasCL/wren-odin","commit_stats":null,"previous_names":["ninjascl/wren-odin"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/NinjasCL/wren-odin","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NinjasCL%2Fwren-odin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NinjasCL%2Fwren-odin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NinjasCL%2Fwren-odin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NinjasCL%2Fwren-odin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/NinjasCL","download_url":"https://codeload.github.com/NinjasCL/wren-odin/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NinjasCL%2Fwren-odin/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279000708,"owners_count":26082862,"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-08T02:00:06.501Z","response_time":56,"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":["bindings","c99","odin-lang","wren-language"],"created_at":"2024-11-03T21:05:18.067Z","updated_at":"2025-10-08T23:55:22.655Z","avatar_url":"https://github.com/NinjasCL.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Wren in Odin\n\nWren is a small, fast, class-based concurrent scripting language\n\nThink Smalltalk in a Lua-sized package with a dash of Erlang and wrapped up in\na familiar, modern syntax.\n\n```js\nSystem.print(\"Hello, world!\")\n\nclass Wren {\n  flyTo(city) {\n    System.print(\"Flying to %(city)\")\n  }\n}\n\nvar adjectives = Fiber.new {\n  [\"small\", \"clean\", \"fast\"].each {|word| Fiber.yield(word) }\n}\n\nwhile (!adjectives.isDone) System.print(adjectives.call())\n```\n\n - **Wren is small.** The VM implementation is under 4,000 semicolons.\n    You can skim the whole thing in an afternoon. It's *small*, but not\n    *dense*. It is readable and lovingly-commented.\n\n - **Wren is fast.** A fast single-pass compiler to tight bytecode, and a\n    compact object representation help Wren compete with other dynamic\n    languages.\n\n - **Wren is class-based.** There are lots of scripting languages out there,\n    but many have unusual or non-existent object models. Wren places\n    classes front and center.\n\n - **Wren is concurrent.** Lightweight fibers are core to the execution\n    model and let you organize your program into an army of communicating\n    coroutines.\n\n - **Wren is a scripting language.** Wren is intended for embedding in\n    applications. It has no dependencies, a small standard library,\n    and an easy-to-use C API. It compiles cleanly as C99, C++98\n    or anything later.\n\n## Links\n\n- Syntax: http://wren.io/syntax.html\n- Github: https://github.com/wren-lang/wren/tree/main/src\n- Getting Started: http://wren.io/getting-started.html\n\n## Usage\n\nSee more complete examples at `example.odin` and `tests/wren_tests.odin`\n\n```odin\npackage main\n\nimport \"core:fmt\"\n\nimport wren \"../vendor/wren/0.4\"\n\nmain :: proc() {\n    config := wren.Configuration{}\n    wren.InitConfiguration(\u0026config)\n\n    vm := wren.NewVM(\u0026config)\n\n    module : cstring = \"main\"\n    script : cstring = `System.print(\"Hello Wren from Odin!\")`\n    result := wren.Interpret(vm, module, script)\n\n    switch result {\n        case .WREN_RESULT_COMPILE_ERROR:\n            fmt.println(\"Compile error\")\n        case .WREN_RESULT_RUNTIME_ERROR:\n            fmt.println(\"Runtime error\")\n        case .WREN_RESULT_SUCCESS:\n            fmt.println(\"Success!\")\n    }\n}\n```\n\n## License\n\n- BSD-3\n\n\n## Credits\n\n\u003cp\u003e\n  Made with \u003ci class=\"fa fa-heart\"\u003e\u0026#9829;\u003c/i\u003e by\n  \u003ca href=\"https://ninjas.cl\"\u003e\n    Ninjas.cl\n  \u003c/a\u003e.\n\u003c/p\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fninjascl%2Fwren-odin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fninjascl%2Fwren-odin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fninjascl%2Fwren-odin/lists"}