{"id":13782214,"url":"https://github.com/notozeki/nacl-mruby","last_synced_at":"2025-05-11T15:32:17.388Z","repository":{"id":15071201,"uuid":"17797545","full_name":"notozeki/nacl-mruby","owner":"notozeki","description":"mruby interpreter works on Native Client","archived":false,"fork":false,"pushed_at":"2014-05-15T08:31:08.000Z","size":312,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-11-17T17:43:04.363Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/notozeki.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-03-16T11:14:09.000Z","updated_at":"2017-04-02T23:49:39.000Z","dependencies_parsed_at":"2022-07-16T21:33:09.480Z","dependency_job_id":null,"html_url":"https://github.com/notozeki/nacl-mruby","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/notozeki%2Fnacl-mruby","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/notozeki%2Fnacl-mruby/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/notozeki%2Fnacl-mruby/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/notozeki%2Fnacl-mruby/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/notozeki","download_url":"https://codeload.github.com/notozeki/nacl-mruby/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253588670,"owners_count":21932299,"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-08-03T18:01:34.113Z","updated_at":"2025-05-11T15:32:16.849Z","avatar_url":"https://github.com/notozeki.png","language":"C","readme":"# nacl-mruby\n**nacl-mruby** is a mruby interpreter works on [Native Client (NaCl)](https://developers.google.com/native-client/).\nRuby code runs on the browser, and you can use Pepper API from Ruby.\n\n__This is ALPHA version.__ Some APIs still not working :cry:\n\n\n## Live demos\nAccess these pages from Google Chrome browser.\n* [repl](http://devel.notozeki.org/nacl-mruby/repl/): A read-eval-print loop console\n* [mandelbrot](http://devel.notozeki.org/nacl-mruby/mandelbrot/): Plotting mandelbrot set\n\n\n## How to use\n\n### Prerequisites\n* Native Client SDK pepper_31 or later\n  * See https://developers.google.com/native-client/dev/sdk/download\n* depot_tools\n  * See http://dev.chromium.org/developers/how-tos/install-depot-tools\n* Google Chrome 31 or later\n* GNU make\n\n### 1. Preparation\nFirst, set `NACL_SDK_ROOT` environment variable to the path to the Native Client SDK. For example:\n```bash\n$ export NACL_SDK_ROOT=/Users/notozeki/src/nacl_sdk/pepper_31\n```\n\nSecond, check out naclports. You need to install [depot_tools](http://dev.chromium.org/developers/how-tos/install-depot-tools) to use `gclient`.\n```bash\n$ mkdir naclports\n$ cd naclports\n$ gclient config --name=src  https://chromium.googlesource.com/external/naclports.git\n$ gclient sync\n```\n\\# See https://code.google.com/p/naclports/wiki/HowTo_Checkout for more details.\n\nThird, install PCRE library via naclports. PCRE is required in order to compile [mruby-pcre-regexp](https://github.com/mattn/mruby-pcre-regexp) gem later.\n```bash\n$ cd src\n$ ./make_all.sh pcre\n```\n\n### 2. Download and build nacl-mruby\nClone nacl-mruby repository into a directory wherever you like. And setup submodules.\n```bash\n$ git clone git://github.com/notozeki/nacl-mruby.git\n$ cd nacl-mruby\n$ git submodule init\n$ git submodule update\n```\n\nThen, run `make`.\n```bash\n$ cd plugin\n$ make\n```\n\nNow you have `newlib` directory and nacl-mruby executables in it.\n\n### 3. Run examples\nCurrently there are three examples:\n* examples/simple\n* examples/mandelbrot\n* examples/repl\n\nTo run an example, change directory to the example directory, and run `make` and `make run`.\n```bash\n$ cd ../examples/mandelbrot\n$ make\n$ make run\n```\n\nNow http server is running in the local, access `localhost:5103` from Google Chrome browser.\n\n### 4. Write your application\n(Coming soon...)\n\n\n## License\nunder the MIT License:\n* http://www.opensource.org/licenses/mit-license.php\n\nCopyright (c) 2014 Yasuhiro KOSEKI\n","funding_links":[],"categories":["C"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnotozeki%2Fnacl-mruby","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnotozeki%2Fnacl-mruby","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnotozeki%2Fnacl-mruby/lists"}