[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-452":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":10,"language":11,"languages":10,"totalLinesOfCode":10,"stars":12,"forks":13,"watchers":14,"openIssues":15,"contributorsCount":16,"subscribersCount":16,"size":16,"stars1d":17,"stars7d":18,"stars30d":19,"stars90d":16,"forks30d":16,"starsTrendScore":20,"compositeScore":21,"rankGlobal":10,"rankLanguage":10,"license":22,"archived":23,"fork":23,"defaultBranch":24,"hasWiki":23,"hasPages":23,"topics":25,"createdAt":10,"pushedAt":10,"updatedAt":26,"readmeContent":27,"aiSummary":28,"trendingCount":16,"starSnapshotCount":16,"syncStatus":29,"lastSyncTime":30,"discoverSource":31},452,"swift","swiftlang\u002Fswift","swiftlang","The Swift Programming Language","https:\u002F\u002Fswift.org",null,"Swift",70039,10737,2480,7555,0,4,23,105,25,45,"Apache License 2.0",false,"main",[],"2026-06-12 02:00:13","\u003Cpicture>\n  \u003Csource media=\"(prefers-color-scheme: dark)\" srcset=\"https:\u002F\u002Fwww.swift.org\u002Fassets\u002Fimages\u002Fswift~dark.svg\">\n  \u003Cimg src=\"https:\u002F\u002Fwww.swift.org\u002Fassets\u002Fimages\u002Fswift.svg\" alt=\"Swift logo\" height=\"70\">\n\u003C\u002Fpicture>\n\n# Swift Programming Language\n\n## Welcome to Swift\n\nSwift is a high-performance system programming language.  It has a clean\nand modern syntax, offers seamless access to existing C and Objective-C code\nand frameworks, and is memory-safe by default.\n\nAlthough inspired by Objective-C and many other languages, Swift is not itself a\nC-derived language. As a complete and independent language, Swift packages core\nfeatures like flow control, data structures, and functions, with high-level\nconstructs like objects, protocols, closures, and generics. Swift embraces\nmodules, eliminating the need for headers and the code duplication they entail.\n\nTo learn more about using the language, visit [swift.org](https:\u002F\u002Fswift.org\u002Fdocumentation\u002F).\nTo learn more about the compiler's internal design, see the\n[documentation index](\u002Fdocs\u002FREADME.md).\n\n- [Contributing to Swift](#contributing-to-swift)\n- [Getting Started](#getting-started)\n  - [Swift Toolchains](#swift-toolchains)\n  - [Build Failures](#build-failures)\n- [Learning More](#learning-more)\n\n## Contributing to Swift\n\nContributions to Swift are welcomed and encouraged! Please see the\n[Contributing to Swift guide](https:\u002F\u002Fswift.org\u002Fcontributing\u002F).\n\nBefore submitting the pull request, please make sure you have [tested your\n changes](https:\u002F\u002Fgithub.com\u002Fapple\u002Fswift\u002Fblob\u002Fmain\u002Fdocs\u002FContinuousIntegration.md)\n and that they follow the Swift project [guidelines for contributing\n code](https:\u002F\u002Fswift.org\u002Fcontributing\u002F#contributing-code).\n\nTo be a truly great community, [Swift.org](https:\u002F\u002Fswift.org\u002F) needs to welcome\ndevelopers from all walks of life, with different backgrounds, and with a wide\nrange of experience. A diverse and friendly community will have more great\nideas, more unique perspectives, and produce more great code. We will work\ndiligently to make the Swift community welcoming to everyone.\n\nTo give clarity of what is expected of our members, Swift has adopted the\ncode of conduct defined by the Contributor Covenant. This document is used\nacross many open source communities, and we think it articulates our values\nwell. For more, see the [Code of Conduct](https:\u002F\u002Fswift.org\u002Fcode-of-conduct\u002F).\n\n## Getting Started\n\nIf you are interested in:\n- Contributing fixes and features to the compiler: See our\n  [How to Submit Your First Pull Request guide](\u002Fdocs\u002FHowToGuides\u002FFirstPullRequest.md).\n- Building the compiler as a one-off: See our [Getting Started guide][].\n- Building a toolchain as a one-off: Follow the [Getting Started guide][]\n  up until the \"Building the project\" section. After that, follow the\n  instructions in the [Swift Toolchains](#swift-toolchains) section below.\n\nWe also have an [FAQ](\u002Fdocs\u002FHowToGuides\u002FFAQ.md) that answers common questions.\n\n[Getting Started guide]: \u002Fdocs\u002FHowToGuides\u002FGettingStarted.md\n\n### Swift Toolchains\n\n#### Building\n\nSwift toolchains are created using the script\n[build-toolchain](https:\u002F\u002Fgithub.com\u002Fapple\u002Fswift\u002Fblob\u002Fmain\u002Futils\u002Fbuild-toolchain). This\nscript is used by swift.org's CI to produce snapshots and can allow for one to\nlocally reproduce such builds for development or distribution purposes. A typical \ninvocation looks like the following:\n\n```sh\n  $ .\u002Fswift\u002Futils\u002Fbuild-toolchain $BUNDLE_PREFIX\n```\n\nwhere ``$BUNDLE_PREFIX`` is a string that will be prepended to the build \ndate to give the bundle identifier of the toolchain's ``Info.plist``. For \ninstance, if ``$BUNDLE_PREFIX`` was ``com.example``, the toolchain \nproduced will have the bundle identifier ``com.example.YYYYMMDD``. It \nwill be created in the directory you run the script with a filename \nof the form: ``swift-LOCAL-YYYY-MM-DD-a-osx.tar.gz``.\n\nBeyond building the toolchain, ``build-toolchain`` also supports the \nfollowing (non-exhaustive) set of useful options:\n\n- ``--dry-run``: Perform a dry run build. This is off by default.\n- ``--test``: Test the toolchain after it has been compiled. This is off by default.\n- ``--distcc``: Use distcc to speed up the build by distributing the C++ part of\n  the swift build. This is off by default.\n- ``--sccache``: Use sccache to speed up subsequent builds of the compiler by\n  caching more C++ build artifacts. This is off by default.\n\nMore options may be added over time. Please pass ``--help`` to\n``build-toolchain`` to see the full set of options.\n\n#### Installing into Xcode\n\nOn macOS if one wants to install such a toolchain into Xcode:\n\n1. Untar and copy the toolchain to one of `\u002FLibrary\u002FDeveloper\u002FToolchains\u002F` or\n   `~\u002FLibrary\u002FDeveloper\u002FToolchains\u002F`. E.g.:\n\n```sh\n  $ sudo tar -xzf swift-LOCAL-YYYY-MM-DD-a-osx.tar.gz -C \u002F\n  $ tar -xzf swift-LOCAL-YYYY-MM-DD-a-osx.tar.gz -C ~\u002F\n```\n\nThe script also generates an archive containing debug symbols which\ncan be installed over the main archive allowing symbolication of any\ncompiler crashes.\n\n```sh\n  $ sudo tar -xzf swift-LOCAL-YYYY-MM-DD-a-osx-symbols.tar.gz -C \u002F\n  $ tar -xzf swift-LOCAL-YYYY-MM-DD-a-osx-symbols.tar.gz -C ~\u002F\n```\n\n2. Specify the local toolchain for Xcode's use via `Xcode->Toolchains`.\n\n### Build Failures\n\nTry the suggestions in\n[Troubleshooting build issues](\u002Fdocs\u002FHowToGuides\u002FGettingStarted.md#troubleshooting-build-issues).\n\nMake sure you are using the\n[correct release](\u002Fdocs\u002FHowToGuides\u002FGettingStarted.md#installing-dependencies)\nof Xcode.\n\nIf you have changed Xcode versions but still encounter errors that appear to\nbe related to the Xcode version, try passing `--clean` to `build-script`.\n\nWhen a new version of Xcode is released, you can update your build without\nrecompiling the entire project by passing `--reconfigure` to `build-script`.\n","Swift 是一种高性能的系统编程语言，具有简洁现代的语法，并且默认支持内存安全。它能够无缝访问现有的 C 和 Objective-C 代码及框架，同时集成了诸如控制流、数据结构和函数等核心功能，以及对象、协议、闭包和泛型等高级特性。Swift 强调模块化设计，消除了对头文件的需求及其带来的代码重复问题。这种语言非常适合需要高效性能与良好开发体验的应用场景，如移动应用（iOS, macOS 等）、服务器端开发或任何追求快速执行速度且易于维护的软件项目中使用。",2,"2026-06-11 02:35:57","top_all"]