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
20082026
-
…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 -
…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
comment by jeffnappi · 2019-09-17 · in MSVC's implementation of the C++ Standard Library -
…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...
comment by roblabla · 2019-08-28 · in Rust is the future, C is the new Assembly: Josh Triplett (Intel) -
…(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 -
…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 -
…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 -
…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
comment by fphilipe · 2019-04-03 · in Cog: Use pieces of Python code as generators in your source files -
https://github.com/apple/swift/blob/master/docs/OwnershipMan...
comment by kod · 2019-03-18 · in Diagram and History of Programming Languages (2006) -
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? -
…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 -
…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…
comment by evv · 2019-01-27 · in Future JavaScript: what is still missing? -
This is not exactly a new thing: https://github.com/apple/swift There's also: https://github.com/apple/foundationdb
comment by lloeki · 2019-01-15 · in Apple Open-Sources FoundationDB Record Layer -
…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…
comment by saagarjha · 2018-11-13 · in Parsing Excel Spreadsheets with Swift's Codable Protocols -
…no exposed API for doing this. > Can I "swizzle"? There’s an experimental thing for this now: https://github.com/apple/swift/pull/20333
comment by slavapestov · 2018-11-13 · in Parsing Excel Spreadsheets with Swift's Codable Protocols -
…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
comment by jchb · 2018-11-07 · in Swift Intermediate Language Ownership Model Proposal -
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 -
…(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 -
…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 -
…anyone looking at a practical implementation, Swift recently migrated to a Grisu2-based algorithm: https://github.com/apple/swift/commit/97a934c412a26f0222f57d...
comment by saagarjha · 2018-06-11 · in How to Print Floating-Point Numbers Accurately (1990) [pdf] -
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 -
…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 -
…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…
comment by terhechte · 2018-03-01 · in Apple/swift-nio: Event-driven network framework for high perf. protocol servers -
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 -
https://github.com/apple/swift
comment by lukeholder · 2017-11-07 · in Apple at Its Best -
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++ -
https://github.com/apple/swift/blob/master/docs/Android.md This is a good start, at least for Android hardware..
comment by augbot · 2017-10-05 · in Dictionary and Set Improvements in Swift 4.0 -
…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 -
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…
comment by Someone · 2017-10-04 · in Dictionary and Set Improvements in Swift 4.0 -
You can use Swift on Windows: https://github.com/apple/swift/blob/master/docs/Windows.md
comment by nerdface · 2017-10-04 · in Dictionary and Set Improvements in Swift 4.0 -
…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 -
…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 -
…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 -
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 -
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 -
…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 -
And the supporting swift Pull Request is https://github.com/apple/swift/pull/11501
comment by spearo77 · 2017-08-17 · in Concurrency in Swift: One possible approach -
They are trying to address that https://github.com/apple/swift/blob/master/docs/OwnershipMan...
comment by bushin · 2017-06-30 · in Chris Lattner on the Realm WWDC 2017 Swift Panel -
…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...
comment by pflats · 2017-06-20 · in Tabs, spaces and your salary – how is it really? -
…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...
comment by alblue · 2017-05-22 · in Google scored points with its community by supporting Kotlin -
…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 -
…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 -
…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 -
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 -
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 -
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 -
…(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 -
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 -
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 -
…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…
comment by jsolson · 2017-02-18 · in Manifesto: Adding memory ownership to Swift