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. …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
  2. …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
  3. …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...
  4. 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
  5. …(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
  6. …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
  7. …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
  8. …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
  9. https://github.com/apple/swift/blob/master/docs/OwnershipMan...
  10. 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?
  11. …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
  12. …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…
  13. This is not exactly a new thing: https://github.com/apple/swift There's also: https://github.com/apple/foundationdb
  14. …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…
  15. …no exposed API for doing this. > Can I "swizzle"? There’s an experimental thing for this now: https://github.com/apple/swift/pull/20333
  16. …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
  17. 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
  18. …(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
  19. …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
  20. …anyone looking at a practical implementation, Swift recently migrated to a Grisu2-based algorithm: https://github.com/apple/swift/commit/97a934c412a26f0222f57d...
  21. The hasher in the standard library is defined here: https://github.com/apple/swift/blob/master/stdlib/public/cor... with some explanation for where the seed comes from here: https://github.com/apple/swift/blob/master/stdlib/public/cor...…
    comment by rokob · 2018-06-08 · in WWDC 2018 What's New in Swift Recap
  22. …it natively using Visual Studio cl(or clang-cl). Following the instructions here, it worked for me. https://github.com/apple/swift/blob/master/docs/WindowsBuild...
    comment by oscargrouch · 2018-04-27 · in Swift for TensorFlow Design Overview
  23. …of the next Swift versions (my bet is on Swift 6) will include an optional memory ownership model: https://github.com/apple/swift/blob/master/docs/OwnershipMan... It will not have lifetimes but still allow to opt out of ARC for performance…
  24. Not sure why it was reverse engineered when the source code is publicly available: https://github.com/apple/swift/blob/4ddac3fbbd5b9ba8d980fa88...
    comment by jordansmithnz · 2017-12-15 · in Type Erasure in Swift
  25. https://github.com/apple/swift
    comment by lukeholder · 2017-11-07 · in Apple at Its Best
  26. The Swift compiler uses this trick: https://github.com/apple/swift/blob/master/include/swift/Bas...
    comment by slavapestov · 2017-10-22 · in Implementing Go's defer keyword in C++
  27. https://github.com/apple/swift/blob/master/docs/Android.md This is a good start, at least for Android hardware..
  28. …hardware, as well. A bit tangential to your original point, but I think it's interesting. [0] https://github.com/apple/swift/commit/83901998c91f9242a133aa... [1] https://github.com/apple/swift/commit/aee81d272f3147c0a9b610...
    comment by favorited · 2017-10-05 · in Dictionary and Set Improvements in Swift 4.0
  29. https://github.com/apple/swift/blob/master/README.md : ”macOS, Ubuntu Linux LTS, and the latest Ubuntu Linux release are the current supported host development operating systems” Also, on the page you reference: ”Note that all compiled…
  30. You can use Swift on Windows: https://github.com/apple/swift/blob/master/docs/Windows.md
  31. …critical with move-only (or "unique ownership", per the ownership manifesto[1]) types. [1]: https://github.com/apple/swift/blob/master/docs/OwnershipMan...
    comment by dbaupp · 2017-09-21 · in Swift 4.0 Released
  32. …is how 'shared values' are being implemented in Swift in a less strict way compared to Rust. [1] https://github.com/apple/swift/blob/master/docs/OwnershipMan...
    comment by cbcoutinho · 2017-09-20 · in Swift 4.0 Released
  33. …outside contributions for their OS/kernel code, which is why they're just code dumps. [0] https://github.com/apple/swift
    comment by Osmium · 2017-09-14 · in MacOS 10.12.6 Source
  34. Apple's Swift programming language is on GitHub -- the full history AFAIK. https://github.com/apple/swift
    comment by turdnagel · 2017-09-14 · in MacOS 10.12.6 Source
  35. Apple is a big fan of GitHub, you can see evidence of that with the Swift project ( https://github.com/apple/swift ), but not everything is suitable for that sort of treatment. It could be workflow related. The OS team has been around for…
    comment by astrodust · 2017-09-14 · in MacOS 10.12.6 Source
  36. …is awesome but lacks atomicity guarantees and it allows some race conditions even when using gcd. https://github.com/apple/swift/blob/master/docs/proposals/Co...
    comment by AJRF · 2017-08-18 · in Reasonable Scala Compiler
  37. And the supporting swift Pull Request is https://github.com/apple/swift/pull/11501
  38. They are trying to address that https://github.com/apple/swift/blob/master/docs/OwnershipMan...
  39. …an Apple style guide, but the first file on the most recent commit to Swift uses spaces as well. https://github.com/apple/swift/blob/e0f75bf841631a50f9ab6502...
  40. …months earlier could have taken its early inspiration from a language that didn't exist yet. [1] https://github.com/apple/swift/commit/18844bc65229786b96b89a... [2] https://github.com/JetBrains/kotlin/commit/3e4dce385331c91c9...
  41. …tbf. As chance might have it, the Swift documentation has a section on programming for Android: https://github.com/apple/swift/blob/master/docs/Android.md And RoboVM has an article on using Kotlin for iOS development:…
    comment by Cthulhu_ · 2017-05-18 · in Swift is like Kotlin
  42. …use do their projects, then you are typically working more in only 1-2 languages at a time. [0] https://github.com/apple/swift [1] https://github.com/Microsoft/CNTK [2] https://github.com/bitcoin/bitcoin [3] https://github.com/xbmc/xbmc
    comment by programbreeding · 2017-04-23 · in Python, as Reviewed by a C++ Programmer
  43. …a dedicated register. Just like stack-unwinding exceptions, Swift errors are part of the core ABI. https://github.com/apple/swift/blob/master/docs/ABIStability...
    comment by ridiculous_fish · 2017-04-21 · in I was wrong, reflecting on the .NET design choices
  44. There is a tag for the release, called swift-3.1-RELEASE: https://github.com/apple/swift/tree/swift-3.1-RELEASE It's not showing up on GitHub's UI nor search for me at present, which may be why it seems like it's missing. You can download…
    comment by alblue · 2017-03-28 · in Swift 3.1 Released
  45. Upon further inspection they disabled pre compiled bridging by default before release https://github.com/apple/swift/commit/5b9166ba8098a23e0601aa... After turning it on compilation speed seemed to improve immensely
    comment by adomanico · 2017-03-28 · in Swift 3.1 Released
  46. It looks like it was actually disabled before release https://github.com/apple/swift/commit/5b9166ba8098a23e0601aa...
    comment by adomanico · 2017-03-28 · in Swift 3.1 Released
  47. …(if a pain). Maybe they shouldn't have said "silence is acceptance" in their email, though. [1] https://github.com/apple/swift/pull/17 [2] https://github.com/thrimbor/sbep/issues/1
    comment by wwwigham · 2017-03-24 · in GCC licence change
  48. And they are changing a bunch of it for Swift 4: https://github.com/apple/swift/blob/master/docs/StringManife...
    comment by smackfu · 2017-03-11 · in Emoji.length == 2
  49. The Swift Open Source community is quite vibrant. They're already building it on Linux + macOS. See: https://github.com/apple/swift Edit: They also have a Platform Support page, where they discuss their goals/intentions on cross-platform:…
    comment by Shank · 2017-03-09 · in Pushing Swift to the Server
  50. …into the doc looking for one specific thing. I found it, but it turns out to be a put unfortunate. https://github.com/apple/swift/blob/master/docs/OwnershipMan... > Swift is permitted to destroy a value (and thus call deinit) at any time…