Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WWDC #113

Open
ShannonChenCHN opened this issue Jun 21, 2018 · 6 comments
Open

WWDC #113

ShannonChenCHN opened this issue Jun 21, 2018 · 6 comments

Comments

@ShannonChenCHN
Copy link
Owner Author

ShannonChenCHN commented Jul 3, 2018

读 『Favourite WWDC 2018 sessions

今年的 WWDC 主要关注于安全、稳定、速度这三个方面。作为 iOS 开发者,值得关注的有编程语言(Swift)、框架(Cocoa Touch)、IDE(Xcode)和测试机巧。

To me, APIs come and get deprecated very often and it’s good to know them, but the most important thing is to invest in your programming, debugging and testing skill which you can apply in many other platforms.

人的精力和资源有限,最值得投资的是那些复用性比较高的事情,比如编程、调试和测试技巧等。

下面是作者推荐的一些 session:

  • Platforms State of the Union(必看)
  • What’s new in Swift(大半年没碰 Swift 了,暂时是不会理它了)
  • What’s New in Cocoa Touch (印象比较深的是 Autolayout 的改进)
  • Getting the Most out of Playgrounds in Xcode
  • What’s New in Core ML
  • What’s New in Testing (作者居然会认为 Testing 相关的对他最重要,看来国外对于自动化测试这块还是比较看重)
  • Testing Tips & Tricks
  • Advanced Debugging with Xcode and LLDB (实用的调试技巧还是要看一看)
  • A Tour of UICollectionView (关于 UICollectionView 的一些使用技巧)
  • Swift Generics
  • Data You Can Trust (关于 Swift 的)
  • Embracing Algorithms (居然还有讲算法相关的,值得看看)
  • Image and Graphics Best Practices (关于图形绘制和渲染的,跟性能有关,值得看看)
  • A Guide to Turi Create

@ShannonChenCHN
Copy link
Owner Author

ShannonChenCHN commented Jul 3, 2018

读 『WWDC 2018 Viewing Guide

根据作者的一些推荐,我比较感兴趣的有

Platforms State of The Union?

  • Platforms State of the Union (所有平台的更新概览)
  • Session 202 What’s New in Cocoa Touch

App Frameworks

  • Session 220 High Performance Auto Layout (原来的性能瓶颈在哪里,怎么提高的?)
  • Session 225 A Tour of UICollectionView (关于 UICollectionView 的一些使用技巧)
  • Session 219 Image and Graphics Best Practises
  • Session 227 Optimizing App Assets
  • Session 228 What’s New in Energy Debugging

Developer Tools(实用、效率、性能)

  • Session 405 Measuring Performance Using Logging
  • Session 408 Building Faster in Xcode
  • Session 412 Advanced Debugging with Xcode and LLDB
  • Session 414 Understanding Crashes and Crash Logs
  • Session 416 iOS Memory Deep Dive

Networking

  • Session 714 Optimizing Your App for Today’s Internet
  • Session 715 Introducing Network.framework

@ShannonChenCHN
Copy link
Owner Author

ShannonChenCHN commented Jul 3, 2018

读 『Top 10 WWDC 2018 Videos in Review - Ray Wenderlich

“He talks about the importance of understanding algorithms beyond preparing for technical interviews. He goes through a case study on how misusing clean but inefficient code can critically impact scalability and performance.” – Kelvin Lau, Senior iOS Developer, Apply Digital, Ltd.

这两句话简直说出了算法平时最真实的“处境”:

  • 大家学算法、练习算法,大多是为了面试
  • 很多人平时在写代码时,只关注了 clean code,而忽视了性能和可扩展性

@ShannonChenCHN ShannonChenCHN changed the title WWDC 2018 WWDC Jun 22, 2020
@ShannonChenCHN
Copy link
Owner Author

ShannonChenCHN commented Jun 24, 2020

WWDC20 Overview: What's new in Swift

Part 1 Latest Advancements

  • Swift releases covered today
    • Xcode 11.4/Swift 5.2
    • Xcode 12/Swift 5.3

1. Runtime Performance

  • Code Size

    • internal benchmark: binary size
    • MovieSwiftUI binary size
  • Dirty memory

    • Example of Memory Layout
    • Heap usage

2. Language refinements

  • Lowering the Swift runtime in the userspace stack
    • Memory usage critical for low-level OS services
    • Swift lower in system stack than foundation

3. Developer Experience

  • Diagnostics
    • New diagnostics subsystem in the Swift Compiler
  • Code Completion
    • Improved type-checking inference
    • KeyPath as a function
    • Code completion speed
  • Code indentation
    • Improved indentation formating
  • Debugging
    • Better error message for runtime failures
    • Increased robustness in debugging

4. Cross-Platform

  • Offical Swift platform support
    • Apple platforms
    • Ubuntu 16.04, 18.04, 20.04
    • CentOS 8
    • Amazon Linux 2
    • Windows(coming soon)
  • Swift on AWS Lamda

Part 2 Language and Libraries

1. Language

  • SE-0279: Multiple trailing closure syntax
    • API Design: Trailing closure syntax
  • SE-0249: KeyPath expressions as functions
  • SE-0281: @main
  • SE-0269: Increased availability of implicit self in closures
  • SE-0276: Multi-pattern catch clauses
  • Enum Enhancement
  • Embedded DSL Enhancement
    • WWDC20: What's new in SwiftUI

2. Libraries

  • SDK

    • Float16
      • WWDC20: Explore Numerical Computing in Swift
    • Apple Archive
    • Swift System
    • OSLog
      • WWDC20: Explore Logging in Swift
  • Packages

    • Swift Numerics
      • WWDC20: Explore Numerical Computing in Swift
    • Swift ArgumentParser
    • Swift StandardLibraryPreview

@ShannonChenCHN
Copy link
Owner Author

ShannonChenCHN commented Jul 31, 2022

Improve app size and runtime performance - WWDC22

When your app is run on the new OS, thanks to the improvements in the runtimes, Swift protocol checks are more efficient. Every time we try to do autorelease elision, that's faster too.
Thanks to the new compilers and linker in Xcode 14 and message send stubs, you can save up to 2% of code size by rebuilding your app. And finally, when you update your deployment target to iOS 16, tvOS 16, or watchOS 9, you can further save another 2% by making retain/release calls smaller. Even more, thanks to the smaller autorelease elision sequence.

image
image
image

image
image
image

Read More

Repository owner deleted a comment from Paulwisley Jul 31, 2022
@ShannonChenCHN
Copy link
Owner Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant