{"id":13657889,"url":"https://github.com/johnlinvc/erruby","last_synced_at":"2025-04-24T08:30:47.709Z","repository":{"id":141935439,"uuid":"44860707","full_name":"johnlinvc/erruby","owner":"johnlinvc","description":"ruby on erlang","archived":false,"fork":false,"pushed_at":"2019-10-30T21:41:55.000Z","size":162,"stargazers_count":183,"open_issues_count":4,"forks_count":9,"subscribers_count":10,"default_branch":"develop","last_synced_at":"2024-11-10T11:38:51.991Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Erlang","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/johnlinvc.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"COPYING.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2015-10-24T09:57:49.000Z","updated_at":"2024-09-22T00:35:54.000Z","dependencies_parsed_at":"2024-01-19T14:13:55.402Z","dependency_job_id":"b96f4902-58db-41e6-989b-8bfaa13bb288","html_url":"https://github.com/johnlinvc/erruby","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/johnlinvc%2Ferruby","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johnlinvc%2Ferruby/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johnlinvc%2Ferruby/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johnlinvc%2Ferruby/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/johnlinvc","download_url":"https://codeload.github.com/johnlinvc/erruby/tar.gz/refs/heads/develop","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250591906,"owners_count":21455458,"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-02T05:00:52.743Z","updated_at":"2025-04-24T08:30:45.883Z","avatar_url":"https://github.com/johnlinvc.png","language":"Erlang","readme":"# ErRuby - an implementation of the Ruby language on Erlang\n[![Build Status](https://travis-ci.org/johnlinvc/erruby.svg?branch=develop)](https://travis-ci.org/johnlinvc/erruby)\n## About\n\nErRuby is an implementation of the Ruby language using Erlang.\n\nIt aims to bring some concurrency features to ruby by experimenting.\n\nIt's still a work in progress. So use it at your own risk.\n\n## Install\n\n### Prerequisites\n \n- erlang vm\n- rebar2\n- ruby (2.3.1)\n\nTo install erlang \u0026 rebar on OS X, using homebrew\n\n\tbrew install erlang rebar\n\n### Building\n\nAfter getting the source of ErRuby, get the gems for parser with bundler using:\n\t\n\tbundle install\n\t\n \nThen get the deps of erlang modules by using:\n\n\trebar get-deps\n\t\nLast, compile ErRuby with:\n\n\trebar compile\n\t\n\t\nTest the build result with:\n\n\t./test.rb\n\t\nIt should output `everything pass`\n\n\n## Goals\n\n- Concurrent Features.\n- Run mspec.\n- GC.\n- Friendly installation with rvm/rbenv\n\n## Supported features\n\nCurrently it support some of the basic ruby constructs.\n\nSupported features:\n\n- `method` definition \u0026 calling.\n- singleton methods, class methods.\n- `class` and inheritance.\n- `block` and `yield`.\n- Constants.\n- Local variables.\n- Instance variables.\n- `load` \u0026 `require_relative`.\n- `Boolean` \u0026 `Integer` with basic methods.\n- `String` literal.\n- `Array` literal.\n\nUnsupported core features\n\n- class initializer, class instance variables.\n- `module` definition, `include`, `extend`.\n- variadic argument in function.\n- keyword argument in function.\n- GC.\n\n### Class \u0026 inherentance\n```ruby\nclass Foo\n  def to_s\n    \"foo\"\n  end\nend\n\nclass Bar \u003c Foo\nend\n\nclass Alice \u003c Bar\n  def to_s\n    \"i'm alice\"\n  end\n  def self.name\n    \"Alice\"\n  end\nend\n\nputs Foo.new.to_s # \"foo\"\nputs Bar.new.to_s # \"foo\"\nputs Alice.new.to_s # \"i'm alice\"\nputs Alice.name # \"Alice\"\n```\n\n### block\n```ruby\ndef yield_with_arg(s,x)\n  yield s,x\nend\n\nyield_with_arg(\"yield with\",\"arg\") do |ss, xx|\n  puts ss # \"yield with\"\n  puts xx # \"arg\"\nend\n\n3.times do |i|\n  puts i.to_s\n  4.times do |j|\n    puts j.to_s\n  end\nend\n\n([1,2,3]*1000).pmap do |x|\n  x+1\nend\n\n\n```\n\n\n## License\n\nErRuby is licensed to you under MIT license. See the [COPYING.txt](COPYING.txt) file for more details.\n","funding_links":[],"categories":["Day 1"],"sub_categories":["ErRuby: Ruby on Erlang/OTP"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjohnlinvc%2Ferruby","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjohnlinvc%2Ferruby","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjohnlinvc%2Ferruby/lists"}