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. …Rust-like lower-level memory management which should help a ton for performance-critical code. ( https://github.com/apple/swift/blob/main/docs/OwnershipManif... )
  2. …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…
  3. 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
  4. …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)
  5. …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
  6. …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++
  7. 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
  8. …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
  9. …gets standardized. That attribute will take care of the calling convention difference for you. https://github.com/apple/swift/blob/main/docs/ReferenceGuide...
  10. …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…
  11. …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...
  12. …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
  13. …[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
  14. 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
  15. …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
  16. …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
  17. …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…
  18. …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
  19. …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
  20. …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...
  21. …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
  22. …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
  23. …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,…
  24. > 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
  25. …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
  26. 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
  27. …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
  28. …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,…
  29. …<-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
  30. …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++
  31. …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
  32. …[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
  33. …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
  34. …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
  35. …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",…
  36. 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
  37. …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
  38. 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
  39. …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
  40. …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
  41. …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.
  42. 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
  43. …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
  44. …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
  45. …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
  46. …community is currently trying to come up with their own differentiable programming initiative [1] https://github.com/apple/swift/blob/master/docs/Differentiab...
  47. …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
  48. …> 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...
  49. …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
  50. …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