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
-
…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) -
…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 -
…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 -
…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 -
…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 -
…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 -
…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 -
> 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 -
…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++ -
…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 -
…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 -
…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 -
…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 -
…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 -
…> 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