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
-
…The Adobe APIs[2] were also excellent, but I'm not sure they are open for browsing, anymore. [0] https://github.com/apple/swift [1] https://github.com/apple/darwin-xnu [2] https://developer.adobe.com/photoshop/api/
comment by ChrisMarshallNY · 2022-09-11 · in Ask HN: What's the best source code you've read? -
Like that says anything about anything? github.com/apple/swift has ~4000 open issues labeled as "bug" and has existed since 8 years ago. That makes about ~500 "bugs" per year while emacs by the same measure then have about ~75 bugs per…
comment by capableweb · 2022-09-06 · in My goal of closing 10% of Emacs bugs (2020) -
▲ 1
Interoperability Between Swift and C++story by todsacerdoti · 2022-07-15 · 0 comments
-
…GC for game programming. Plus, an upcoming feature will add Rust-style lifetimes for more control ( https://github.com/apple/swift/blob/main/docs/OwnershipManif... ).
comment by wilg · 2022-07-14 · in It’s time to make that indie C# game in Godot -
…Rust-like lower-level memory management which should help a ton for performance-critical code. ( https://github.com/apple/swift/blob/main/docs/OwnershipManif... )
comment by wilg · 2022-07-14 · in It’s time to make that indie C# game in Godot -
…the tradeoffs. There is certainly room for the compiler to reason better on eliding retain/release. https://github.com/apple/swift/issues/58549 Yes, the code does use Accelerate where applicable. That is one component of the numeric…
comment by avitzur · 2022-07-03 · in Porting Graphing Calculator from C++ to Swift -
There’s partial support which is under active development. https://github.com/apple/swift/tree/main/docs/CppInteroperab... https://forums.swift.org/t/swift-and-c-interoperability-work...
comment by danappelxx · 2022-07-02 · in Porting Graphing Calculator from C++ to Swift -
…bisect can actually work, or if you need to narrow down onto a small change you actually can. [1] https://github.com/apple/swift/commits/main
comment by stormbrew · 2022-04-27 · in How to write a Git commit message (2014) -
▲ 4
Swift now uses GitHub Issuesstory by nicebill8 · 2022-04-25 · 0 comments
-
…that it was a troll. [2] I think based on the language used is almost 100% certainly a troll [1] https://github.com/apple/swift/pull/165 [2] https://github.com/microsoft/vscode/issues/87268
comment by redox99 · 2022-04-22 · in Google’s AI-powered ‘inclusive warnings’ feature is very broken -
…any mappings/type definitions: https://forums.swift.org/t/swift-and-c-interoperability-work... https://github.com/apple/swift/blob/main/docs/CppInteroperab... https://github.com/apple/swift/blob/main/docs/CppInteroperab...
comment by gavinray · 2022-03-10 · in CXX – safe interop between Rust and C++ -
This is somewhat similar to how Swift represents Strings internally ( https://github.com/apple/swift/blob/main/stdlib/public/core/... ). Swift needs to support a few other options (it tracks UTF-8 vs UTF-16 encodings, and needs to know if…
comment by stephencanon · 2022-03-08 · in Buffet – An All-inclusive Buffer for C -
…preferring terse K&R C, for example. - as you probably know, work is being done on C++ interop ( https://github.com/apple/swift/blob/main/docs/CppInteroperab... ), so that may improve.
comment by Someone · 2022-02-22 · in Chris Lattner left Swift core team -
▲ 1
SwiftDtoa v2: Better, Smaller, Faster floating-point formattingstory by luu · 2022-02-18 · 0 comments
-
…gets standardized. That attribute will take care of the calling convention difference for you. https://github.com/apple/swift/blob/main/docs/ReferenceGuide...
comment by favorited · 2022-02-01 · in Swift and C++ interoperability workgroup announcement -
…class references in Swift equivalent to UnsafeMutablePointer. There's some information about it in https://github.com/apple/swift/blob/main/docs/CppInteroperab... this is quite long though so there's likely a lot more information. This…
comment by tarentel · 2022-02-01 · in Swift and C++ interoperability workgroup announcement -
…move only types. Are those not somewhat similar to what Rust has? See here for more re Swift: https://github.com/apple/swift/blob/main/docs/OwnershipManif...
comment by andrewjl · 2022-01-20 · in Why static languages suffer from complexity -
…Ada/SPARK, https://docs.adacore.com/spark2014-docs/html/ug/en/source/la... Swift, https://github.com/apple/swift/blob/main/docs/OwnershipManif... ParaSail http://www.parasail-lang.org/ Project Verona from Microsoft Research https://www.micr
comment by pjmlp · 2022-01-18 · in Failing to Learn Zig via Advent of Code -
…[3]: https://github.com/JetBrains/kotlin/commit/369b1974782b821e4... [4]: https://github.com/apple/swift/commit/afc81c1855bf711315b8e5...
comment by bmc7505 · 2021-12-09 · in Apple Open Source -
Every language has a runtime, it is what supports the basic language infrastructure, including Swift. https://github.com/apple/swift/blob/main/docs/Runtime.md
comment by pjmlp · 2021-11-13 · in Why asynchronous Rust doesn't work -
…with "swift/release/xxx" branches in llvm / cmark / swift, and call this to find what I am missing: https://github.com/apple/swift/blob/main/utils/build-script
comment by liuliu · 2021-11-02 · in Faster Mac dev tools with custom allocators -
…library, and you can define your own precedence levels and associativity for custom operators. https://github.com/apple/swift/blob/3ea9e9e55281b9957d2b5486...
comment by mayoff · 2021-10-30 · in Better Operator Precedence -
▲ 2
Round Float.pi down so that it's in [0,π]story by vitaut · 2021-10-21 · 0 comments
-
…here is the "C++ Interopability Manifesto", the outline they have for the feature in the language: https://github.com/apple/swift/blob/main/docs/CppInteroperabilityManifesto.md For a real-world example of using this, here's a test repo…
comment by gavinray · 2021-09-26 · in Swift Syntax and Structured Editing Library -
▲ 93
Swift Syntax and Structured Editing Librarystory by codetrotter · 2021-09-26 · 38 comments
-
▲ 244
An optimal algorithm for bounded random integersstory by smasher164 · 2021-09-02 · 41 comments
-
▲ 5
Swift PR: Add an option to build the concurrency library for back deploymentstory by burntcaramel · 2021-08-27 · 0 comments
-
…writer in Swift, but now I've lost it. [1]: https://github.com/GaloisInc/llvm-pretty-bc-parser [2]: https://github.com/apple/swift/blob/main/docs/Serialization....
comment by woodruffw · 2021-08-19 · in LLVM Internals: The Bitcode Format -
▲ 2
Swift error handling rationale and proposal (2015)story by todsacerdoti · 2021-08-17 · 0 comments
-
…stuff in life to store on my brain than a list of who replies to me on hacker news. Anyway, https://github.com/apple/swift/blob/main/stdlib/public/Swift... https://twitter.com/ErrataRob/status/1331735383193903104
comment by pjmlp · 2021-06-19 · in A Tour of Safe Tracing GC Designs in Rust -
…to keep track of weak references, at that point I would rather just have a full ownership model: https://github.com/apple/swift/blob/main/docs/OwnershipManif...
comment by jolux · 2021-06-08 · in Highlights of new technologies introduced at WWDC 2021 -
▲ 1
How C and Objective-C declarations are translated to Swiftstory by Austin_Conlon · 2021-03-31 · 0 comments
-
▲ 51
The Swift Array Design (2014)story by mpweiher · 2021-03-20 · 14 comments
-
…will net some other attempts. The foundation dependency is the biggest problem. You can check out https://github.com/apple/swift-corelibs-foundation which gets rid of the objc runtime dependency for other platforms, though you will find…
comment by drmidnight · 2021-03-16 · in Swift Evolution: Actors -
…in particular the API of other libraries they use internally. See Swift's error handling design: https://github.com/apple/swift/blob/main/docs/ErrorHandlingR... (Also, exceptions/nonlocal returns are a pain because the invisible control…
comment by astrange · 2021-03-13 · in An Object-Oriented Language for the '20s -
…of backing in directly into the compiler and provide it as a higher level language construction. https://github.com/apple/swift/blob/main/docs/Differentiable... Which leads to "Swift for Tensorflow" that unlike other languages like Java,…
comment by oscargrouch · 2021-02-04 · in Enzyme – High-performance automatic differentiation of LLVM -
▲ 3
SwiftDtoa v2: Better, Smaller, Faster floating-point formattingstory by vitaut · 2021-02-01 · 0 comments
-
> especially with ownership Yeah, the ownership manifesto is likely to be a big help. https://github.com/apple/swift/blob/main/docs/OwnershipManif... But I wouldn't hold my breath. I was hoping it would come with the Concurrency proposal…
comment by gilgoomesh · 2021-01-15 · in Rendering Moana with Swift -
…actually opened up the whole development history right back to the start of the project in 2010: https://github.com/apple/swift/commit/afc81c1855bf711315b8e5...
comment by mikepurvis · 2021-01-07 · in Apple releases open source modules of Big Sur -
In swift's case it's a single threaded frontend that is fairly inefficient: https://github.com/apple/swift/blob/main/docs/CompilerPerfor...
comment by novok · 2020-12-25 · in UX Issues with Notion -
▲ 65
Concurrency: Implement withUnsafe[Throwing]Continuationstory by adamnemecek · 2020-12-02 · 15 comments
-
…addition to [presumably] not being inlined, does not seem easy to optimize at the hardware level: https://github.com/apple/swift-corelibs-foundation/blob/main... The native Swift retain (swift_retain above) seems to be somewhere inside…
comment by wahern · 2020-11-25 · in Apple Silicon M1: Black Magic Fuckery -
…e.org/current/userguide/xcode_plugin.html https://developer.android.com/studio/build/building-cmdline https://github.com/apple/swift/blob/main/docs/Android.md https://blog.readdle.com/why-we-use-swift-for-android-db449f... As you can see,…
comment by Krisando · 2020-11-10 · in Show HN: SecureAppy – A modern vault for families -
…<-JNI-> Java. The following links could be a good starting point for Swift on Android. [^1] https://github.com/apple/swift/blob/main/docs/Android.md [^2] https://github.com/readdle/swift-android-toolchain
comment by FlyingSnake · 2020-11-01 · in Netflix Android and iOS Studio Apps now powered by Kotlin Multiplatform -
…support meta programming well enough to do it well purely in a library. The plan they have/had ( https://github.com/apple/swift/blob/main/docs/Differentiable... ) claims “First-class language support for differentiation will enable…
comment by Someone · 2020-10-17 · in Interoperability Between Swift and C++ -
▲ 123
Interoperability Between Swift and C++story by DeusExMachina · 2020-10-17 · 75 comments
-
▲ 1
Ideas for implementing interoperability between Swift and C++. [manifesto]story by amichail · 2020-10-16 · 0 comments
-
…on support for differential programming, which is a cool development in the space. More info here: https://github.com/apple/swift/blob/main/docs/Differentiable... Perhaps eventually there will be enough applications outside of the Apple…
comment by austinl · 2020-10-08 · in Swift Algorithms -
…[0], and the core team is expected to release a design document/proposal soon [1] [2]. [0]: https://github.com/apple/swift/pulls?q=concurrency [1]: https://forums.swift.org/t/rethinking-async/37984/30 [2]:…
comment by NobodyNada · 2020-10-02 · in Swift Atomics -
…I haven't noticed much of a difference. I last checked deeply with swift 4. More details here: https://github.com/apple/swift/blob/master/docs/CompilerPerf...
comment by novok · 2020-09-26 · in Swift System Is Now Open Source