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. …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?
  2. 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)
  3. ▲ 1
    Interoperability Between Swift and C++
    story by todsacerdoti · 2022-07-15 · 0 comments
  4. …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... ).
  5. …Rust-like lower-level memory management which should help a ton for performance-critical code. ( https://github.com/apple/swift/blob/main/docs/OwnershipManif... )
  6. …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…
  7. 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
  8. …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)
  9. ▲ 4
    Swift now uses GitHub Issues
    story by nicebill8 · 2022-04-25 · 0 comments
  10. …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
  11. …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++
  12. 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
  13. …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
  14. ▲ 1
    SwiftDtoa v2: Better, Smaller, Faster floating-point formatting
    story by luu · 2022-02-18 · 0 comments
  15. …gets standardized. That attribute will take care of the calling convention difference for you. https://github.com/apple/swift/blob/main/docs/ReferenceGuide...
  16. …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…
  17. …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...
  18. …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
  19. …[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
  20. 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
  21. …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
  22. …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
  23. ▲ 2
    Round Float.pi down so that it's in [0,π]
    story by vitaut · 2021-10-21 · 0 comments
  24. …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…
  25. ▲ 93
    Swift Syntax and Structured Editing Library
    story by codetrotter · 2021-09-26 · 38 comments
  26. ▲ 244
    An optimal algorithm for bounded random integers
    story by smasher164 · 2021-09-02 · 41 comments
  27. ▲ 5
    Swift PR: Add an option to build the concurrency library for back deployment
    story by burntcaramel · 2021-08-27 · 0 comments
  28. …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
  29. ▲ 2
    Swift error handling rationale and proposal (2015)
    story by todsacerdoti · 2021-08-17 · 0 comments
  30. …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
  31. …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...
  32. ▲ 1
    How C and Objective-C declarations are translated to Swift
    story by Austin_Conlon · 2021-03-31 · 0 comments
  33. ▲ 51
    The Swift Array Design (2014)
    story by mpweiher · 2021-03-20 · 14 comments
  34. …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
  35. …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
  36. …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,…
  37. ▲ 3
    SwiftDtoa v2: Better, Smaller, Faster floating-point formatting
    story by vitaut · 2021-02-01 · 0 comments
  38. > 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
  39. …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
  40. 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
  41. ▲ 65
    Concurrency: Implement withUnsafe[Throwing]Continuation
    story by adamnemecek · 2020-12-02 · 15 comments
  42. …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
  43. …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,…
  44. …<-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
  45. …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++
  46. ▲ 123
    Interoperability Between Swift and C++
    story by DeusExMachina · 2020-10-17 · 75 comments
  47. ▲ 1
    Ideas for implementing interoperability between Swift and C++. [manifesto]
    story by amichail · 2020-10-16 · 0 comments
  48. …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
  49. …[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
  50. …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