{"id":27422530,"url":"https://github.com/callmesalmon/kite","last_synced_at":"2025-07-21T09:32:39.045Z","repository":{"id":263898967,"uuid":"885607478","full_name":"callmesalmon/kite","owner":"callmesalmon","description":"Source code for the \"Kite\" programming language. Contributions are always welcome! (WIP)","archived":false,"fork":false,"pushed_at":"2025-06-17T19:00:29.000Z","size":157,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-20T17:45:11.159Z","etag":null,"topics":["antifascist","c","contribute","contributions-welcome","functional","functional-programming","imperative","imperative-programming","imperative-programming-language","interpreter","minimal","minimalist","programming","programming-language","recursion","recursive","recursive-functions","recursive-programming"],"latest_commit_sha":null,"homepage":"","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/callmesalmon.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,"zenodo":null}},"created_at":"2024-11-08T23:36:14.000Z","updated_at":"2025-06-21T09:06:04.000Z","dependencies_parsed_at":"2024-11-20T22:49:54.524Z","dependency_job_id":"641a4517-805f-4f02-bbc6-baba440040f8","html_url":"https://github.com/callmesalmon/kite","commit_stats":null,"previous_names":["elisstaaf/kite","realpuresalmon/kite","bestsalmon/kite","callmesalmon/kite"],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/callmesalmon/kite","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/callmesalmon%2Fkite","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/callmesalmon%2Fkite/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/callmesalmon%2Fkite/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/callmesalmon%2Fkite/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/callmesalmon","download_url":"https://codeload.github.com/callmesalmon/kite/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/callmesalmon%2Fkite/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266276093,"owners_count":23903981,"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":["antifascist","c","contribute","contributions-welcome","functional","functional-programming","imperative","imperative-programming","imperative-programming-language","interpreter","minimal","minimalist","programming","programming-language","recursion","recursive","recursive-functions","recursive-programming"],"created_at":"2025-04-14T10:22:04.481Z","updated_at":"2025-07-21T09:32:39.017Z","avatar_url":"https://github.com/callmesalmon.png","language":"C","readme":"Kite Programming Language\n=========================\n\nKite is a pure and minimalistic programming language written in C.\nIt can be a lot, but if I'd *have* to classify it, it's a functional\nprogramming language with imperative elements. This is a sample of what\ncode written in Kite might look like:\n\n```coffeescript\nlet loop = fun(func, times, until)\n    if times \u003c until do @(func, times + 1, until)\n    else func\n\nlet incr = fun(num)\n    num + 1\n\nlet mainloop = fun(k, j, i)\n    loop(incr(k), j, i)\n\nloop(mainloop(1, 5, 25), 0, 10)\n```\n\nSimple program to print the number \"100\":\n\n```coffeescript\n# To print without newline:\nwrite(tostring(100)\n# or\nimport io\nio.print(100)\n\n# To print with a newline:\nwriteln(tostring(100))\n# or\nimport io\nio.println(100)\n```\n\nIt also includes functions:\n\n```coffeescript\nlet println = fun(v)\n    writeln(tostring(v)\n\nlet sum = fun(x)\n    if x \u003c 2 do x\n    else x + sum(x - 1)\n\nprintln(sum(3))\n```\n\nThis does the same thing as the last example:\n\n```coffeescript\nlet println = fun(v)\n    writeln(tostring(v))\n\nprintln((fun(x) if x \u003c 2 do x else x + @(x - 1))(3))\n```\n\n\u003e [!NOTE]\n\u003e Pro tip: Shebangs work just fine with kite! If you can't be bothered to\n\u003e run ``kite run file.kite``, just put ``#!/usr/local/bin/kite run`` in file.kite,\n\u003e run ``chmod +x file.kite`` and then you can run file.kite by ``./file.kite``!\n\nOh, almost forgot about Modules:\n\n```coffeescript\nimport io\nio.print(10)\nio.println(20)\nio.print(30)\n```\n\nstdlib/io.kite:\n\n```coffeescript\nlet export print = fun(val)\n    write(tostring(val))\nlet export println = fun(val)\n    writeln(tostring(val))\n```\n\nAnother module; func:\n\n```coffeescript\nimport func\n\nlet test = fun()\n    writeln(tostring(100))\n\nfunc.loop(test(), 0, 10)\n```\n\nstdlib/func.kite:\n\n```coffeescript\nlet export loop = fun(func, times, until)\n    if times \u003c until do @(func, times + 1, until)\n    else func\n```\n\nAnother one; math:\n\n```coffeescript\nimport math\n\nwriteln(tostring(math.facto(5)))\nwriteln(tostring(math.fib(10)))\n```\n\nstdlib/math.kite:\n\n```coffeescript\nlet facto = fun(n)\n    if n == 1 do n\n    else n * @(n - 1)\n\nlet fib = fun(x)\n\tif x \u003c 2 do 1\n\telse @(x - 1) + @(x - 2)\n```\n\u003e [!NOTE]\n\u003e All modules should be located in the ``lib/`` directory. This means that you\n\u003e can create your own Kite project, and you can import other files\n\u003e by putting them in the ``lib/`` directory.\n\nRequirements\n------------\n* [clang](https://clang.llvm.org/)\n* [make](https://www.gnu.org/software/make)\n* [git](https://git-scm.com/downloads) or [Github CLI](https://github.com/cli/cli#installation)\n\nInstallation\n------------\nTo install, firstly clone the repo:\n\n```sh\n# git\ngit clone https://github.com/callmesalmon/kite\n\n# gh\ngh repo clone callmesalmon/kite\n```\n\nThen build an executable using make:\n\n```sh\ncd kite\nsudo make\n\n# NOTE: To only build the project,\n#       not install it, run:\nmake build\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcallmesalmon%2Fkite","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcallmesalmon%2Fkite","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcallmesalmon%2Fkite/lists"}