[HN Gopher] Swift Ownership Manifesto
       ___________________________________________________________________
        
       Swift Ownership Manifesto
        
       Author : praseodym
       Score  : 32 points
       Date   : 2023-06-06 21:12 UTC (1 hours ago)
        
 (HTM) web link (github.com)
 (TXT) w3m dump (github.com)
        
       | _delirium wrote:
       | This proposal looks like it's from 2017 (there are more recent
       | commits, but they are just typo fixes). It was briefly discussed
       | here at the time: https://news.ycombinator.com/item?id=13669001
       | 
       | Anybody familiar with Swift development have updates on whether
       | it went anywhere and what the current state is? As someone not in
       | this particular loop, not immediately clear to me why a 6-year-
       | old proposal was linked here.
        
         | conradev wrote:
         | Swift 5.9 dropped at WWDC, and with it came with noncopyable
         | value types:
         | 
         | https://github.com/apple/swift-evolution/blob/main/proposals...
         | 
         | as well as a way to explicitly move types:
         | 
         | https://github.com/apple/swift-evolution/blob/main/proposals...
         | 
         | I haven't read either in-depth, though!
        
           | adamwk wrote:
           | Just last week owning and borrowing parameters got accepted
           | as well. https://github.com/apple/swift-
           | evolution/blob/main/proposals...
           | 
           | It's been the focus for a while especially after the
           | concurrency work. It's probably the final major feature
           | before Swift 6
        
         | Someone wrote:
         | The best description I know is
         | https://www.hackingwithswift.com/articles/258/whats-new-
         | in-s..., which refers to a few Swift Evolution docs:
         | 
         | https://github.com/apple/swift-evolution/blob/main/proposals...
         | 
         | https://github.com/apple/swift-evolution/blob/main/proposals...
         | 
         | https://github.com/apple/swift-evolution/blob/main/proposals...
         | 
         | The first is explicitly marked as "Implementation: Swift 5.9,
         | without no-implicit-copy constraint", but it seems the others
         | also ?partly? are in.
        
       | 29athrowaway wrote:
       | For current Rust users, if Rust kicks the bucket, Swift is a good
       | plan B.
        
         | rychco wrote:
         | * * *
        
         | AceJohnny2 wrote:
         | I find it very notable that Graydon Hoare, the "founder" of
         | Rust, went on to work at Apple on Swift for a while.
         | 
         | Also, Swift had tremendous work to implement ABI stability[1],
         | which really allows it to be used as an OS API, which Rust
         | can't do.
         | 
         | [1] https://faultlore.com/blah/swift-abi/
        
           | biorach wrote:
           | > which really allows it to be used as an OS API, which Rust
           | can't do.
           | 
           | I think that's a massive simplification
        
         | heavyset_go wrote:
         | Not if you're using anything other than macOS or iOS derived
         | systems.
        
           | wahnfrieden wrote:
           | What? Huh?
           | 
           | You forgot Windows, Linux, WASM in browser, WASI envs
        
           | 29athrowaway wrote:
           | That would change very quickly if the Rust ecosystem dies.
        
       ___________________________________________________________________
       (page generated 2023-06-06 23:00 UTC)