Dave Verwer
    • Create new note
    • Create a note from template
      • Sharing URL Link copied
      • /edit
      • View mode
        • Edit mode
        • View mode
        • Book mode
        • Slide mode
        Edit mode View mode Book mode Slide mode
      • Customize slides
      • Note Permission
      • Read
        • Only me
        • Signed-in users
        • Everyone
        Only me Signed-in users Everyone
      • Write
        • Only me
        • Signed-in users
        • Everyone
        Only me Signed-in users Everyone
      • Engagement control Commenting, Suggest edit, Emoji Reply
    • Invite by email
      Invitee

      This note has no invitees

    • Publish Note

      Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

      Your note will be visible on your profile and discoverable by anyone.
      Your note is now live.
      This note is visible on your profile and discoverable online.
      Everyone on the web can find and read all notes of this public team.
      See published notes
      Unpublish note
      Please check the box to agree to the Community Guidelines.
      View profile
    • Commenting
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
      • Everyone
    • Suggest edit
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
    • Emoji Reply
    • Enable
    • Versions and GitHub Sync
    • Note settings
    • Note Insights New
    • Engagement control
    • Make a copy
    • Transfer ownership
    • Delete this note
    • Save as template
    • Insert from template
    • Import from
      • Dropbox
      • Google Drive
      • Gist
      • Clipboard
    • Export to
      • Dropbox
      • Google Drive
      • Gist
    • Download
      • Markdown
      • HTML
      • Raw HTML
Menu Note settings Note Insights Versions and GitHub Sync Sharing URL Create Help
Create Create new note Create a note from template
Menu
Options
Engagement control Make a copy Transfer ownership Delete this note
Import from
Dropbox Google Drive Gist Clipboard
Export to
Dropbox Google Drive Gist
Download
Markdown HTML Raw HTML
Back
Sharing URL Link copied
/edit
View mode
  • Edit mode
  • View mode
  • Book mode
  • Slide mode
Edit mode View mode Book mode Slide mode
Customize slides
Note Permission
Read
Only me
  • Only me
  • Signed-in users
  • Everyone
Only me Signed-in users Everyone
Write
Only me
  • Only me
  • Signed-in users
  • Everyone
Only me Signed-in users Everyone
Engagement control Commenting, Suggest edit, Emoji Reply
  • Invite by email
    Invitee

    This note has no invitees

  • Publish Note

    Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

    Your note will be visible on your profile and discoverable by anyone.
    Your note is now live.
    This note is visible on your profile and discoverable online.
    Everyone on the web can find and read all notes of this public team.
    See published notes
    Unpublish note
    Please check the box to agree to the Community Guidelines.
    View profile
    Engagement control
    Commenting
    Permission
    Disabled Forbidden Owners Signed-in users Everyone
    Enable
    Permission
    • Forbidden
    • Owners
    • Signed-in users
    • Everyone
    Suggest edit
    Permission
    Disabled Forbidden Owners Signed-in users Everyone
    Enable
    Permission
    • Forbidden
    • Owners
    • Signed-in users
    Emoji Reply
    Enable
    Import from Dropbox Google Drive Gist Clipboard
       Owned this note    Owned this note      
    Published Linked with GitHub
    • Any changes
      Be notified of any changes
    • Mention me
      Be notified of mention me
    • Unsubscribe
    To show the community’s progress towards a future free from data races, the Swift Package Index now monitors compatibility with Swift 6 and the status of data races across all packages. The site is tracking progress towards Swift 6 readiness in a few ways: ### Compatibility checking The Swift Package Index has tracked platform and Swift version compatibility since 2021, displaying a glanceable matrix on every package page. As of today, Swift 6 joins that matrix to show which packages you can use if your project uses the Swift 6 compiler. ![Screenshot 2024-05-23 at 14.02.06@2x](https://hackmd.io/_uploads/ryXv033QC.png) It’s important to note that the matrix tracks compatibility instead of data race safety which package authors must explicitly opt into. Compatibility builds run by the Swift Package Index run with default build settings, meaning the build will use the Swift 5 language mode unless the package author has explicitly opted in to use Swift 6 language mode. ### Progress towards data race safety Compatibility is one thing, but the true benefits of Swift 6 come with the additional checks enabled by default in Swift 6 language mode, including data race safety checks. The Swift Package Index’s “[Ready for Swift 6](https://swiftpackageindex.com/ready-for-swift-6)” page tracks progress towards data race safety across the whole package ecosystem. Packages can opt-in to the Swift 6 language mode whenever convenient, but this page shows the number of packages that would pass those checks if all strict concurrency checks were enabled. ![Screenshot 2024-05-23 at 13.57.42@2x](https://hackmd.io/_uploads/SJ8Da23QC.png) The two charts show progress across two metrics. The first chart shows progress over time for the number of packages with zero errors when compiled with [strict concurrency checks set to `complete`](https://www.swift.org/documentation/concurrency/). The second chart shows a cumulative count of errors remaining across all packages. As compatibility builds continue over the summer, success will come from two directions. First, as more package authors opt into these checks, they will also fix the potential data races highlighted by the compiler, leading to increased compatibility and fewer errors in the cumulative chart. However, these charts will also track success from the Swift team, who plan to iterate on the compiler during the beta releases consolidating and further targeting errors to make fixing these issues easier. Each data point in the charts will use the latest Swift 6 beta toolchain and the latest source code from every package. ### Data race safety metadata Aggregate data is great for showing progress, but when you want to consider using a package it’s useful to know if that package has any data race safety issues. To help you make those decisions, the Swift Package Index now shows a “Safe from data races” alongside other package metadata when packages have zero errors when compiled with `complete` strict concurrency checks. ![Screenshot 2024-05-23 at 13.55.52@2x](https://hackmd.io/_uploads/ryuQ6n2QA.png) Data race safety is the central feature of this compiler release, and the checks it enables will eliminate many sources of subtle - or even not-so-subtle - issues as package authors adopt it. However, this feature can only truly shine if adoption rates are high, and the goal is to encourage this adoption across as many packages as possible with these Swift 6 readiness checks. --- # POSSIBLE ALTERNATIVE (TED) Swift 6 introduces compile-time data race safety for code that opts into the new Swift 6 language mode. While individual modules can adopt this mode incrementally and independently of their dependencies, the combined code (client and dependencies) achieves runtime data race safety only when all parts adopt the Swift 6 language mode. Therefore, open source packages adopting Swift 6 are crucial in advancing data race safety across the entire Swift ecosystem. ### Tracking Swift 6 Readiness and Progress The Swift Package Index's “[Ready for Swift 6](https://swiftpackageindex.com/ready-for-swift-6)”  page tracks progress toward data race safety across the entire package ecosystem. While packages can opt-in to Swift 6 language mode at their convenience, this page shows the number of packages that would pass those checks if all strict concurrency checks were enabled in a package. The Swift Package Index has tracked platform and Swift version compatibility since 2021, displaying a glanceable matrix on every package page. Today, Swift 6 has been added to this matrix, showing which packages are compatible with the Swift 6 compiler. It's important to note that this matrix tracks **compatibility**, not data race safety, which package authors must explicitly opt into. Compatibility builds run by the Swift Package Index use default build settings. This means the build will default to Swift 5 language mode unless the package author has explicitly opted in to use Swift 6 language mode. ## How is Swift 6 Readiness Determined? The site tracks progress towards Swift 6 readiness through two main charts: 1. The first chart shows progress over time for the number of packages with zero errors when compiled with [strict concurrency checks set to `complete`](https://www.swift.org/documentation/concurrency/). 2. The second chart shows a cumulative count of errors across all packages. ![Screenshot 2024-05-23 at 13.57.42@2x](https://hackmd.io/_uploads/SJ8Da23QC.png) Over time, success will come from two directions. First, as more package authors opt into these checks, they will fix potential data races highlighted by the compiler, increasing compatibility and reducing errors. Second, compiler iterations will refine data race checking and consolidate error diagnostics. These iterations will be available through development snapshots on Swift.org or Xcode betas. Each data point in the charts will use the latest Swift 6 beta toolchain and the most recent source code from every package. ### Data Race Safety Indicators When evaluating a package, it's helpful to know if it has any reported data race safety issues. To assist with this, the Swift Package Index now displays a “Safe from data races” label alongside other package metadata when packages compile with zero errors using `complete` strict concurrency checks. ![Screenshot 2024-05-23 at 13.55.52@2x](https://hackmd.io/_uploads/ryuQ6n2QA.png) Data race safety is a key feature of this compiler release, and its checks will eliminate many sources of subtle or significant issues as package authors adopt it. However, for this feature to be effective, widespread adoption is essential. The goal is to encourage as many packages as possible to adopt Swift 6 readiness checks to maximize data race safety across the ecosystem. ### Call to Action: Adopt Swift 6 for Ecosystem Data Race Safety Data race safety is a crucial feature of the Swift 6 compiler, eliminating many subtle or significant issues. For this feature to be effective, widespread adoption is essential. We urge package authors to adopt Swift 6 readiness checks to maximize data race safety across the ecosystem.

    Import from clipboard

    Paste your markdown or webpage here...

    Advanced permission required

    Your current role can only read. Ask the system administrator to acquire write and comment permission.

    This team is disabled

    Sorry, this team is disabled. You can't edit this note.

    This note is locked

    Sorry, only owner can edit this note.

    Reach the limit

    Sorry, you've reached the max length this note can be.
    Please reduce the content or divide it to more notes, thank you!

    Import from Gist

    Import from Snippet

    or

    Export to Snippet

    Are you sure?

    Do you really want to delete this note?
    All users will lose their connection.

    Create a note from template

    Create a note from template

    Oops...
    This template has been removed or transferred.
    Upgrade
    All
    • All
    • Team
    No template.

    Create a template

    Upgrade

    Delete template

    Do you really want to delete this template?
    Turn this template into a regular note and keep its content, versions, and comments.

    This page need refresh

    You have an incompatible client version.
    Refresh to update.
    New version available!
    See releases notes here
    Refresh to enjoy new features.
    Your user state has changed.
    Refresh to load new user state.

    Sign in

    Forgot password

    or

    By clicking below, you agree to our terms of service.

    Sign in via Facebook Sign in via Twitter Sign in via GitHub Sign in via Dropbox Sign in with Wallet
    Wallet ( )
    Connect another wallet

    New to HackMD? Sign up

    Help

    • English
    • 中文
    • Français
    • Deutsch
    • 日本語
    • Español
    • Català
    • Ελληνικά
    • Português
    • italiano
    • Türkçe
    • Русский
    • Nederlands
    • hrvatski jezik
    • język polski
    • Українська
    • हिन्दी
    • svenska
    • Esperanto
    • dansk

    Documents

    Help & Tutorial

    How to use Book mode

    Slide Example

    API Docs

    Edit in VSCode

    Install browser extension

    Contacts

    Feedback

    Discord

    Send us email

    Resources

    Releases

    Pricing

    Blog

    Policy

    Terms

    Privacy

    Cheatsheet

    Syntax Example Reference
    # Header Header 基本排版
    - Unordered List
    • Unordered List
    1. Ordered List
    1. Ordered List
    - [ ] Todo List
    • Todo List
    > Blockquote
    Blockquote
    **Bold font** Bold font
    *Italics font* Italics font
    ~~Strikethrough~~ Strikethrough
    19^th^ 19th
    H~2~O H2O
    ++Inserted text++ Inserted text
    ==Marked text== Marked text
    [link text](https:// "title") Link
    ![image alt](https:// "title") Image
    `Code` Code 在筆記中貼入程式碼
    ```javascript
    var i = 0;
    ```
    var i = 0;
    :smile: :smile: Emoji list
    {%youtube youtube_id %} Externals
    $L^aT_eX$ LaTeX
    :::info
    This is a alert area.
    :::

    This is a alert area.

    Versions and GitHub Sync
    Get Full History Access

    • Edit version name
    • Delete

    revision author avatar     named on  

    More Less

    Note content is identical to the latest version.
    Compare
      Choose a version
      No search result
      Version not found
    Sign in to link this note to GitHub
    Learn more
    This note is not linked with GitHub
     

    Feedback

    Submission failed, please try again

    Thanks for your support.

    On a scale of 0-10, how likely is it that you would recommend HackMD to your friends, family or business associates?

    Please give us some advice and help us improve HackMD.

     

    Thanks for your feedback

    Remove version name

    Do you want to remove this version name and description?

    Transfer ownership

    Transfer to
      Warning: is a public team. If you transfer note to this team, everyone on the web can find and read this note.

        Link with GitHub

        Please authorize HackMD on GitHub
        • Please sign in to GitHub and install the HackMD app on your GitHub repo.
        • HackMD links with GitHub through a GitHub App. You can choose which repo to install our App.
        Learn more  Sign in to GitHub

        Push the note to GitHub Push to GitHub Pull a file from GitHub

          Authorize again
         

        Choose which file to push to

        Select repo
        Refresh Authorize more repos
        Select branch
        Select file
        Select branch
        Choose version(s) to push
        • Save a new version and push
        • Choose from existing versions
        Include title and tags
        Available push count

        Pull from GitHub

         
        File from GitHub
        File from HackMD

        GitHub Link Settings

        File linked

        Linked by
        File path
        Last synced branch
        Available push count

        Danger Zone

        Unlink
        You will no longer receive notification when GitHub file changes after unlink.

        Syncing

        Push failed

        Push successfully