{"id":21992048,"url":"https://github.com/elct9620/mruby-go","last_synced_at":"2025-06-13T01:34:44.809Z","repository":{"id":179133710,"uuid":"654172474","full_name":"elct9620/mruby-go","owner":"elct9620","description":"The pure go mruby virtual machine implementation.","archived":false,"fork":false,"pushed_at":"2024-04-11T13:12:37.000Z","size":190,"stargazers_count":11,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-04-14T02:25:34.067Z","etag":null,"topics":["golang","mruby"],"latest_commit_sha":null,"homepage":"","language":"Go","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/elct9620.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}},"created_at":"2023-06-15T14:33:41.000Z","updated_at":"2024-04-18T13:54:53.586Z","dependencies_parsed_at":"2023-11-09T13:24:11.287Z","dependency_job_id":"1c911fb5-7f89-4a9d-bd55-a36e8f817a14","html_url":"https://github.com/elct9620/mruby-go","commit_stats":null,"previous_names":["elct9620/mruby-go"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elct9620%2Fmruby-go","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elct9620%2Fmruby-go/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elct9620%2Fmruby-go/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elct9620%2Fmruby-go/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/elct9620","download_url":"https://codeload.github.com/elct9620/mruby-go/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":227206373,"owners_count":17747734,"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":["golang","mruby"],"created_at":"2024-11-29T20:12:34.884Z","updated_at":"2024-11-29T20:12:35.841Z","avatar_url":"https://github.com/elct9620.png","language":"Go","readme":"mruby-go\n===\n\n[![Go Reference](https://pkg.go.dev/badge/github.com/elct9620/mruby-go.svg)](https://pkg.go.dev/github.com/elct9620/mruby-go)\n[![Test](https://github.com/elct9620/mruby-go/actions/workflows/test.yml/badge.svg)](https://github.com/elct9620/mruby-go/actions/workflows/test.yml)\n[![Maintainability](https://api.codeclimate.com/v1/badges/62c60dab046a3d550e78/maintainability)](https://codeclimate.com/github/elct9620/mruby-go/maintainability)\n[![codecov](https://codecov.io/gh/elct9620/mruby-go/graph/badge.svg?token=KD1GX1Z876)](https://codecov.io/gh/elct9620/mruby-go)\n\nThe pure go mruby virtual machine implementation.\n\n## Roadmap\n\nThe priority task is to make the virtual machine available with limited functions, it still depends on `mrbc` command to compile RiteBinary.\n\n* complete the method support\n* complete the class support\n* add mruby capability test\n\n## MRB_API\n\nGolang has public and private method design and we can attach method to a struct. Therefore all public method is attach to `*mruby.State` in mruby-go as preferred method.\n\n```go\nfunc (mrb *State) ObjectInstanceVariableGet(obj RObject, name Symbol) Value {\n  return obj.ivGet(name)\n}\n\n// Prefer\nfunc (mrb *State) ClassName(class RClass) string {\n\tif class == nil {\n\t\treturn \"\"\n\t}\n\n\tname := mrb.ObjectInstanceVariableGet(class, _classname(mrb)) // \u003c- Prefer this\n\tif name == nil {\n\t\treturn \"\"\n\t}\n\n\treturn name.(string)\n}\n\n// Avoid\nfunc (mrb *State) ClassName(class RClass) string {\n\tif class == nil {\n\t\treturn \"\"\n\t}\n\n\tname := class.ivGet(_classname(mrb)) // \u003c- Avoid this\n\tif name == nil {\n\t\treturn \"\"\n\t}\n\n\treturn name.(string)\n}\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Felct9620%2Fmruby-go","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Felct9620%2Fmruby-go","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Felct9620%2Fmruby-go/lists"}