Apple is rewriting Foundation in Swift

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

  • > There's not even anything technically interesting about the language

    It's a modern statically compiled language with complex generics, that supports providing a generic interfaces in libraries with retaining ABI compatibility. Which no other modern "system" language supports. That's fairly technically interesting to me.

    > We have so much more than that and you just went with reference counting

    Like what?

    The options for memory safe shared ownership are refcounting or GC.

    Assuming you're talking about rust, that's just C++: object lifetime is lexical, and if you need it to last longer you have to use Arc/Rc/shared_ptr. The purpose of the lifetime and borrow checkers is to ensure exclusive access, and reduce the copy/destruction churn that you get from the C++ model (a hypothetical C++ that only allows the use of unique_ptr instead of raw pointers - obviously C++'s type system and approach to memory safety is not a Good Thing).

    But it's important to realize rust did not create a new solution to object lifetime management for shared objects.

    It's also important to realize that rust was designed in an environment where there was no existing code to interoperate with, whereas Swift was designed to work with the existing Darwin APIs and objective-c which are all refcounted. So even if no refcounting was the goal you'd end up with a new language, designed for a specific environment, and the default behaviour would not be correct.

    Now that the language is more established, and it's less critical for every part of the language to have objc interop they are working on pure ownership semantics, for the same reason as rust: it saves copies without requiring a refcount[1]

    [1] https://github.com/apple/swift/blob/main/docs/OwnershipManif...

  • swift-foundation

    The Foundation project

  • 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
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

  • FridgeBot — GPT-4o shopping list automation

    2 projects | dev.to | 20 May 2024
  • Thorium: Cross-platform patched Chromium fork "fastest browser on Earth"

    7 projects | news.ycombinator.com | 20 May 2024
  • How a 64k intro is made (2017)

    1 project | news.ycombinator.com | 20 May 2024
  • Llama3 Implemented from Scratch

    10 projects | news.ycombinator.com | 19 May 2024
  • Timg – A terminal image and video viewer

    1 project | news.ycombinator.com | 20 May 2024