Swift's native Clocks are inefficient

This page summarizes the projects mentioned and recommended in the original post on news.ycombinator.com

InfluxDB - Power Real-Time Data Analytics at Scale
Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
www.influxdata.com
featured
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com
featured
  • swift

    The Swift Programming Language

  • According to their changelog[0], Clock was added to the standard library with Swift 5.7, which shipped in 2022, at the same time as iOS 16. It looks like static linking by default was approved[1] but development stalled[2].

    I expect that it's as simple as that: It's supported on iOS 16+ because it's dynamically linked by default, against a system-wide version of the standard library. You can probably try to statically link newer versions on old OS versions, or maybe ship a newer version of the standard library and dynamically link against that, but I have no idea how well those paths are supported.

    0. https://github.com/apple/swift/blob/main/CHANGELOG.md

    1. https://github.com/apple/swift-evolution/blob/main/proposals...

    2. https://github.com/apple/swift-package-manager/pull/3905

  • swift-evolution

    This maintains proposals for changes and user-visible enhancements to the Swift Programming Language.

  • According to their changelog[0], Clock was added to the standard library with Swift 5.7, which shipped in 2022, at the same time as iOS 16. It looks like static linking by default was approved[1] but development stalled[2].

    I expect that it's as simple as that: It's supported on iOS 16+ because it's dynamically linked by default, against a system-wide version of the standard library. You can probably try to statically link newer versions on old OS versions, or maybe ship a newer version of the standard library and dynamically link against that, but I have no idea how well those paths are supported.

    0. https://github.com/apple/swift/blob/main/CHANGELOG.md

    1. https://github.com/apple/swift-evolution/blob/main/proposals...

    2. https://github.com/apple/swift-package-manager/pull/3905

  • InfluxDB

    Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.

    InfluxDB logo
  • swift-package-manager

    The Package Manager for the Swift Programming Language

  • According to their changelog[0], Clock was added to the standard library with Swift 5.7, which shipped in 2022, at the same time as iOS 16. It looks like static linking by default was approved[1] but development stalled[2].

    I expect that it's as simple as that: It's supported on iOS 16+ because it's dynamically linked by default, against a system-wide version of the standard library. You can probably try to statically link newer versions on old OS versions, or maybe ship a newer version of the standard library and dynamically link against that, but I have no idea how well those paths are supported.

    0. https://github.com/apple/swift/blob/main/CHANGELOG.md

    1. https://github.com/apple/swift-evolution/blob/main/proposals...

    2. https://github.com/apple/swift-package-manager/pull/3905

  • absolute_time

    Ruby gem providing a reliable, monotonically increasing timer for measuring time intervals

  • There's also a Ruby gem that uses it for better-than-Benchmark high-precision timing.

    https://github.com/bwbuchanan/absolute_time/blob/master/ext/...

    https://rubygems.org/gems/absolute_time

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts

  • Cocoapods vs SPM

    1 project | /r/iOSProgramming | 13 May 2023
  • Swift Package Manager, build configurations and non compiling iOS projects

    2 projects | dev.to | 8 Aug 2022
  • Binding Lottie (or any other Swift framework with UI) in MAUI

    4 projects | dev.to | 12 Jul 2022
  • MagazineLayout

    2 projects | dev.to | 10 Jan 2022
  • Cocoapods vs SPM?

    1 project | /r/iOSProgramming | 26 Sep 2021