Upgrade to Pro — share decks privately, control downloads, hide ads and more …

try! Swift Tokyo 初参加報告LT

hinakko
April 13, 2024

try! Swift Tokyo 初参加報告LT

hinakko

April 13, 2024
Tweet

Transcript

  1. ಛʹҹ৅ʹ࢒ͬͨൃද AIʹΑΔݴޠֶशͷมֵɿDuolingoͷAIνϡʔλʔΛਂ۷Δ Trans ormin Lan ua e Learnin with Generative

    AI try! Swift Tokyo Xingyu Wang March 22, 2024 A Deep Dive into Duolin o’s AI Tutor Feature - Roleplay IUUQTTQFBLFSEFDLDPNXBOHYJOHZVUSZTXJGUUPLZPEVPMJOHPNBYSPMFQMBZ %VPMJOHPͷΞϓϦ͕ͲͷΑ͏ʹ࡞ΒΕ͍ͯΔ͔ʁ "SDIJUFDUVSF.77. $IBUJOUFSGBDFͷ6*ͱ0QFO"*Λ׆༻ͨ͠ΞϓϦͷߏ଄
  2. ಛʹҹ৅ʹ࢒ͬͨൃද ϚΫϩΛςετ͢Δ Testing Swift macros ‼" STEPHEN Hello! Macros are

    a wonderful new tool provided by Swift as of version 5.9 that can add all new super powers to your code. Most people here have probably mostly interacted with macros by using ones already provided by Apple, such as the @Observable macro and @Model macro from SwiftData. However, there will eventually come a time where you will finally want to write a macro yourself, but it can be quite difficult to get it right. Because macros are essentially little Swift programs that analyze existing Swift code in order to generate all new Swift code, it is easy to accidentally generate something wrong. So, today we will be discussing how one tests macros to ensure that they behave as expected over the many, many different ways they could be used. IUUQTHJUIVCDPNNCSBOEPOXQSFTFOUBUJPOTCMPCNBTUFSNBDSPTQSFTFOUBUJPOQEG 0CTFSWBUJPO J04ɺJ1BE04ɺNBD04ɺUW04ɺ ͓ΑͼXBUDI04Ҏ߱Ͱαϙʔτ 4XJGU6*ͷϏϡʔͰ؂ࢹՄೳͳσʔλϞσϧ΁ͷґଘؔ܎Λܗ੒͠ɺ σʔλ͕มߋ͞Εͨͱ͖ʹ6*Λߋ৽Ͱ͖Δɻ