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
-
…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 -
…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",…
comment by pjmlp · 2020-09-24 · in Biscuit: A monolithic, POSIX-subset operating system kernel in Go -
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 -
▲ 1
Resource Ownership for Swiftstory by fpoling · 2020-09-23 · 0 comments
-
…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 -
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 -
▲ 3
Adding async to the Swift type systemstory by samcat116 · 2020-07-28 · 0 comments
-
…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 -
…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
comment by pjmlp · 2020-05-08 · in Show HN: Micro-mitten – Research language with compile-time memory management -
…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.
comment by ken · 2020-04-09 · in Swift: Google’s Bet on Differentiable Programming -
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 -
▲ 3
Swift and C++ Interop Manifestostory by rvz · 2020-02-19 · 0 comments
-
…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 -
…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 -
…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 -
…community is currently trying to come up with their own differentiable programming initiative [1] https://github.com/apple/swift/blob/master/docs/Differentiab...
comment by teleforce · 2020-01-16 · in DDSP: Differentiable Digital Signal Processing -
…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 -
▲ 180
Differentiable Programming Manifestostory by kristianp · 2019-11-13 · 75 comments
-
▲ 3
Differentiable Programming Manifestostory by sciencenut · 2019-11-11 · 0 comments
-
…> 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...
comment by saagarjha · 2019-11-09 · in How Swift Achieved Dynamic Linking Where Rust Couldn't -
…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 -
…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 -
…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 -
▲ 1
Name Translation from C to Swiftstory by ingve · 2019-09-03 · 0 comments
-
…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) -
▲ 1
Enable ExistentialSpecializer by default · Issue #19820 · apple/swiftstory by tambourine_man · 2019-05-07 · 0 comments
-
…(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) -
▲ 1
Swift Ownership Manifestostory by kristianp · 2019-03-09 · 0 comments
-
▲ 5
Swift to get Rust-like ownership modelstory by eindiran · 2019-03-07 · 0 comments
-
▲ 1
Swift/OwnershipManifesto.md at master · apple/swiftstory by tambourine_man · 2019-03-07 · 0 comments
-
▲ 2
Swift Standard Library Programmers Manualstory by ingve · 2019-02-19 · 0 comments
-
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 -
▲ 2
Swift 4.2story by okket · 2018-09-13 · 0 comments
-
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 -
▲ 3
Ask HN: Where to start with Swift compiler development?story by Lausbert · 2018-07-31 · 0 comments
-
…(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]