TIL state of Swift for WebAssembly; Generators in Swift
Read Max Desiatov post The state of Swift for WebAssembly in 2020 (and earlier). Learned that asm.js was superseeded by WebAssembly (often shortened to Wasm).
TODO: Xcode sucks to fix this:
CGSize size = [self.valueLabel.text sizeWithFont:self.valueLabel.font
constrainedToSize:CGSizeMake(self.valueLabel.frame.size.width, MAXFLOAT)
lineBreakMode:NSLineBreakByWordWrapping];
Read How do closures and callbacks work? It’s turtles all the way down,
Event loops, building smooth UIs and handling high server load, , What are generators and why Swift needs them?. The idea of Generator is brilliant. I remember being confused seeing yeild
in Python code. Read Coroutines and “yield” expressions in Swift.