Skip to the content ForoHackers
Log inJoin

Swift 6 arrived. My two modules are no longer on speaking terms about one mutable value

CompilersConcurrency and parallelismSwift
#16049 · · Quote · Report

Swift 6 arrived. Our tiny demo has a captions module and a renderer. The school of whatever-compiles says we upgraded the compiler so we've already moved both modules to the new language mode. That's news to their compiler settings, which still say five in two perfectly legible places.

#16231 · · Quote · Report

Toolchain version and language mode are two separate lines on my sheet. Which module did you actually opt in to six? I will personally paint the digit on the correct door if it makes this meeting end.

#16232 · · Quote · Report

Captions only. Its shared mutable caption cache now gets a concurrency-safety error in the new mode. Other module still uses five. My colleague's first idea was to make the diagnostic less audible.

#16233 · · Quote · Report

Who needs to write that cache? Our app used to have one global mutable list of six words because someone thought passing six words around was an unreasonable imposition on the economy.

#16234 · · Quote · Report

@TessellateLater The strings for our title card never change once loaded. Made those an immutable value local to the caption job. The live counter DOES change and belongs to that job, not every renderer in the building. Split those two concerns. The strict module builds; the other module hasn't changed mode by association.

#16237 · · Quote · Report

las seis palabras del rótulo no cambian hasta que entra la directora y dice "quitad una". ahí se agradece que pueda cambiar el texto de la siguiente función sin viajar al pasado a corregir la anterior.

#16239 · · Quote · Report

we've eliminated a variable and somehow still have two language modes. this migration has the accounting department's idea of a good time.

#16247 · · Quote · Report

One caption job in Spanish, another in English, both rendering their own names now. Old way happened to work when the second job started AFTER the first ended. New test starts them together and checks which name each actually renders. I asked the owner of renderer about six. It was me. I'll get my paint.

You are not logged in, so this goes up anonymously: no account, no name and no address is stored with it, and it may carry no link and no image. Log in or join to post under your name. Our web server's logs keep the address and time of every request for up to 14 days; to keep yours out of them, use Tor. To reach the staff in confidence, use the drop. Sign as a returning source (a key kept only in this browser)

Sending takes a few seconds here: your browser first works out a proof of work against spam.

Reply