dotSwift 2019 - Johannes Weiss - High-performance systems in Swift

Поделиться
HTML-код
  • Опубликовано: 25 ноя 2024

Комментарии • 5

  • @mohammadnej7029
    @mohammadnej7029 15 дней назад

    Such a nice guide! You can blame Apple for many things but not for their language! After working with Swift for a couple months when I went back to C# for a project I was really terrified with the amount of things that could go wrong and the compiler just didn’t care about!

  • @cuongv88
    @cuongv88 2 года назад

    Great talk. I wish I found it earlier!

  • @MartinLexow
    @MartinLexow 2 года назад

    Great talk, thanks Johannes! 👏

  • @ninja4ever_
    @ninja4ever_ 4 года назад +2

    3:43 -
    12:36 copy on write

  • @casperes0912
    @casperes0912 2 года назад

    I'm not sold that we shouldn't aim for letting the compiler handle this. The compiler knows how many general purpose registers are available, tries to optimise graph colouring problems to effectively use the registers, etc. It has good information available to determine if CoW would be a performance improvement. Might take a while in a bigger system to analyse that but still. It's good to give programmers control of this behaviour especially for library development but I would prefer an approach where the compiler making a judgment was default and programmers could explicitly CoW or request the compiler never CoW it