{"id":15439229,"url":"https://github.com/maxbarsukov/capricc-io","last_synced_at":"2025-10-14T22:32:15.700Z","repository":{"id":62555089,"uuid":"444507710","full_name":"maxbarsukov/capricc-io","owner":"maxbarsukov","description":"🟥 Extremely minimalistic Io-like language","archived":false,"fork":false,"pushed_at":"2022-01-04T20:17:11.000Z","size":25,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-07T14:01:00.592Z","etag":null,"topics":["homoiconic","interpreter","io-lang","programming-language","prototype","ruby-interpreter"],"latest_commit_sha":null,"homepage":"https://rubygems.org/gems/capricc-io","language":"Ruby","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/maxbarsukov.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":".github/CONTRIBUTING.md","funding":null,"license":"LICENSE.txt","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-01-04T17:29:42.000Z","updated_at":"2022-04-11T07:18:26.000Z","dependencies_parsed_at":"2022-11-03T05:30:53.477Z","dependency_job_id":null,"html_url":"https://github.com/maxbarsukov/capricc-io","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/maxbarsukov/capricc-io","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maxbarsukov%2Fcapricc-io","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maxbarsukov%2Fcapricc-io/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maxbarsukov%2Fcapricc-io/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maxbarsukov%2Fcapricc-io/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/maxbarsukov","download_url":"https://codeload.github.com/maxbarsukov/capricc-io/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maxbarsukov%2Fcapricc-io/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279021785,"owners_count":26087056,"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-14T02:00:06.444Z","response_time":60,"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":["homoiconic","interpreter","io-lang","programming-language","prototype","ruby-interpreter"],"created_at":"2024-10-01T19:03:38.449Z","updated_at":"2025-10-14T22:32:15.684Z","avatar_url":"https://github.com/maxbarsukov.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Capricc-Io\n\n[![Build Status](https://github.com/maxbarsukov/capricc-io/actions/workflows/main.yml/badge.svg?branch=master)](https://github.com/maxbarsukov/capricc-io/actions/workflows/main.yml)\n[![Codecov](https://codecov.io/gh/maxbarsukov/capricc-io/branch/master/graph/badge.svg?token=9L8Y4N4KKW)](https://codecov.io/gh/maxbarsukov/capricc-io)\n![GitHub code size in bytes](https://img.shields.io/github/languages/code-size/maxbarsukov/capricc-io)\n\n![Gem Version](https://img.shields.io/gem/v/capricc-io)\n![Gem Downloads](https://img.shields.io/gem/dt/capricc-io)\n\n***Capricc-Io*** is a tiny interpreted *prototyped-based* **homoiconic** and dynamic typing language with ***Io-like messages***.\n\n- **Everything** is an **object** in *Capricc-Io*;\n- Program is just a **series of messages**;\n- Objects don’t have classes, but **prototypes**, their parent objects;\n- Messages are the only data type and also parsing representation → ***homoiconicity***;\n\nIn [lib/capriccio/stdlib](https://github.com/maxbarsukov/capricc-io/tree/master/lib/capriccio/stdlib) you can see how you can define an **if** statement or **booleans** behavior directly in *Capric-Io*;\n\n## Installation\n\n    $ gem install capricc-io\n\n## Usage\n\nRun REPL:\n```bash\ncapio\n```\n\nor run file:\n```bash\ncapio your_code.cio\n```\n\n## Examples of code\n\nPrototypes \u0026 OOP:\n```python\n# comment\n\nset(\"person\", Object clone)\nperson set(\"name\", \"Max\")\nperson name print\n# =\u003e Max\n\nperson set(\"say_name\", def(\n  arguments print\n  # =\u003e \u003cMessage @name=\"hello...\"\u003e\n\n  eval_arg(0) print\n  # =\u003e hello...\n\n  self name print\n  # =\u003e Max\n))\n\nperson say_name(\"hello...\")\n```\n\nConditions:\n```python\nif(true,\n  \"condition is true\" print,\n  \"nope\" print\n)\n# =\u003e condition is true\n\nif(false,\n  \"nope\" print,\n  \"condition is false\" print\n)\n# =\u003e condition is false\n```\n\nBooleans:\n```python\n\"yo\" or(\"hi\") print\n# =\u003e yo\n\nnil or(\"hi\") print\n# =\u003e hi\n\n\"yo\" and(\"hi\") print\n# =\u003e hi\n\n1 and(2 or(3)) print\n# =\u003e 2\n```\n\n## Building\n\n### Pre-reqs\n\nTo build and run this app locally you will need a few things:\n\n- Install [Ruby](https://www.ruby-lang.org/en/) *(tested on **2.6**)*;\n\n### Getting start\n\n- Clone the repository\n```bash\ngit clone --depth=1 https://github.com/maxbarsukov/capricc-io.git\n```\n- **Install dependencies**\n```bash\ncd capricc-io\nbundle install\n```\n- **Run**\n```bash\n./bin/capriccio input.cio\n# or\n./bin/capriccio\n````\n- **RSpec**\n```bash\nbundle exec rspec\n```\n- **Rubocop**\n```bash\nbundle exec rubocop\n```\n\n## Contributing\n\nBug reports and pull requests are welcome on GitHub at https://github.com/maxbarsukov/capricc-io. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [code of conduct](https://github.com/maxbarsukov/capricc-io/blob/master/CODE_OF_CONDUCT.md).\n\n## License\n\nThe gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).\n\n## Code of Conduct\n\nEveryone interacting in the Capricc-Io project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/maxbarsukov/capricc-io/blob/master/CODE_OF_CONDUCT.md).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaxbarsukov%2Fcapricc-io","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmaxbarsukov%2Fcapricc-io","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaxbarsukov%2Fcapricc-io/lists"}