{"id":19297212,"url":"https://github.com/embedded2015/rubi","last_synced_at":"2025-04-22T08:31:14.407Z","repository":{"id":91361923,"uuid":"44351941","full_name":"embedded2015/rubi","owner":"embedded2015","description":"Ruby-like high-performance script programming language with JIT compiler","archived":false,"fork":false,"pushed_at":"2016-02-28T03:35:25.000Z","size":127,"stargazers_count":89,"open_issues_count":2,"forks_count":40,"subscribers_count":6,"default_branch":"master","last_synced_at":"2024-11-09T23:02:24.193Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/embedded2015.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":"AUTHORS","dei":null,"publiccode":null,"codemeta":null}},"created_at":"2015-10-15T23:49:26.000Z","updated_at":"2024-11-01T19:44:45.000Z","dependencies_parsed_at":null,"dependency_job_id":"8e02d3bd-4a38-4a21-9bcc-d537ee33ffd1","html_url":"https://github.com/embedded2015/rubi","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/embedded2015%2Frubi","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/embedded2015%2Frubi/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/embedded2015%2Frubi/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/embedded2015%2Frubi/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/embedded2015","download_url":"https://codeload.github.com/embedded2015/rubi/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250206149,"owners_count":21392195,"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-11-09T23:01:48.063Z","updated_at":"2025-04-22T08:31:14.403Z","avatar_url":"https://github.com/embedded2015.png","language":"C","funding_links":[],"categories":["C"],"sub_categories":[],"readme":"Rubi\n====\nRubi is a high-level, high-performance script programming language, with syntax that is familiar to users of Ruby. Rubi is implemented via just-in-time compilation.\n\nSyntax\n======\nAnyone who is familiar to Ruby programming language should learn Rubi quickly.\nSample programs can be found in the directory `progs`.\n\n- Syntax\n```ruby\n# Statement =\u003e write in the function.\n\n# output the string and number\n# puts is output and \\n\n# output is output only.\nputs \"Hello world!!\" # =\u003e Hello world!!\\n\nputs \"number = \", 65536 # =\u003e number = 65536\\n\noutput \"not new line\" # =\u003e not new line\n\n# declaration is not required\n# support only integer\ni = 10\ni = i + 43\ni = i % 5\ni = i - 32\nsum = i * (12 / 5)\n12 / 5 # =\u003e 2\n\n# loop and if\nfor i = 1, i \u003c 100, i = i + 1\n    if i % 15 == 0\n        puts \"fizzbuzz\"\n    elsif i % 5 == 0\n        puts \"buzz\"\n    elsif i % 3 == 0\n        puts \"fizz\"\n    else\n        puts i\n    end\nend\n\n# create function\n# return is not support...\ndef sum(n)\n    sm = 0\n    for i = 1, i \u003c= n, i = i + 1\n        sm = sm + i\n    end\n    sm\nend\n```\n\n- Implement Fibonacci in Rubi:\n\n```ruby\ndef fib(n)\n    if n \u003c 2\n        n\n    else\n        fib(n - 1) + fib(n - 2)\n    end\nend\n\nputs fib(39)\n```\n\nLicensing\n=========\n\nRubi is freely redistributable under the two-clause BSD License.\nUse of this source code is governed by a BSD-style license that can be found\nin the `LICENSE` file.\n\nPortability\n===========\nThe compiler and JIT is highly dependant on the Intel x86 Instruction Set Architecture (ISA) and Linux style calling convention.\n\n\nQuick Start\n===========\n* Install development packages for Ubuntu Linux Ubuntu 14.04 LTS:\n```\nsudo apt-get install gcc-multilib libc6-dev-i386\n```\n* Build and run\n```\n$ make\n$ ./rubi [filename]\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fembedded2015%2Frubi","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fembedded2015%2Frubi","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fembedded2015%2Frubi/lists"}