WRT @NSHipster's regex post:
import Foundation
let cluedo = "🕵️♀️🔍"
// NOTE: 2 characters, or 6+2 = 8 UTF-16 code units
let r = cluedo.range(of: "......", options: .regularExpression)!
// NOTE: 6 (not 2 or 8) dots
print(cluedo[r])
// MYSTERY: prints "🕵️♀️🔍"
1
Replying to @zzznah
Or you do your processing ((motion) blur) in linear space rather than in eg sRGB.
1
Swift challenge: Write the fastest possible
func f(_ i: UInt8) -> UInt32 { … }
such that:
f(0) -> 0
f(1) -> 65536
f(2) -> 81920
f(3) -> 86016
f(4) -> 87040
f(5) -> 87296
f(6) -> 87360
1
This compiler flag saves time:
-Xfrontend -warn-long-expression-type-checking=50
(Especially if you're using SIMD types in Swift.)
1
Making a simple physics system for a possible WordFoto update. 2000 disks, verlet integration, spatial hashing.
1
bitCycle retweeted
This guy is incredible. To be half the man he is would be amazing by anyone's standards.
We've just released Ehlol, a game of puzzling images and words. Download it via ehlol.com for more puzzles like this. Feedback appreciated!
Xcode 10.2.1 fixed some but clearly not all of the build time regression, we still have code that won't compile (too complex) with Xcode 10.2.1 but which did compile prior to 10.2 (and macOS 10.14.4). Seems like it might have something to do with operators and generics: SR-10461
So if the issue remains when I try with Xcode 10b3, it's probably something specific to my hardware?
1
Oh, that looks a lot more like what I would have expected. Any Idea what could be the problem? I will try downloading the Xcode 10 beta.
1





