{"id":25164222,"url":"https://github.com/sheikhartin/farr","last_synced_at":"2025-04-03T15:28:29.666Z","repository":{"id":228380653,"uuid":"707991697","full_name":"sheikhartin/farr","owner":"sheikhartin","description":"A brand new programming language designed for developers with diverse coding interests! Yes, it's free to star 🌟!","archived":false,"fork":false,"pushed_at":"2024-03-28T11:30:56.000Z","size":152,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-09T04:19:56.861Z","etag":null,"topics":["from-scratch","from-scratch-in-python","interpreted-programming-language","programming-language"],"latest_commit_sha":null,"homepage":"","language":"Python","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/sheikhartin.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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}},"created_at":"2023-10-21T07:26:28.000Z","updated_at":"2024-09-14T23:10:23.000Z","dependencies_parsed_at":"2024-03-24T23:31:04.110Z","dependency_job_id":null,"html_url":"https://github.com/sheikhartin/farr","commit_stats":null,"previous_names":["sheikhartin/farr"],"tags_count":9,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sheikhartin%2Ffarr","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sheikhartin%2Ffarr/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sheikhartin%2Ffarr/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sheikhartin%2Ffarr/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sheikhartin","download_url":"https://codeload.github.com/sheikhartin/farr/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247027011,"owners_count":20871465,"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":["from-scratch","from-scratch-in-python","interpreted-programming-language","programming-language"],"created_at":"2025-02-09T04:20:00.814Z","updated_at":"2025-04-03T15:28:29.644Z","avatar_url":"https://github.com/sheikhartin.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Farr\n\n![GitHub repo status](https://img.shields.io/badge/status-active-green?style=flat)\n![GitHub license](https://img.shields.io/github/license/sheikhartin/farr)\n![GitHub contributors](https://img.shields.io/github/contributors/sheikhartin/farr)\n![GitHub tag (latest by date)](https://img.shields.io/github/v/tag/sheikhartin/farr)\n![GitHub repo size](https://img.shields.io/github/repo-size/sheikhartin/farr)\n\n\u003cimg src=\"https://github.com/sheikhartin/farr/assets/64385550/28cdc310-faec-4a36-97f2-fd98bd292ee0\" alt=\"Overcoming mental limitations\" width=\"35%\" height=\"35%\" /\u003e\n\nA programming language inspired by different things that aims to attract all kinds of developers. Ah, obviously that's impossible, but at least we have a good idea!\n\n### Getting Started\n\nIn our programming language, the well-known Fizzbuzz program is as follows:\n\n```zig\n/**\n * A small challenge to label numbers into three categories...\n */\n\nlet rng_start = (\n  readln!(\"Enter the starting point of the range: \")\n  .toint()\n);\nlet rng_end = (\n  readln!(\"And also the end: \")\n  .toint()\n);\nif rng_start \u003e= rng_end = {\n  println(\"The start value must be smaller than the end value!\");\n  exit!(1);\n}\n\nfor let i in [rng_start..rng_end] = {\n  if ((% i 15) == 0) = {\n    println(\"...Fizzbuzz\");\n  } else if ((% i 3) == 0) = {\n    println(\"...Fizz\");\n  } else if ((% i 5) == 0) = {\n    println(\"...Buzz\");\n  } else = {\n    println(\"${i}\"); // Or just pass `i` as an argument!\n  }\n}\n```\n\nYes, we use **prefix notation for mathematical operations** that clearly indicate priorities. You should also put an **equal sign behind the open brace before starting a block**...\n\nWould you like to see more code samples from the Farr programming language? Go to the [examples](examples) folder...\n\n### Usage\n\nClone it first:\n\n```bash\ngit clone https://github.com/sheikhartin/farr.git \\\n\u0026\u0026 cd farr\n```\n\nFor both cool developers and adventurous users:\n\n```bash\npip install -e . \\\n\u0026\u0026 export FARRPATH=$PWD \\\n\u0026\u0026 farr -h\n```\n\nHowever, virtualization is usually a better option:\n\n```bash\ndocker build -t farr . \\\n\u0026\u0026 docker run -it farr -h\n```\n\nOnce Farr is installed, you can use it in several ways:\n\nTo run a `.farr` file, use the `run` command:\n\n```bash\nfarr run examples/linear_search/sol02.farr\n```\n\nRemember to replace the example code with your own Farr code.\n\nTo start an interactive Farr shell (REPL), use the `shell` command:\n\n```bash\nfarr shell\n```\n\nTo swiftly execute Farr code snippets right from your command line, use the `cmd` command:\n\n```bash\nfarr cmd 'println(\"Hello, world!\");'\n```\n\n### Community\n\nJoin the Farr community [here](https://github.com/sheikhartin/farr/discussions) to discuss, ask questions, and share what you've built with Farr.\n\n### License\n\nThis project is licensed under the MIT license found in the [LICENSE](LICENSE) file in the root directory of this repository.\n\n### Disclaimer\n\nAs you know, you shouldn't use this language for a serious product \\[at least not yet\\]!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsheikhartin%2Ffarr","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsheikhartin%2Ffarr","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsheikhartin%2Ffarr/lists"}