{"id":20160195,"url":"https://github.com/trizen/island","last_synced_at":"2026-03-06T02:09:59.989Z","repository":{"id":68776028,"uuid":"69106887","full_name":"trizen/island","owner":"trizen","description":"The Island programming language. (unimplemented idea)","archived":false,"fork":false,"pushed_at":"2016-09-24T16:56:42.000Z","size":19,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-03T02:28:29.396Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/trizen.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":"2016-09-24T14:25:04.000Z","updated_at":"2022-08-27T15:32:50.000Z","dependencies_parsed_at":null,"dependency_job_id":"6c5db56c-1e53-4341-a32c-2940c6ab51b3","html_url":"https://github.com/trizen/island","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/trizen/island","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trizen%2Fisland","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trizen%2Fisland/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trizen%2Fisland/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trizen%2Fisland/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/trizen","download_url":"https://codeload.github.com/trizen/island/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trizen%2Fisland/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30158981,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-05T22:39:40.138Z","status":"online","status_checked_at":"2026-03-06T02:00:08.268Z","response_time":250,"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":[],"created_at":"2024-11-14T00:12:43.595Z","updated_at":"2026-03-06T02:09:59.957Z","avatar_url":"https://github.com/trizen.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# Island\n\nThe Island programming language is a an experimental project for a uniformly design programming language.\n\nThe main features of the language include:\n\n* Prefix notation\n* Multiple dispatch\n* Higher-order functions\n* Uniformity and simplicity\n\n### Examples\n\nThe following examples illustrate some of the decisions made in designing the syntax of the language.\n\n#### Factorial\n\n```python\ndef fac { |n|\n    if [eq n 0] [ return 1 ]\n    mul n (call fac (sub n 1))\n}\n\nsay (call fac 10)    #=\u003e 3628800\n```\n\n#### Fibonacci\n\n```python\ndef fib { |n|\n    if [lt n 2] [ return n ]\n    add (call fib (sub n 1)) (call fib (sub n 2))\n}\n\nsay (call fib 12)    #=\u003e 144\n```\n\n#### Bernoulli numbers (recursive)\n\n```ruby\ndef bern_helper { |n k|\n    mul (call binomial n k) (div (call bernoulli_number k) (add (sub n k) 1))\n}\n\ndef bern_diff { |n k d|\n    if [lt n k] [ return d ]\n    call bern_diff n (add k 1) (sub d (call bern_helper (add n 1) k))\n}\n\ndef bernoulli_number { |n|\n    if [one? n] [ return (div 1 2) ]\n    if [odd? n] [ return 0         ]\n    if [gt n 0] [ return (call bern_diff (sub n 1) 0 1) ]\n    return 1\n}\n\nfor (range 0 25) { |i|\n    def num (call bernoulli_number i)\n    unless [zero? num] [\n        printf \"B(%2d) = %20s / %s\\n\" i (nu num) (de num)\n    ]\n}\n```\n\n#### `while`-loop\n\nMultimethod: `while(Expr, Expr)`\n\n```python\ndef n 10\nwhile [gt n 0] [\n    say n\n    sub! n 1\n]\n```\n\n#### `foreach`-loop\n\nMultimethod: `for(Range, Block)`\n\n```python\nfor (range 1 10) { |n|\n    say n\n}\n```\n\n#### `for(;;)`-loop\n\nMultimethod: `for(Expr, Expr, Expr, Expr)`\n\n```python\nfor [def n 1] [lt n 10] [add! n 1] [\n    say n\n]\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftrizen%2Fisland","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftrizen%2Fisland","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftrizen%2Fisland/lists"}