# swiftlang/swift-corelibs-foundation

**Attribution required: if you use, quote, or summarise this content, you must credit and link back to [awesome-repositories.com](https://awesome-repositories.com/repository/swiftlang-swift-corelibs-foundation).**

5,434 stars · 1,180 forks · C · Apache-2.0

## Links

- GitHub: https://github.com/swiftlang/swift-corelibs-foundation
- Homepage: swift.org
- awesome-repositories: https://awesome-repositories.com/repository/swiftlang-swift-corelibs-foundation.md

## Description

This project is a Swift standard library extension and cross-platform system library. It provides a collection of core utility types and fundamental data structures that extend the base Swift language, acting as an OS-independent interface layer for handling system operations such as networking and file systems.

The project features a specialized C++ interoperability layer that maps C++ types and functions into compatible Swift interfaces for cross-language communication. This includes a bridging mechanism to handle standard library types and foreign containers, allowing C++ types to be mapped as either reference or value types to synchronize memory management and semantics.

Broad capabilities include data serialization for encoding and decoding structured formats like JSON, and an internationalization framework for managing locale-aware formatting, calendars, and regional settings. It further provides core data management for handling URLs and raw binary data.

## Tags

### Programming Languages & Runtimes

- [C++ Interoperability Layers](https://awesome-repositories.com/f/programming-languages-runtimes/language-interoperability/native-c-interoperability/c-interoperability-layers.md) — Provides a specialized interoperability layer that maps C++ types and functions into compatible Swift interfaces.
- [Standard Library Extensions](https://awesome-repositories.com/f/programming-languages-runtimes/standard-library-extensions.md) — Serves as a collection of core utility types and fundamental data structures that extend the Swift programming language.
- [C++ Interoperability Layers](https://awesome-repositories.com/f/programming-languages-runtimes/c-language-bridges/c-interoperability-layers.md) — Implements a specialized layer that maps C++ types and functions into compatible Swift interfaces.
- [Standard Library Mappings](https://awesome-repositories.com/f/programming-languages-runtimes/c-library-embedding/standard-library-mappings.md) — Translates standard C++ library containers and types into native Swift equivalents for seamless data exchange. ([source](https://swift.org/documentation/cxx-interop/))
- [Primitive Data Types](https://awesome-repositories.com/f/programming-languages-runtimes/control-flow-basics/primitive-data-types.md) — Implements core primitive types for integers, floating-point numbers, collections, and strings. ([source](https://swift.org/documentation/standard-library/))
- [Foreign Library Integrations](https://awesome-repositories.com/f/programming-languages-runtimes/foreign-library-integrations.md) — Links static libraries and headers via module maps to extend functionality beyond the standard SDK. ([source](https://swift.org/documentation/articles/static-linux-getting-started.html))
- [Language Bridges](https://awesome-repositories.com/f/programming-languages-runtimes/language-bridges.md) — Converts standard data types and functions between different language runtimes to ensure consistent data exchange.
- [Reference Counting](https://awesome-repositories.com/f/programming-languages-runtimes/language-features-paradigms/ownership-borrowing/reference-counting.md) — Implements a deterministic reference counting system to manage object lifecycles and memory metadata.
- [Language Interoperability](https://awesome-repositories.com/f/programming-languages-runtimes/language-interoperability.md) — Bridges Swift code with C and C++ APIs to enable seamless data exchange and shared memory management.
- [Data Type Utilities](https://awesome-repositories.com/f/programming-languages-runtimes/programming-utilities/data-structure-type-helpers/data-type-utilities.md) — Provides fundamental utility types for handling URLs, raw binary data, and JSON decoding. ([source](https://cdn.jsdelivr.net/gh/swiftlang/swift-corelibs-foundation@main/README.md))
- [Source Code Compilers](https://awesome-repositories.com/f/programming-languages-runtimes/source-code-compilers.md) — Implements a compiler that transforms high-level Swift source code into optimized machine code. ([source](https://swift.org/documentation/swift-compiler/))
- [API Binding Generators](https://awesome-repositories.com/f/programming-languages-runtimes/api-binding-generators.md) — Generates C++ header bindings for public types and functions so C++ code can call Swift logic directly. ([source](https://swift.org/documentation/cxx-interop/))
- [Binary Size Optimizations](https://awesome-repositories.com/f/programming-languages-runtimes/binary-size-optimizations.md) — Reduces the disk footprint of compiled binaries by utilizing restricted language subsets for target environments. ([source](https://swift.org/documentation/articles/wasm-getting-started.html))
- [C and Objective-C Interface Mapping](https://awesome-repositories.com/f/programming-languages-runtimes/c-and-c-cross-compilation/c-and-objective-c-interface-mapping.md) — Maps external C or Objective-C modules into compatible interfaces for use within the source code. ([source](https://swift.org/documentation/swift-compiler/))
- [Generic Specializations](https://awesome-repositories.com/f/programming-languages-runtimes/compile-time-type-dispatch/generic-monomorphisation/link-time-generic-specialization/generic-specializations.md) — Reduces runtime overhead by applying devirtualization and generic specialization during the compilation process.
- [Intermediate Representations](https://awesome-repositories.com/f/programming-languages-runtimes/compiler-interpreter-internals/compiler-infrastructure/intermediate-representations.md) — Improves performance by applying automatic reference counting, devirtualization, and generic specialization to intermediate representations. ([source](https://swift.org/documentation/swift-compiler/))
- [Header Module Mapping](https://awesome-repositories.com/f/programming-languages-runtimes/header-module-mapping.md) — Uses module maps to represent C and Objective-C headers as native declarations for seamless function calls.
- [Type Extensions](https://awesome-repositories.com/f/programming-languages-runtimes/language-features-paradigms/language-features/language-extensions/type-extensions.md) — Allows adding new functionality and protocol conformances to imported C++ types via extensions. ([source](https://swift.org/documentation/cxx-interop/))
- [Language Interoperability Bridges](https://awesome-repositories.com/f/programming-languages-runtimes/language-interoperability/interoperability/python-bindings/language-interoperability-bridges.md) — Modifies external frameworks to create consistent mappings and interoperability between different language runtimes. ([source](https://swift.org/documentation/standard-library/))
- [Module Map Imports](https://awesome-repositories.com/f/programming-languages-runtimes/module-map-imports.md) — Represents C++ headers as declarations using module maps to call functions without manual wrappers. ([source](https://swift.org/documentation/cxx-interop/))

### Part of an Awesome List

- [Internationalization and Localization](https://awesome-repositories.com/f/awesome-lists/devtools/internationalization-and-localization.md) — Adapts content and formats to ensure software is accessible across different regions and languages. ([source](https://swift.org/documentation/core-libraries/))

### Content Management & Publishing

- [Locale-Aware Date and Number Formatting](https://awesome-repositories.com/f/content-management-publishing/currency-formatting-standards/locale-aware-currency-formatting/regional-number-formatting/locale-aware-date-and-number-formatting.md) — Implements locale-aware formatting for regional settings, calendars, and language-specific data.

### Data & Databases

- [Core Data Management](https://awesome-repositories.com/f/data-databases/core-data-management.md) — Provides fundamental data structures for handling URLs, raw binary data, and JSON decoding.
- [Data Type Serialization](https://awesome-repositories.com/f/data-databases/data-type-managers/dynamic-type-managers/custom-type-serializers/data-type-serialization.md) — Provides serialization logic for encoding and decoding structured formats like JSON into native types.
- [Language Interop Mappings](https://awesome-repositories.com/f/data-databases/naming-conventions/struct-field-mappings/struct-to-struct-copiers/custom-type-mappings/language-interop-mappings.md) — Provides customizable macros to override default naming and copyability behaviors during C++ to Swift type mapping. ([source](https://swift.org/documentation/cxx-interop/))
- [C++ Value Type Mappings](https://awesome-repositories.com/f/data-databases/type-mapping-frameworks/script-to-native-type-mappings/native-type-mappings/rust-c-type-mappings/c-value-type-mappings.md) — Imports C++ structures as structs to automatically manage copy constructors and destructors using value semantics. ([source](https://swift.org/documentation/cxx-interop/))
- [Data Serialization Libraries](https://awesome-repositories.com/f/data-databases/data-serialization-libraries.md) — Provides a toolkit for encoding and decoding structured data formats like JSON into native Swift types.

### Operating Systems & Systems Programming

- [Cross-Platform System Libraries](https://awesome-repositories.com/f/operating-systems-systems-programming/cross-platform-system-libraries.md) — Provides a set of OS-independent interfaces for handling networking, file systems, and basic system operations.
- [Memory Management Models](https://awesome-repositories.com/f/operating-systems-systems-programming/kernel-core-internals/process-and-memory-management/memory-management/automated-reclamation-systems/reference-counting/memory-management-models.md) — Controls object lifecycles and allocation through a deterministic reference counting memory management system.
- [Reference Type Mappings](https://awesome-repositories.com/f/operating-systems-systems-programming/kernel-core-internals/process-and-memory-management/memory-management/memory-safety-and-semantics/reference-type-mappings.md) — Imports C++ types as classes using customization macros to support shared reference counting. ([source](https://swift.org/documentation/cxx-interop/))
- [OS Abstraction Layers](https://awesome-repositories.com/f/operating-systems-systems-programming/kernel-core-internals/system-programming-primitives/system-abstractions/os-specific-integration-modules/os-abstraction-layers.md) — Abstracts system operations like networking and file access to ensure consistent behavior across multiple operating systems.
- [Runtime Metadata Management](https://awesome-repositories.com/f/operating-systems-systems-programming/runtime-metadata-management.md) — Controls object allocation and type casting using reference counting and reflection to support dynamic behaviors. ([source](https://swift.org/documentation/standard-library/))
- [Toolchain Path Resolution](https://awesome-repositories.com/f/operating-systems-systems-programming/architecture-detection/architecture-aware-pathing/toolchain-path-resolution.md) — Detects and selects specific compiler versions and SDK search paths to ensure consistent binary builds across platforms.

### User Interface & Experience

- [Cross-Platform Development](https://awesome-repositories.com/f/user-interface-experience/cross-platform-development.md) — Implements an OS-independent interface layer to ensure consistent behavior across multiple operating systems.

### Web Development

- [Internationalization Utilities](https://awesome-repositories.com/f/web-development/internationalization-localization/locale-sensitive-utilities/internationalization-utilities.md) — Implements locale-aware formatting, calendars, and regional settings for consistent cross-platform internationalization. ([source](https://cdn.jsdelivr.net/gh/swiftlang/swift-corelibs-foundation@main/README.md))

### Development Tools & Productivity

- [Concurrent Task Execution](https://awesome-repositories.com/f/development-tools-productivity/concurrent-task-execution.md) — Enables the execution of multiple operations simultaneously across multicore hardware to increase throughput. ([source](https://swift.org/documentation/core-libraries/))
- [Static Binaries](https://awesome-repositories.com/f/development-tools-productivity/static-binaries.md) — Produces standalone, statically linked executables that include all necessary dependencies for multi-architecture deployment. ([source](https://swift.org/documentation/articles/static-linux-getting-started.html))

### Networking & Communication

- [Network Communication Implementations](https://awesome-repositories.com/f/networking-communication/communication-protocols-architectures/communication-protocols-standards/network-communication-implementations.md) — Executes networking operations on platforms that lack a native runtime using dedicated communication modules. ([source](https://cdn.jsdelivr.net/gh/swiftlang/swift-corelibs-foundation@main/README.md))

### Software Engineering & Architecture

- [Internationalization Frameworks](https://awesome-repositories.com/f/software-engineering-architecture/internationalization-frameworks.md) — Implements a framework for managing locale-aware formatting and regional settings for global software distribution.
