# Core Libraries

**URL:** https://forums.swift.org/c/development/corelibs/8.md?page=4

[Latest](https://forums.swift.org/latest.md) · [Categories](https://forums.swift.org/categories.md) · [Tags](https://forums.swift.org/tags.md)

**Page:** 5

---

## [Building libDispatch on Linux crashes](https://forums.swift.org/t/building-libdispatch-on-linux-crashes/34319)

<div class="topic-metadata">

**Author:** [@Ron\_Olson](https://forums.swift.org/u/Ron_Olson)\
**Replies:** 14\
**Last updated:** [March 9, 2020, 1:01am UTC](https://forums.swift.org/t/building-libdispatch-on-linux-crashes/34319 "2020-03-09T01:01:43Z")

</div>

Hey all- Okay, I'm at Witt's End and am making a request for some help. I am trying to build Swift 5.2 on Fedora Rawhide that has Clang 10 and CMake 3.17.0-rc2 as of this writing. It fails to build libDispatch because s…

---

## [Database Integration/Overlap problem between swift and objective C app](https://forums.swift.org/t/database-integration-overlap-problem-between-swift-and-objective-c-app/34304)

<div class="topic-metadata">

**Author:** [@AppsMaven](https://forums.swift.org/u/AppsMaven)\
**Replies:** 0\
**Last updated:** [March 4, 2020, 1:33pm UTC](https://forums.swift.org/t/database-integration-overlap-problem-between-swift-and-objective-c-app/34304 "2020-03-04T13:33:41Z")

</div>

Dear team, Hope you're all doing well. I'm stuck with this problem where my new swift project data model name and structure are overriding my Objective - C project core data model and structure. I need to keep the same …

---

## [Building libicu as part of the Linux Swift build](https://forums.swift.org/t/building-libicu-as-part-of-the-linux-swift-build/16526)

<div class="topic-metadata">

**Author:** [@spevans](https://forums.swift.org/u/spevans)\
**Replies:** 16\
**Last updated:** [December 20, 2019, 12:44pm UTC](https://forums.swift.org/t/building-libicu-as-part-of-the-linux-swift-build/16526 "2019-12-20T12:44:48Z")

</div>

Hopefully this is the correct category to post this. Currently on Ubuntu Linux, the Swift toolchain uses the system provided libicu which presents 2 problems: The version of ICU is quite old on 14.04 and 16.04, which…

---

## [2 Dimensional Array](https://forums.swift.org/t/2-dimensional-array/31485)

<div class="topic-metadata">

**Author:** [@sgmason](https://forums.swift.org/u/sgmason)\
**Replies:** 4\
**Last updated:** [December 9, 2019, 11:51am UTC](https://forums.swift.org/t/2-dimensional-array/31485 "2019-12-09T11:51:36Z")

</div>

I have the following class class Matches { var name : String? var handicap : Int? var displayName : String? init(name: String, handicap: Int, displayName: String) { self.name = name self.handicap = handicap …

---

## [How do Set and Dictionary store keys with the same hash?](https://forums.swift.org/t/how-do-set-and-dictionary-store-keys-with-the-same-hash/31119)

<div class="topic-metadata">

**Author:** [@CTMacUser](https://forums.swift.org/u/CTMacUser)\
**Replies:** 1\
**Last updated:** [November 26, 2019, 3:31am UTC](https://forums.swift.org/t/how-do-set-and-dictionary-store-keys-with-the-same-hash/31119 "2019-11-26T03:31:04Z")

</div>

The point of Hashable is to quickly calculate keys so the container can store its elements in a numeric graph. So what happens when distinct elements share a hash value? Are they just stored in a randomly-ordered list? …

---

## [JSONSerialization performance between swift-corelibs-foundation and iOS foundation](https://forums.swift.org/t/jsonserialization-performance-between-swift-corelibs-foundation-and-ios-foundation/30818)

<div class="topic-metadata">

**Author:** [@dannliu](https://forums.swift.org/u/dannliu)\
**Replies:** 2\
**Last updated:** [November 15, 2019, 4:42pm UTC](https://forums.swift.org/t/jsonserialization-performance-between-swift-corelibs-foundation-and-ios-foundation/30818 "2019-11-15T16:42:53Z")

</div>

How I test the performance: Create an application with Xcode. Copy the JSONSerialization.swift into the project and change the name to OPJSONSerialization to avoid name collision Test with below code and run on iPhone…

---

## [All core libraries have been migrated to modern CMake](https://forums.swift.org/t/all-core-libraries-have-been-migrated-to-modern-cmake/30770)

<div class="topic-metadata">

**Author:** [@compnerd](https://forums.swift.org/u/compnerd)\
**Replies:** 3\
**Last updated:** [November 14, 2019, 4:57am UTC](https://forums.swift.org/t/all-core-libraries-have-been-migrated-to-modern-cmake/30770 "2019-11-14T04:57:32Z")

</div>

Hello fellow developers, This is to announce that the last of the staging is now complete. All of the core libraries (libdispatch, foundation, XCTest) are now being built with CMake 3.15.1. This is largely transparent…

---

## [Foundation is now on CMake 3.15.1!](https://forums.swift.org/t/foundation-is-now-on-cmake-3-15-1/30505)

<div class="topic-metadata">

**Author:** [@compnerd](https://forums.swift.org/u/compnerd)\
**Replies:** 5\
**Last updated:** [November 8, 2019, 6:39pm UTC](https://forums.swift.org/t/foundation-is-now-on-cmake-3-15-1/30505 "2019-11-08T18:39:36Z")

</div>

Hello fellow developers, This is to make ensure that others are aware of this, the slow crawl to CMake 3.15 is moving forward. This should be transparent, but a clean build is probably a wise choice. This follows on t…

---

## [\[Linux\] Swift 5.1 URLSession unable to handle multiple concurrent connections](https://forums.swift.org/t/linux-swift-5-1-urlsession-unable-to-handle-multiple-concurrent-connections/29441)

<div class="topic-metadata">

**Author:** [@mman](https://forums.swift.org/u/mman)\
**Replies:** 4\
**Last updated:** [November 5, 2019, 12:42am UTC](https://forums.swift.org/t/linux-swift-5-1-urlsession-unable-to-handle-multiple-concurrent-connections/29441 "2019-11-05T00:42:07Z")

</div>

Hi guys, sorry if this is a wrong place to bring this. I am using SwiftyRequest under official Linux docker image for Swift 5.1 and getting ton of timeouts (error 1001) when firing up multiple simultaneous POST requests…

---

## [Potential LLVM / Linking issue on 32bit Android](https://forums.swift.org/t/potential-llvm-linking-issue-on-32bit-android/27727)

<div class="topic-metadata">

**Author:** [@Geordie\_J](https://forums.swift.org/u/Geordie_J)\
**Replies:** 16\
**Last updated:** [October 31, 2019, 11:52pm UTC](https://forums.swift.org/t/potential-llvm-linking-issue-on-32bit-android/27727 "2019-10-31T23:52:49Z")

</div>

There is a recurring bug on 32bit Android (armv7a) whereby s-c-f builds crash at runtime with a bus / alignment error: libc (11789): Fatal signal 7 (SIGBUS), code 1, fault addr 0xcc7a8e74 in tid 11789 (flowkey.testap…

---

## [Android application startup](https://forums.swift.org/t/android-application-startup/29386)

<div class="topic-metadata">

**Author:** [@Molanda](https://forums.swift.org/u/Molanda)\
**Replies:** 3\
**Last updated:** [October 17, 2019, 12:59am UTC](https://forums.swift.org/t/android-application-startup/29386 "2019-10-17T00:59:38Z")

</div>

I have ported an iOS app to Android using Vlad Gorlov's Swift Everywhere Toolchain. The non-UI code is shared with the iOS version (about 20k lines of Swift code). The UI is written in Kotlin with a JNI bridge using a …

---

## [New swift-corelibs-foundation module: FoundationXML](https://forums.swift.org/t/new-swift-corelibs-foundation-module-foundationxml/27544)

<div class="topic-metadata">

**Author:** [@millenomi](https://forums.swift.org/u/millenomi)\
**Replies:** 11\
**Last updated:** [September 24, 2019, 3:19am UTC](https://forums.swift.org/t/new-swift-corelibs-foundation-module-foundationxml/27544 "2019-09-24T03:19:58Z")

</div>

You may remember that when we originally pitched splitting Foundation, it was noted that libxml2 was a dependency it was possibly worth splitting out. I have landed patches to produce the proposed FoundationXML module; s…

---

## [How to quick build and test Foundation on Linux](https://forums.swift.org/t/how-to-quick-build-and-test-foundation-on-linux/28464)

<div class="topic-metadata">

**Author:** [@dannliu](https://forums.swift.org/u/dannliu)\
**Replies:** 17\
**Last updated:** [September 16, 2019, 7:52am UTC](https://forums.swift.org/t/how-to-quick-build-and-test-foundation-on-linux/28464 "2019-09-16T07:52:24Z")

</div>

I usually build swift-corelibs-foundation on macos with Xcode. It's easy to edit and test. Now, I want to build and run the Foundation test on Linux (Ubuntu 18.04). I followed the guide GettingStarted.md, On Linux sectio…

---

## [Swift-corelibs-foundation Implementation Status](https://forums.swift.org/t/swift-corelibs-foundation-implementation-status/28743)

<div class="topic-metadata">

**Author:** [@IOOI](https://forums.swift.org/u/IOOI)\
**Replies:** 0\
**Last updated:** [September 11, 2019, 1:54pm UTC](https://forums.swift.org/t/swift-corelibs-foundation-implementation-status/28743 "2019-09-11T13:54:39Z")

</div>

Hi, now that \[SR-10347\] Parity: Remove all uses of NSUnimplemented from swift-corelibs-foundation · Issue #4401 · apple/swift-corelibs-foundation · GitHub has been resolved, can somebody please update swift-corelibs-fou…

---

## [Foundation on Windows (CI/Nightlies)](https://forums.swift.org/t/foundation-on-windows-ci-nightlies/22848)

<div class="topic-metadata">

**Author:** [@compnerd](https://forums.swift.org/u/compnerd)\
**Replies:** 24\
**Last updated:** [August 22, 2019, 6:00pm UTC](https://forums.swift.org/t/foundation-on-windows-ci-nightlies/22848 "2019-08-22T18:00:27Z")

</div>

Here by popular demand, Foundation on Windows, built "continuously"! I have finished improving the build rules for the Windows build so that the Azure hosts can have automated builds of Foundation for Windows. These bu…

---

## [Swift on Suse Linux](https://forums.swift.org/t/swift-on-suse-linux/27990)

<div class="topic-metadata">

**Author:** [@sspringer](https://forums.swift.org/u/sspringer)\
**Replies:** 5\
**Last updated:** [August 19, 2019, 4:21pm UTC](https://forums.swift.org/t/swift-on-suse-linux/27990 "2019-08-19T16:21:49Z")

</div>

Has anyone experience with compiling and using the Swift toolchain (and Foundation) on Suse Linux, or is anyone interested in it, or has anyone some advice? Should this be easy or hard? Thanks.

---

## [(Partial) Nightlies for android SDK](https://forums.swift.org/t/partial-nightlies-for-android-sdk/25909)

<div class="topic-metadata">

**Author:** [@compnerd](https://forums.swift.org/u/compnerd)\
**Replies:** 42\
**Last updated:** [August 12, 2019, 3:46pm UTC](https://forums.swift.org/t/partial-nightlies-for-android-sdk/25909 "2019-08-12T15:46:43Z")

</div>

Hello android developers, I often hear that android users tend to have a hard time with getting started with using swift on android. Part of this stems from people not wanting to build the full toolchain, part of it st…

---

## [Memory leak with String.range(options: .regularExpression) \[SR-3536\]](https://forums.swift.org/t/memory-leak-with-string-range-options-regularexpression-sr-3536/5125)

<div class="topic-metadata">

**Author:** [@Nethra\_Ravindran](https://forums.swift.org/u/Nethra_Ravindran)\
**Replies:** 12\
**Last updated:** [July 22, 2019, 10:09pm UTC](https://forums.swift.org/t/memory-leak-with-string-range-options-regularexpression-sr-3536/5125 "2019-07-22T22:09:04Z")

</div>

Hi everyone, I am working on \[SR-3536\] Memory leak with String.range(options: .regularExpression) · Issue #4303 · apple/swift-corelibs-foundation · GitHub There is a memory leak when searching for the substring of a st…

---

## [Extension of a generic Objective-C class cannot access the class's generic parameters at runtime](https://forums.swift.org/t/extension-of-a-generic-objective-c-class-cannot-access-the-classs-generic-parameters-at-runtime/26680)

<div class="topic-metadata">

**Author:** [@davelee](https://forums.swift.org/u/davelee)\
**Replies:** 0\
**Last updated:** [July 7, 2019, 1:56am UTC](https://forums.swift.org/t/extension-of-a-generic-objective-c-class-cannot-access-the-classs-generic-parameters-at-runtime/26680 "2019-07-07T01:56:44Z")

</div>

I'm attempting to extend NSFetchRequest to conform to a more abstract protocol, as shown below. But doing so results in the error "Extension of a generic Objective-C class cannot access the class's generic parameters at …

---

## [What does Swift support in CMake mean for Swift's build?](https://forums.swift.org/t/what-does-swift-support-in-cmake-mean-for-swifts-build/24828)

<div class="topic-metadata">

**Author:** [@compnerd](https://forums.swift.org/u/compnerd)\
**Replies:** 18\
**Last updated:** [June 27, 2019, 1:14am UTC](https://forums.swift.org/t/what-does-swift-support-in-cmake-mean-for-swifts-build/24828 "2019-06-27T01:14:47Z")

</div>

On the heels of the recent announcement about Swift support in CMake, I would like to bring up a topic of discussion which I think may take a bit to resolve. I would like to bring this topic up and see if we can come to…

---

## [\`pipe\_round\_robin.swift.gyb\` fails while building swift 5.1 toolchain](https://forums.swift.org/t/pipe-round-robin-swift-gyb-fails-while-building-swift-5-1-toolchain/26231)

<div class="topic-metadata">

**Author:** [@stamba](https://forums.swift.org/u/stamba)\
**Replies:** 0\
**Last updated:** [June 24, 2019, 9:00am UTC](https://forums.swift.org/t/pipe-round-robin-swift-gyb-fails-while-building-swift-5-1-toolchain/26231 "2019-06-24T09:00:58Z")

</div>

The following test case fails on powerpc64le:- TEST 'Swift(linux-powerpc64le) :: Driver/pipe\_round\_robin.swift.gyb' FAILED Can anyone please explain what this piece of code is testing? \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\* TEST 'Swift…

---

## [URLSessionConfiguration.background(withIdentifier:) implementation](https://forums.swift.org/t/urlsessionconfiguration-background-withidentifier-implementation/26024)

<div class="topic-metadata">

**Author:** [@karthikkeyan.balan](https://forums.swift.org/u/karthikkeyan.balan)\
**Replies:** 0\
**Last updated:** [June 18, 2019, 3:44pm UTC](https://forums.swift.org/t/urlsessionconfiguration-background-withidentifier-implementation/26024 "2019-06-18T15:44:25Z")

</div>

Hi Guys, I am trying to understand how tasks added into Sessions with the background configuration, in order to implement URLSessionConfiguration.background(withIdentifier:) method. As per Apple's documentation, A se…

---

## [SwiftUI implementation](https://forums.swift.org/t/swiftui-implementation/25345)

<div class="topic-metadata">

**Author:** [@marcel](https://forums.swift.org/u/marcel)\
**Replies:** 7\
**Last updated:** [June 17, 2019, 5:05pm UTC](https://forums.swift.org/t/swiftui-implementation/25345 "2019-06-17T17:05:14Z")

</div>

Hello, Does anybody know how SwiftUI is implemented: which language it's written it, are there any plans to make it opensource, etc? My guess is it's more or less a wrapper for UIKit, with the classes presumably writte…

---

## [Are Linux and Darwin Foundation meant to have the same API?](https://forums.swift.org/t/are-linux-and-darwin-foundation-meant-to-have-the-same-api/25290)

<div class="topic-metadata">

**Author:** [@rlovelett](https://forums.swift.org/u/rlovelett)\
**Replies:** 13\
**Last updated:** [June 11, 2019, 6:23pm UTC](https://forums.swift.org/t/are-linux-and-darwin-foundation-meant-to-have-the-same-api/25290 "2019-06-11T18:23:42Z")

</div>

I've been trying to turn a library I use for internal testing that mocks URLSession in test to be an open-source SwiftPM project that works on Linux. The library has been used without significant issue on iOS. No good de…

---

## [Combine Framework](https://forums.swift.org/t/combine-framework/25228)

<div class="topic-metadata">

**Author:** [@frameworklabs](https://forums.swift.org/u/frameworklabs)\
**Replies:** 5\
**Last updated:** [June 6, 2019, 9:12pm UTC](https://forums.swift.org/t/combine-framework/25228 "2019-06-06T21:12:37Z")

</div>

Apple has presented Combine - a reactive stream library: Apple Developer Documentation Thats a great addition - my questions might be: Will this be part of the Core Libraries or Standard library? Why didn't it go beyo…

---

## [DISPATCH\_INTERNAL\_CRASH on \_dispatch\_queue\_cleanup](https://forums.swift.org/t/dispatch-internal-crash-on-dispatch-queue-cleanup/25055)

<div class="topic-metadata">

**Author:** [@VolodymyrBoichentsov](https://forums.swift.org/u/VolodymyrBoichentsov)\
**Replies:** 8\
**Last updated:** [June 1, 2019, 9:37pm UTC](https://forums.swift.org/t/dispatch-internal-crash-on-dispatch-queue-cleanup/25055 "2019-06-01T21:37:55Z")

</div>

I'm getting crash on pthread\_exit for one of threads which was spawned by dispatch. This thread is next to above and looks healty: configuration of cmake: cmake -DANDROID\_PLATFORM="android-$ANDROID\_PLATFORM" \\…

---

## [Why are shorthand operators not implemented for Measurement?](https://forums.swift.org/t/why-are-shorthand-operators-not-implemented-for-measurement/24535)

<div class="topic-metadata">

**Author:** [@TG908](https://forums.swift.org/u/TG908)\
**Replies:** 7\
**Last updated:** [May 16, 2019, 7:33am UTC](https://forums.swift.org/t/why-are-shorthand-operators-not-implemented-for-measurement/24535 "2019-05-16T07:33:15Z")

</div>

I was wondering why there are no shorthand operators (like: +=, -=, ...) implemented for measurement. They should be relatively easy to implement.

---

## [Building CoreFoundation for Darwin](https://forums.swift.org/t/building-corefoundation-for-darwin/23463)

<div class="topic-metadata">

**Author:** [@libsystem-ethan](https://forums.swift.org/u/libsystem-ethan)\
**Replies:** 3\
**Last updated:** [May 6, 2019, 10:42pm UTC](https://forums.swift.org/t/building-corefoundation-for-darwin/23463 "2019-05-06T22:42:39Z")

</div>

Firstly, I know that questions similar this have been asked in a previous thread but I didn't want to bump a 1+ year old thread, so I shall ramble here - I do apologise if this is the wrong place to post. In the aforeme…

---

## [qualityOfService for Thread](https://forums.swift.org/t/qualityofservice-for-thread/23359)

<div class="topic-metadata">

**Author:** [@SDGGiesbrecht](https://forums.swift.org/u/SDGGiesbrecht)\
**Replies:** 2\
**Last updated:** [April 19, 2019, 12:04am UTC](https://forums.swift.org/t/qualityofservice-for-thread/23359 "2019-04-19T00:04:01Z")

</div>

Thread does not have a qualityOfService property on Linux like it does on macOS. Operation and Process both have the property for source compatibility even though Linux ignores it. Would a pull request that adds it to T…

---

## [Swift 5's performance with large strings is much slower than 4.2](https://forums.swift.org/t/swift-5s-performance-with-large-strings-is-much-slower-than-4-2/20603)

<div class="topic-metadata">

**Author:** [@Francois\_Green](https://forums.swift.org/u/Francois_Green)\
**Replies:** 21\
**Last updated:** [April 17, 2019, 8:20pm UTC](https://forums.swift.org/t/swift-5s-performance-with-large-strings-is-much-slower-than-4-2/20603 "2019-04-17T20:20:35Z")

</div>

The Benchmark Game has moved from Swift 4.2.1 to the 2019-02-06 build of 5.0-dev. The RegexRedux benchmark's already abysmal performance of around 74 seconds, has now increased to 115 seconds. Is this on anyone's rada…

[Previous page](https://forums.swift.org/c/development/corelibs/8.md?page=3)

[Next page](https://forums.swift.org/c/development/corelibs/8.md?page=5)
