{"id":22514596,"url":"https://github.com/marioariasc/monyet","last_synced_at":"2025-08-03T16:31:02.308Z","repository":{"id":44712400,"uuid":"427320637","full_name":"MarioAriasC/monyet","owner":"MarioAriasC","description":"An implementation of the monkey language on Crystal","archived":false,"fork":false,"pushed_at":"2024-05-03T15:26:55.000Z","size":125,"stargazers_count":15,"open_issues_count":1,"forks_count":2,"subscribers_count":3,"default_branch":"main","last_synced_at":"2024-12-01T10:42:54.874Z","etag":null,"topics":["crystal","monkey","monkey-language"],"latest_commit_sha":null,"homepage":"","language":"Crystal","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/MarioAriasC.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,"publiccode":null,"codemeta":null}},"created_at":"2021-11-12T10:34:47.000Z","updated_at":"2024-07-01T07:45:08.000Z","dependencies_parsed_at":"2024-05-02T18:39:00.250Z","dependency_job_id":"18f76ebe-cb5d-4f5e-a5da-017318579444","html_url":"https://github.com/MarioAriasC/monyet","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/MarioAriasC%2Fmonyet","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MarioAriasC%2Fmonyet/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MarioAriasC%2Fmonyet/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MarioAriasC%2Fmonyet/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/MarioAriasC","download_url":"https://codeload.github.com/MarioAriasC/monyet/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":228553067,"owners_count":17935925,"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":["crystal","monkey","monkey-language"],"created_at":"2024-12-07T03:19:11.833Z","updated_at":"2024-12-07T03:19:13.008Z","avatar_url":"https://github.com/MarioAriasC.png","language":"Crystal","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Monyet\n\n[Crystal](https://crystal-lang.org/reference/1.2/index.html) implementation of\nthe [Monkey Language](https://monkeylang.org/)\n\nMonyet has a sibling implementation for Kotlin: [monkey.kt](https://github.com/MarioAriasC/monkey.kt)\n\n## Status\n\nThe two books ([Writing An Interpreter In Go](https://interpreterbook.com/)\nand [Writing A Compiler in Go](https://compilerbook.com/)) are implemented.\n\n## Commands\n\nBefore running the command you must have crystal and shards installed on your machine\n\n| Script                           | Description                                                                                                          |\n|----------------------------------|----------------------------------------------------------------------------------------------------------------------|\n| [`tests.sh`](tests.sh)           | Run all the tests                                                                                                    |\n| [`checks.sh`](checks.sh)         | Run format tool and ameba checks                                                                                     |\n| [`build.sh`](build.sh)           | Release build                                                                                                        |\n| [`benchmarks.sh`](benchmarks.sh) | Run the classic monkey benchmark (`fibonacci(35)`), requires one command (`--eval`,`--eval-fast`,`--vm`,`--vm-fast`) |\n| [`repl.sh`](repl.sh)             | Run the Monyet REPL                                                                                                  |\n\n## Compiling variants\n\nThere are two different implementations for the compiler/VM.\n\n* The default variant, based on `Array(UInt8)` as Bytecode and `OffsetArray` arrays for read operations\n* The slices variant, based purely on `Slice(UInt8)`\n\nThe slices variant is more idiomatic but the default variant has better performance (around 10%).\n\nTo compile with a different variant you can the flag `--define=slice` to your compile or test. Additionally,\nboth [`build.sh`](build.sh) and [`test.sh`](tests.sh) have lines that you can comment/uncomment to enable different\nvariants","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarioariasc%2Fmonyet","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmarioariasc%2Fmonyet","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarioariasc%2Fmonyet/lists"}