Hacker GitHub

← All repos

swiftlang/swift

View on GitHub ↗ ★ 70,522 Swift

The Swift Programming Language

269 mentions on Hacker News by 203 people: 58 stories, 211 comments · first 2015-12-03 · latest 2026-03-26

Mentions per year 269 mentions · busiest year 2016 (41)
20082026
  1. …automated than bindgen's toggles and switches and creating them by hand in with cgo in Golang. [0] https://github.com/apple/swift/blob/master/docs/CppInteroper... [1] https://github.com/apple/swift/pulls?q=label%3A%22C%2B%2B+In... [2]…
    comment by rvz · 2020-09-25 · in Swift System Is Now Open Source
  2. …of automatic memory management with ownership, https://swift.org/blog/swift-5-exclusivity/ https://github.com/apple/swift/blob/master/docs/OwnershipMan... https://dlang.org/blog/2019/07/15/ownership-and-borrowing-in... "Linear Haskell",…
  3. Sure, several Swift https://swift.org/blog/swift-5-exclusivity/ https://github.com/apple/swift/blob/master/docs/OwnershipMan... D https://dlang.org/blog/2019/07/15/ownership-and-borrowing-in... Haskell…
    comment by pjmlp · 2020-09-24 · in Haskell's Children
  4. ▲ 1
    Resource Ownership for Swift
    story by fpoling · 2020-09-23 · 0 comments
  5. …document, direct C++ interop will soon be done without the need of extern "C" wrappers. [0] [0] https://github.com/apple/swift/blob/master/docs/CppInteroper...
    comment by rvz · 2020-09-23 · in Swift on Windows
  6. The compiler https://swift.org/swift-compiler/ is open source? https://github.com/apple/swift Or have I misunderstood your comment?
    comment by trollied · 2020-09-13 · in How Swift 5.3 enhances SwiftUI’s DSL
  7. ▲ 3
    Adding async to the Swift type system
    story by samcat116 · 2020-07-28 · 0 comments
  8. …than FOSS (free / open source software) in your critique of FOSS. Reason being, Swift is FOSS ( https://github.com/apple/swift ), both the compiler and the standard library. Likewise, the Microsoft C# compiler is also FOSS (…
    comment by balnaphone · 2020-05-11 · in Being Slow to Criticise
  9. …enjoy the productivity of having a GC around, while being able to get hold of these kind of tools. https://github.com/apple/swift/blob/master/docs/OwnershipMan... https://gitlab.haskell.org/ghc/ghc/-/wikis/linear-types
  10. …to put the interface in the language or the library. Didn't TensorFlow fork the Swift compiler? https://github.com/apple/swift/tree/tensorflow Forking the compiler is hardly my idea of getting all programmers on the same page.
  11. Well it seems that the same guy has actually also upstreamed it https://github.com/apple/swift/pull/11583
    comment by highspeedmobile · 2020-04-02 · in Swift on Mac OS 9
  12. ▲ 3
    Swift and C++ Interop Manifesto
    story by rvz · 2020-02-19 · 0 comments
  13. …with you on this. I'm still waiting for the rest of the generics manifesto to, you know, manifest: https://github.com/apple/swift/blob/master/docs/GenericsMani... That one and the need for generic associatedTypes trip me up all the time. I…
    comment by sixstringtheory · 2020-02-06 · in What’s New in Swift 5.2
  14. …but it is not complete yet. [0] https://www.reddit.com/r/rust/comments/7gkiie/implementing_s... [1] https://github.com/apple/swift/blob/master/docs/OwnershipMan...
    comment by favorited · 2020-02-04 · in Swift Crypto
  15. …learning an entirely new language. In fact, standard arrays are implemented in Swift code ( https://github.com/apple/swift/blob/master/stdlib/public/cor... ) yet feel closer to say a Python list than a Java ArrayList from the user’s…
    comment by neeeeees · 2020-01-21 · in Seq – A Language for Bioinformatics
  16. …community is currently trying to come up with their own differentiable programming initiative [1] https://github.com/apple/swift/blob/master/docs/Differentiab...
  17. …out. While Apple might do that too, at this point they seem to be chasing the opposite approach: https://github.com/apple/swift/blob/master/docs/OwnershipMan... Essentially, nicking the ownership/lifetimes system out of Rust, to avoid…
    comment by Tuna-Fish · 2019-12-01 · in Garbage Collection
  18. ▲ 180
    Differentiable Programming Manifesto
    story by kristianp · 2019-11-13 · 75 comments
  19. ▲ 3
    Differentiable Programming Manifesto
    story by sciencenut · 2019-11-11 · 0 comments
  20. …> And it perplexes me how over the years there have been no serious attempts to make it happen. https://github.com/apple/swift/search?q=windows&unscoped_q=w...
  21. …requirements" error). [0]: https://docs.swift.org/swift-book/LanguageGuide/OpaqueTypes.... [1]: https://github.com/apple/swift/blob/master/docs/GenericsMani...
    comment by NobodyNada · 2019-11-05 · in Static Types in SwiftUI
  22. …but at least CI is set up and passing on both platforms (which wasn't the case a year ago): https://github.com/apple/swift/blob/master/README.md
    comment by NobodyNada · 2019-10-31 · in Swift Server Work Group Annual Update
  23. …Timsort that "performs straight merges instead of adopting timsort's galloping strategy" [0]. [0] https://github.com/apple/swift/pull/19717
    comment by rsfinn · 2019-10-09 · in Timsort, the Python sorting algorithm
  24. …of my head here's two major open source contributions from them: Swift[1] and FoundationDB[2] [1] https://github.com/apple/swift [2] https://github.com/apple/foundationdb
  25. ▲ 1
    Name Translation from C to Swift
    story by ingve · 2019-09-03 · 0 comments
  26. …become just one of the other things you just have to get used to to learn programming. [0]: https://github.com/apple/swift/blob/master/docs/OwnershipMan...
  27. It appears to be https://github.com/apple/swift/pull/25221 , which doesn't yet have a public proposal.
    comment by plorkyeran · 2019-06-03 · in SwiftUI
  28. ▲ 1
    Enable ExistentialSpecializer by default · Issue #19820 · apple/swift
    story by tambourine_man · 2019-05-07 · 0 comments
  29. …(yes, there’s swift_retainCount to read them, but that’s documented as returning a random number ( https://github.com/apple/swift/blob/master/docs/Runtime.md ) because it should not be used). So, if the compiler emits more reference count…
    comment by Someone · 2019-04-23 · in Modern C++ Won't Save Us
  30. …the first two (in fact, this is how Swift implements it by default if you don't override it: https://github.com/apple/swift/blob/e08b2194487d883896a377a0... )
    comment by saagarjha · 2019-04-15 · in Swift Generics Evolution
  31. …Rust. I guess people are more familiar with Rust.. since Swift hasn't actually implemented it yet? https://github.com/apple/swift/blob/master/docs/OwnershipMan...
    comment by Aardappel · 2019-04-04 · in The Lobster Programming Language
  32. …used to generate several variants of similar code that would be cumbersome to maintain otherwise. https://github.com/apple/swift/blob/master/utils/gyb.py
  33. https://github.com/apple/swift/blob/master/docs/OwnershipMan...
  34. ▲ 1
    Swift Ownership Manifesto
    story by kristianp · 2019-03-09 · 0 comments
  35. ▲ 5
    Swift to get Rust-like ownership model
    story by eindiran · 2019-03-07 · 0 comments
  36. ▲ 1
    Swift/OwnershipManifesto.md at master · apple/swift
    story by tambourine_man · 2019-03-07 · 0 comments
  37. ▲ 2
    Swift Standard Library Programmers Manual
    story by ingve · 2019-02-19 · 0 comments
  38. Ubuntu is supported (see https://swift.org/download/ ), but Windows is pretty early I think. See https://github.com/apple/swift/blob/master/docs/Windows.md and https://forums.swift.org/t/windows-nightlies/19174 for more info.
    comment by rudedogg · 2019-02-10 · in Why Swift for TensorFlow?
  39. …changes that would affect the `inout` checking (e.g. one cannot change an argument to be inout): https://github.com/apple/swift/blob/master/docs/LibraryEvolu... (note the list of non-permitted changes includes changing types).
    comment by dbaupp · 2019-02-06 · in Swift 5 Exclusivity Enforcement
  40. …but I think the Apache2 license on Swift would mean that the JS community has access to the patent. https://github.com/apple/swift/blob/master/LICENSE.txt TC39 (who defines Javascript) is a collaboration of several companies, so I'm not…
  41. This is not exactly a new thing: https://github.com/apple/swift There's also: https://github.com/apple/foundationdb
  42. …to an unexported function? > > Can I "swizzle"? > There’s an experimental thing for this now: https://github.com/apple/swift/pull/20333 This is interesting; I haven't been really been following the lists recently but I took the time to…
  43. …no exposed API for doing this. > Can I "swizzle"? There’s an experimental thing for this now: https://github.com/apple/swift/pull/20333
  44. …for the next major version as you can see on this dashboard: https://swift.org/abi-stability/ (1) https://github.com/apple/swift/blob/master/docs/SIL.rst
  45. ▲ 2
    Swift 4.2
    story by okket · 2018-09-13 · 0 comments
  46. There’s plenty of details: https://gist.github.com/lattner/31ed37682ef1576b16bca1432ea9... https://github.com/apple/swift/blob/master/docs/ErrorHandlin...
    comment by zoul · 2018-08-12 · in On Apple's Love Affair with Swift
  47. ▲ 3
    Ask HN: Where to start with Swift compiler development?
    story by Lausbert · 2018-07-31 · 0 comments
  48. …(single C file, it's only in a C++ file to satisfy a build system quirk in Swift on linux: https://github.com/apple/swift/blob/master/stdlib/public/run... , Apache2 + run time exception). Ryu is somewhat faster for doubles, though…
    comment by stephencanon · 2018-07-28 · in Ryū: Fast Float-To-String Conversion
  49. …ABI[0], it's use cases are limited except doing anything but iOS development (which is barely ok) https://github.com/apple/swift/blob/master/docs/ABIStability...
    comment by mikkelam · 2018-06-11 · in Why Crystal Is My Next Language
  50. …anyone looking at a practical implementation, Swift recently migrated to a Grisu2-based algorithm: https://github.com/apple/swift/commit/97a934c412a26f0222f57d...