What’s New in Swift

Posted by Den on June 08, 2018 · 4 mins read

What’s New in Swift

WWDC 2018

What’s New in Swift

WWDC 2018

Community-Hosted Continuous Integration (extended)

- Debian 9.1 on Raspberry Pi
- Fedora 27
- Ubunto on PowerPC
- Swift for TensorFlow

Speedup for Debug Builds

Compilation pipeline optimized to reduce redundant work across files

Compilation Mode

Compilation Mode (Debug)

Runtime Optimizations

Reference count optimization

Small String

16Bytes (64bit platforms)

Optimize for Size

Reduce Code size

Collection of Enum Cases 👍

CaseIterable

Conditional Conformance 👍

Conditional Conformance

Synthesized Equatable and Hashable 👍

Equatable, Hashable

Hashable Enhancements

Hashable Enhancements

Hash Values Vary From Run to Run

Set ‘SWIFT_DETERMINISTIC_HASHING=1’ in Edit Scheme/Run/Environment Variables

Random Number Generation 👍

Random Number Generation

Default RandomNumberGenerator Implementation

Custom RND Implementation

Checking Platform Conditions 👍

Checking Platform Conditions

Enforcing Exclusive Access to Memory

Overlapping access to the same memory location not allowed
Dynamic Checks Now Available in Release Builds