{"id":15705658,"url":"https://github.com/shigma/atri","last_synced_at":"2025-05-12T18:36:01.922Z","repository":{"id":57186429,"uuid":"285023487","full_name":"shigma/ATRI","owner":"shigma","description":"アトリは、高性能ですから!","archived":false,"fork":false,"pushed_at":"2020-08-21T18:47:52.000Z","size":185,"stargazers_count":5,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-24T22:49:09.646Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"agpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/shigma.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}},"created_at":"2020-08-04T15:36:35.000Z","updated_at":"2023-05-10T02:32:21.000Z","dependencies_parsed_at":"2022-09-14T16:22:11.344Z","dependency_job_id":null,"html_url":"https://github.com/shigma/ATRI","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shigma%2FATRI","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shigma%2FATRI/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shigma%2FATRI/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shigma%2FATRI/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/shigma","download_url":"https://codeload.github.com/shigma/ATRI/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243171996,"owners_count":20247879,"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-03T20:18:33.521Z","updated_at":"2025-03-12T06:31:40.653Z","avatar_url":"https://github.com/shigma.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ATRI\n\nアトリは、高性能ですから!\n\n## Roadmap\n\n- [x] 前期调研，确认可行性\n- [ ] 确定接口，编写实现\n  - [ ] 入口（构造函数 + 绑定回调 + 账号登录）\n  - [ ] 事件（Go 包装成 JSON，通过单一回调函数进行传递）\n  - [ ] API（Go 实现成回调函数，TS 中转化为 Promise）\n- [ ] 完成全平台编译\n  \n  **Tested on**\n\n  | OS      | OS Version                 | Go version | C/C++ Toolchain                                              | NodeJS version | Linking type |\n  | ------- | -------------------------- | ---------- | ------------------------------------------------------------ | -------------- | ------------ |\n  | Windows | Windows 10 2004            | 1.14.6     | **CGO**: gcc 8.1.0 (MinGW-W64)\u003cbr /\u003e**Addon**: msvs 2019 16.7.1 | 14.7.0         | Dynamic      |\n  | Linux   | Ubuntu 20.04.1 LTS (WSL 2) | 1.15.0     | gcc 9.3.0                                                    | 14.8.0         | Static       |\n  | macOS   | 10.15 Catalina             | 1.15.0     | Xcode 11.3.1                                                 | 14.8.0         | Static       |\n\n## 基本思路\n- 将Go方法最外层使用goroutine包装，将阻塞方法转化为callback型异步方法，通过`uv_async_init`和`uv_async_send`进行对接，使goroutine能够与uvlib协调使用3\n  注：最初使用`uv_queue_work`，发现属于misuse，并发受限，并且阻塞worker pool\n- 目前，JS向Go传递数据时，简单数据进行参数转换，复杂数据直接通过JSON序列化传递；返回值统一通过JSON序列化传递\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshigma%2Fatri","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fshigma%2Fatri","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshigma%2Fatri/lists"}