{"id":13467502,"url":"https://github.com/nim-lang/Nim","last_synced_at":"2025-03-26T02:31:26.377Z","repository":{"id":1015715,"uuid":"842037","full_name":"nim-lang/Nim","owner":"nim-lang","description":"Nim is a statically typed compiled systems programming language. It combines successful concepts from mature languages like Python, Ada and Modula. Its design focuses on efficiency, expressiveness, and elegance (in that order of priority).","archived":false,"fork":false,"pushed_at":"2024-10-29T17:04:29.000Z","size":123239,"stargazers_count":16560,"open_issues_count":2073,"forks_count":1467,"subscribers_count":299,"default_branch":"devel","last_synced_at":"2024-10-29T17:54:32.759Z","etag":null,"topics":["compiler","efficient","hacktoberfest","language","macros","metaprogramming","nim","procedural"],"latest_commit_sha":null,"homepage":"https://nim-lang.org","language":"Nim","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/nim-lang.png","metadata":{"files":{"readme":"readme.md","changelog":"changelog.md","contributing":null,"funding":".github/FUNDING.yml","license":"copying.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"security.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":null,"patreon":"araq","open_collective":"nim","ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"custom":"https://nim-lang.org/donate.html"}},"created_at":"2010-08-16T20:38:58.000Z","updated_at":"2024-10-29T15:24:51.000Z","dependencies_parsed_at":"2023-09-21T20:02:10.439Z","dependency_job_id":"cec3016f-0d14-4182-92e4-821b2d6e1b1d","html_url":"https://github.com/nim-lang/Nim","commit_stats":{"total_commits":19558,"total_committers":953,"mean_commits":20.52256033578174,"dds":0.6582472645464772,"last_synced_commit":"f98964d99f2ab721cc718b2be3afa78305867b6b"},"previous_names":[],"tags_count":64,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nim-lang%2FNim","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nim-lang%2FNim/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nim-lang%2FNim/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nim-lang%2FNim/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nim-lang","download_url":"https://codeload.github.com/nim-lang/Nim/tar.gz/refs/heads/devel","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245218237,"owners_count":20579361,"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":["compiler","efficient","hacktoberfest","language","macros","metaprogramming","nim","procedural"],"created_at":"2024-07-31T15:00:57.295Z","updated_at":"2025-03-26T02:31:26.367Z","avatar_url":"https://github.com/nim-lang.png","language":"Nim","readme":"# \u003cimg src=\"https://raw.githubusercontent.com/nim-lang/assets/master/Art/logo-crown.png\" height=\"28px\"/\u003e Nim\n\n[![Build Status](https://dev.azure.com/nim-lang/Nim/_apis/build/status/nim-lang.Nim?branchName=devel)](https://dev.azure.com/nim-lang/Nim/_build/latest?definitionId=1\u0026branchName=devel)\n\nThis repository contains the Nim compiler, Nim's stdlib, tools, and documentation.\nFor more information about Nim, including downloads and documentation for\nthe latest release, check out [Nim's website][nim-site] or [bleeding edge docs](https://nim-lang.github.io/Nim/).\n\n## Community\n\n[![Join the IRC chat][badge-nim-irc]][nim-irc]\n[![Join the Discord server][badge-nim-discord]][nim-discord]\n[![Join the Gitter chat][badge-nim-gitter]][nim-gitter]\n[![Join the Matrix room](https://img.shields.io/matrix/nim-lang:matrix.org?color=blue\u0026style=flat\u0026logo=matrix)](https://matrix.to/#/#nim-lang:matrix.org)\n[![Get help][badge-nim-forum-gethelp]][nim-forum]\n[![View Nim posts on Stack Overflow][badge-nim-stackoverflow]][nim-stackoverflow-newest]\n[![Follow @nim_lang on Twitter][badge-nim-twitter]][nim-twitter]\n\n* The [forum][nim-forum] - the best place to ask questions and to discuss Nim.\n* [#nim IRC Channel (Libera Chat)][nim-irc] - a place to discuss Nim in real-time.\n  Also where most development decisions get made.\n* [Discord][nim-discord] - an additional place to discuss Nim in real-time. Most\n  channels there are bridged to IRC.\n* [Gitter][nim-gitter] - an additional place to discuss Nim in real-time. There\n  is a bridge between Gitter and the IRC channel.\n* [Matrix][nim-matrix] - the main room to discuss Nim in real-time. [Matrix space][nim-matrix-space] contains a list of rooms, most of them are bridged to IRC.\n* [Telegram][nim-telegram] - an additional place to discuss Nim in real-time. There\n  is the official Telegram channel. Not bridged to IRC.\n* [Stack Overflow][nim-stackoverflow] - a popular Q/A site for programming related\n  topics that includes posts about Nim.\n* [GitHub Wiki][nim-wiki] - Misc user-contributed content.\n\n## Compiling\n\nThe compiler currently officially supports the following platform and\narchitecture combinations:\n\n| Operating System               | Architectures Supported                          |\n|--------------------------------|----------------------------------------|\n| Windows (Windows XP or greater) | x86 and x86_64                             |\n| Linux (most distributions)     | x86, x86_64, ppc64, and armv6l             |\n| Mac OS X (10.04 or greater)    | x86, x86_64, ppc64, and Apple Silicon (ARM64) |\n\nMore platforms are supported, however, they are not tested regularly and they\nmay not be as stable as the above-listed platforms.\n\nCompiling the Nim compiler is quite straightforward if you follow these steps:\n\nFirst, the C source of an older version of the Nim compiler is needed to\nbootstrap the latest version because the Nim compiler itself is written in the\nNim programming language. Those C sources are available within the\n[``nim-lang/csources_v2``][csources-v2-repo] repository.\n\nNext, to build from source you will need:\n\n  * A C compiler such as ``gcc`` 6.x/later or an alternative such as ``clang``,\n    ``Visual C++`` or ``Intel C++``. It is recommended to use ``gcc`` 6.x or\n    later.\n  * Either ``git`` or ``wget`` to download the needed source repositories.\n  * The ``build-essential`` package when using ``gcc`` on Ubuntu (and likely\n    other distros as well).\n  * On Windows MinGW 4.3.0 (GCC 8.10) is the minimum recommended compiler.\n  * Nim hosts a known working MinGW distribution:\n    * [MinGW32.7z](https://nim-lang.org/download/mingw32.7z)\n    * [MinGW64.7z](https://nim-lang.org/download/mingw64.7z)\n\n**Windows Note: Cygwin and similar POSIX runtime environments are not supported.**\n\nThen, if you are on a \\*nix system or Windows, the following steps should compile\nNim from source using ``gcc``, ``git``, and the ``koch`` build tool.\n\n**Note: The following commands are for the development version of the compiler.**\nFor most users, installing the latest stable version is enough. Check out\nthe installation instructions on the website to do so: https://nim-lang.org/install.html.\n\nFor package maintainers: see [packaging guidelines](https://nim-lang.github.io/Nim/packaging.html).\n\nFirst, get Nim from GitHub:\n\n```\ngit clone https://github.com/nim-lang/Nim.git\ncd Nim\n```\n\nNext, run the appropriate build shell script for your platform:\n\n* `build_all.sh` (Linux, Mac)\n* `build_all.bat` (Windows)\n\nFinally, once you have finished the build steps (on Windows, Mac, or Linux) you\nshould add the ``bin`` directory to your PATH.\n\nSee also [bootstrapping the compiler](https://nim-lang.github.io/Nim/intern.html#bootstrapping-the-compiler).\n\nSee also [reproducible builds](https://nim-lang.github.io/Nim/intern.html#bootstrapping-the-compiler-reproducible-builds).\n\n## Koch\n\n``koch`` is the build tool used to build various parts of Nim and to generate\ndocumentation and the website, among other things. The ``koch`` tool can also\nbe used to run the Nim test suite.\n\nAssuming that you added Nim's ``bin`` directory to your PATH, you may execute\nthe tests using ``./koch tests``. The tests take a while to run, but you\ncan run a subset of tests by specifying a category (for example\n``./koch tests cat async``).\n\nFor more information on the ``koch`` build tool please see the documentation\nwithin the [doc/koch.md](https://nim-lang.github.io/Nim/koch.html) file.\n\n## Nimble\n\n``nimble`` is Nim's package manager. To learn more about it, see the\n[``nim-lang/nimble``][nimble-repo] repository.\n\n## Contributors\n\nThis project exists thanks to all the people who contribute.\n\u003ca href=\"https://github.com/nim-lang/Nim/graphs/contributors\"\u003e\u003cimg src=\"https://opencollective.com/Nim/contributors.svg?width=890\" /\u003e\u003c/a\u003e\n\n## Contributing\n\n[![Backers on Open Collective](https://opencollective.com/nim/backers/badge.svg)](#backers) [![Sponsors on Open Collective](https://opencollective.com/nim/sponsors/badge.svg)](#sponsors)\n[![Donate Bitcoins][badge-nim-bitcoin]][nim-bitcoin]\n[![Open Source Helpers](https://www.codetriage.com/nim-lang/nim/badges/users.svg)](https://www.codetriage.com/nim-lang/nim)\n\nSee [detailed contributing guidelines](https://nim-lang.github.io/Nim/contributing.html).\nWe welcome all contributions to Nim regardless of how small or large\nthey are. Everything from spelling fixes to new modules to be included in the\nstandard library are welcomed and appreciated. Before you start contributing,\nyou should familiarize yourself with the following repository structure:\n\n* ``bin/``, ``build/`` - these directories are empty, but are used when Nim is built.\n* ``compiler/`` - the compiler source code. Also includes plugins within ``compiler/plugins``.\n* ``nimsuggest`` - the nimsuggest tool that previously lived in the [``nim-lang/nimsuggest``][nimsuggest-repo] repository.\n* ``config/`` - the configuration for the compiler and documentation generator.\n* ``doc/`` - the documentation files in reStructuredText format.\n* ``lib/`` - the standard library, including:\n    * ``pure/`` - modules in the standard library written in pure Nim.\n    * ``impure/`` - modules in the standard library written in pure Nim with\n    dependencies written in other languages.\n    * ``wrappers/`` - modules that wrap dependencies written in other languages.\n* ``tests/`` - contains categorized tests for the compiler and standard library.\n* ``tools/`` - the tools including ``niminst`` (mostly invoked via\n  ``koch``).\n* ``koch.nim`` - the tool used to bootstrap Nim, generate C sources, build the website,\n  and generate the documentation.\n\nIf you are not familiar with making a pull request using GitHub and/or git, please\nread [this guide][pull-request-instructions].\n\nIdeally, you should make sure that all tests pass before submitting a pull request.\nHowever, if you are short on time, you can just run the tests specific to your\nchanges by only running the corresponding categories of tests. CI verifies\nthat all tests pass before allowing the pull request to be accepted, so only\nrunning specific tests should be harmless.\nIntegration tests should go in ``tests/untestable``.\n\nIf you're looking for ways to contribute, please look at our [issue tracker][nim-issues].\nThere are always plenty of issues labeled [``Easy``][nim-issues-easy]; these should\nbe a good starting point for an initial contribution to Nim.\n\nYou can also help with the development of Nim by making donations. Donations can be\nmade using:\n\n* [Open Collective](https://opencollective.com/nim)\n* [Bitcoin][nim-bitcoin]\n\nIf you have any questions feel free to submit a question on the\n[Nim forum][nim-forum], or via IRC on [the \\#nim channel][nim-irc].\n\n\n## Backers\n\nThank you to all our backers! [[Become a backer](https://opencollective.com/Nim#backer)]\n\n\u003ca href=\"https://opencollective.com/Nim#backers\" target=\"_blank\"\u003e\u003cimg src=\"https://opencollective.com/Nim/backers.svg?width=890\"\u003e\u003c/a\u003e\n\n\n## Sponsors\n\nSupport this project by becoming a sponsor. Your logo will show up here with a link to your website. [[Become a sponsor](https://opencollective.com/Nim#sponsor)]\n\n\u003ca href=\"https://opencollective.com/Nim/sponsor/0/website\" target=\"_blank\"\u003e\u003cimg src=\"https://opencollective.com/Nim/sponsor/0/avatar.svg\"\u003e\u003c/a\u003e\n\u003ca href=\"https://opencollective.com/Nim/sponsor/1/website\" target=\"_blank\"\u003e\u003cimg src=\"https://opencollective.com/Nim/sponsor/1/avatar.svg\"\u003e\u003c/a\u003e\n\u003ca href=\"https://opencollective.com/Nim/sponsor/2/website\" target=\"_blank\"\u003e\u003cimg src=\"https://opencollective.com/Nim/sponsor/2/avatar.svg\"\u003e\u003c/a\u003e\n\u003ca href=\"https://opencollective.com/Nim/sponsor/3/website\" target=\"_blank\"\u003e\u003cimg src=\"https://opencollective.com/Nim/sponsor/3/avatar.svg\"\u003e\u003c/a\u003e\n\u003ca href=\"https://opencollective.com/Nim/sponsor/4/website\" target=\"_blank\"\u003e\u003cimg src=\"https://opencollective.com/Nim/sponsor/4/avatar.svg\"\u003e\u003c/a\u003e\n\u003ca href=\"https://opencollective.com/Nim/sponsor/5/website\" target=\"_blank\"\u003e\u003cimg src=\"https://opencollective.com/Nim/sponsor/5/avatar.svg\"\u003e\u003c/a\u003e\n\u003ca href=\"https://opencollective.com/Nim/sponsor/6/website\" target=\"_blank\"\u003e\u003cimg src=\"https://opencollective.com/Nim/sponsor/6/avatar.svg\"\u003e\u003c/a\u003e\n\u003ca href=\"https://opencollective.com/Nim/sponsor/7/website\" target=\"_blank\"\u003e\u003cimg src=\"https://opencollective.com/Nim/sponsor/7/avatar.svg\"\u003e\u003c/a\u003e\n\u003ca href=\"https://opencollective.com/Nim/sponsor/8/website\" target=\"_blank\"\u003e\u003cimg src=\"https://opencollective.com/Nim/sponsor/8/avatar.svg\"\u003e\u003c/a\u003e\n\u003ca href=\"https://opencollective.com/Nim/sponsor/9/website\" target=\"_blank\"\u003e\u003cimg src=\"https://opencollective.com/Nim/sponsor/9/avatar.svg\"\u003e\u003c/a\u003e\n\nYou can also see a list of all our sponsors/backers from various payment services on the [sponsors page](https://nim-lang.org/sponsors.html) of our website.\n\n## License\nThe compiler and the standard library are licensed under the MIT license, except\nfor some modules which explicitly state otherwise. As a result, you may use any\ncompatible license (essentially any license) for your own programs developed with\nNim. You are explicitly permitted to develop commercial applications using Nim.\n\nPlease read the [copying.txt](copying.txt) file for more details.\n\nCopyright © 2006-2025 Andreas Rumpf, all rights reserved.\n\n[nim-site]: https://nim-lang.org\n[nim-forum]: https://forum.nim-lang.org\n[nim-issues]: https://github.com/nim-lang/Nim/issues\n[nim-issues-easy]: https://github.com/nim-lang/Nim/labels/Easy\n[nim-irc]: https://web.libera.chat/#nim\n[nim-twitter]: https://twitter.com/nim_lang\n[nim-stackoverflow]: https://stackoverflow.com/questions/tagged/nim-lang\n[nim-stackoverflow-newest]: https://stackoverflow.com/questions/tagged/nim-lang?sort=newest\u0026pageSize=15\n[nim-discord]: https://discord.gg/nim\n[nim-gitter]: https://gitter.im/nim-lang/Nim\n[nim-matrix]: https://matrix.to/#/#nim-lang:matrix.org\n[nim-matrix-space]: https://matrix.to/#/#nim:envs.net\n[nim-telegram]: https://t.me/nim_lang\n[nim-bitcoin]: https://blockchain.info/address/1BXfuKM2uvoD6mbx4g5xM3eQhLzkCK77tJ\n[nimble-repo]: https://github.com/nim-lang/nimble\n[nimsuggest-repo]: https://github.com/nim-lang/nimsuggest\n[csources-repo-deprecated]: https://github.com/nim-lang/csources\n[csources-v2-repo]: https://github.com/nim-lang/csources_v2\n[badge-nim-irc]: https://img.shields.io/badge/chat-on_irc-blue.svg?style=flat-square\n[badge-nim-discord]: https://img.shields.io/discord/371759389889003530?color=blue\u0026label=discord\u0026logo=discord\u0026logoColor=gold\u0026style=flat-square\n[badge-nim-gitter]: https://img.shields.io/badge/chat-on_gitter-blue.svg?style=flat-square\n[badge-nim-forum-gethelp]: https://img.shields.io/badge/Forum-get%20help-4eb899.svg?style=flat-square\n[badge-nim-twitter]: https://img.shields.io/twitter/follow/nim_lang.svg?style=social\n[badge-nim-stackoverflow]: https://img.shields.io/badge/stackoverflow-nim_tag-yellow.svg?style=flat-square\n[badge-nim-bitcoin]: https://img.shields.io/badge/bitcoin-1BXfuKM2uvoD6mbx4g5xM3eQhLzkCK77tJ-D69134.svg?style=flat-square\n[pull-request-instructions]: https://help.github.com/articles/using-pull-requests/\n[nim-wiki]: https://github.com/nim-lang/Nim/wiki\n","funding_links":["https://patreon.com/araq","https://opencollective.com/nim","https://nim-lang.org/donate.html","https://opencollective.com/Nim"],"categories":["Nim","Nimrod","Implementations","Language Features","计算机编程 数据结构与算法","Uncategorized","Back-End Development","nim","Compilers and Interpreters"],"sub_categories":["Byte Size","Implementations","网络服务_其他","Uncategorized","Serious Projects"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnim-lang%2FNim","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnim-lang%2FNim","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnim-lang%2FNim/lists"}