Swift Talk 493
Digrams with Neural Nets
We start building a simple neural net to recognise digrams. Swift doesn’t have built-in types for things like matrices, so we create our own.
https://t.co/3rRExubWNs
Swift Talk 492
Building a Language Model: Neural Nets
We explore neural nets, the foundation for modern machine learning. Our first small step is backpropagating through a computation graph, inspired by @karpathy’s Micrograd.
https://t.co/HyxsjvzWCr
Swift Talk 491
Building a Language Model: Tokenization
We tokenize our text with byte-pair encoding, merging frequent character pairs to build a new vocabulary of tokens.
https://t.co/gqBitnuzLB
Swift Talk 490
Building a Language Model: N-grams
We build a simple n-gram implementation to better understand language models, training a complete—if slightly useless—model on a single book.
This episode is free to watch, enjoy! 😊
https://t.co/HYaaRdbnKk
Swift Talk 489
Rewriting Recursive Expressions
We try a different approach to syntax trees. By separating recursion into a generic map function, we can write operations in a simple way—with some complexity elsewhere.
This is a public episode, enjoy! 😊
https://t.co/VLMY0pMGEV
Swift Talk 488
The FormatStyle API
We look at the FormatStyle API’s more interesting options, and how they interact with SwiftUI.
This episode is free to watch, enjoy! 😊
https://t.co/8Xyjhml6Pu
Swift Talk 487
The Layout Protocol (Part 4)
We add two finishing touches to our custom bar layout: layout values for relative widths, and support for system spacing.
https://t.co/XJtZjqlsZN
Swift Talk 486
The Layout Protocol (Part 3)
We add alignment support to our custom layout. It only takes a few lines of code, but aligning without pushing views out of bounds is a little tricky.
https://t.co/0IltcHP7UT
Swift Talk 485
The Layout Protocol (Part 2)
We make sure that our custom layout distributes space evenly, respecting minimum widths and layout priorities.
https://t.co/pSXbmmgXLg
Swift Talk 484
The Layout Protocol (Part 1)
We revisit an old layout challenge, and solve it with a custom layout.
This episode is free to watch, enjoy! 😊
https://t.co/tQbLjAhTsb
Swift Talk 483
Matched Geometry and Corner Radius
We try to animate a view’s corner radius with matched geometry effect, and uncover some surprising quirks with SwiftUI transitions.
https://t.co/rzWkUjezCd
Swift Talk 482
Interpolating Matched Geometry Effect
We reimplement matched geometry effect using a progress value, which lets us control interpolation from the outside, and use keyframes.
https://t.co/xwSI3ad1Rj
Swift Talk 481
Matched Geometry Effect for Positioning Badges
We try a new technique for badge positioning, first building it by hand, then seeing if a LLM can generate the same solution.
This episode is free to watch, enjoy! 😊
https://t.co/7EtxiIImS7
Swift Talk 480
Building a Coding Agent (Part 2)
We give our little agent read, write and bash tools. Now it can write a simple Swift program, and execute it.
https://t.co/GZxSKo77mL
Swift Talk 479
Building a Coding Agent (Part 1)
We learn how agents are implemented by building one, with an outer loop for user input, and an inner loop for tool use.
This episode is free to watch, enjoy! 😊
https://t.co/wrvBaQyqg2
Swift Talk 478
Solving the View Model Problem (Part 3)
We clean up our property wrapper, and create a macro to save us from writing boilerplate code.
https://t.co/iHMjvhiQxu
Swift Talk 477
Solving the View Model Problem (Part 2)
We create a view model protocol and property wrapper that regenerates view models when new values are passed to a view.
https://t.co/1ao5wR0TXI
Swift Talk 476
Solving the View Model Problem (Part 1)
We investigate, and outline a solution to, creating and updating view models in SwiftUI.
This episode is free to watch, enjoy! 😊
https://t.co/NYPtut4J1B
Swift Talk 474
Settings Form Layout (Part 1)
We build the layout for a typical macOS settings form in SwiftUI, using sections for structure and a custom style to lay out the elements correctly.
This episode is free to watch, enjoy! 😊
https://t.co/dttP5CaDvp