Ben Cohen's Avatar

Ben Cohen

@airspeedswift.bsky.social

thwart leader

1,186 Followers  |  176 Following  |  99 Posts  |  Joined: 08.02.2024  |  2.0846

Latest posts by airspeedswift.bsky.social on Bluesky

Day in Trump's economy:

> Wake up, check the news
> BLS: "10 billion new jobs created"
> Check my phone to see what today's tariff rates are.
> Norway up 20%, Cambodia down 5%
> Go to my iphone assembly line job where I make $7.25/hour
> Spend next 4 hours putting chips inside phones
> Take 15 minute break
> Check my shitfartpisscoin holdings
> Rugged
> Watch the FOMC meeting
> FOMC is just Trump
> Trump goes on stage and announces he's raising rates from -10% to -5%
> Also announces date of Jay Powell's public execution
> AI manager scolds me for taking 16 minutes on my 15 minute break
> It's only been 12 minutes
> Call employee help line to complain
> It's also AI
> Go home frustrated
> Complain to my girlfriend about my job
> She's also AI

Day in Trump's economy: > Wake up, check the news > BLS: "10 billion new jobs created" > Check my phone to see what today's tariff rates are. > Norway up 20%, Cambodia down 5% > Go to my iphone assembly line job where I make $7.25/hour > Spend next 4 hours putting chips inside phones > Take 15 minute break > Check my shitfartpisscoin holdings > Rugged > Watch the FOMC meeting > FOMC is just Trump > Trump goes on stage and announces he's raising rates from -10% to -5% > Also announces date of Jay Powell's public execution > AI manager scolds me for taking 16 minutes on my 15 minute break > It's only been 12 minutes > Call employee help line to complain > It's also AI > Go home frustrated > Complain to my girlfriend about my job > She's also AI

01.08.2025 19:32 β€” πŸ‘ 915    πŸ” 234    πŸ’¬ 7    πŸ“Œ 6
A photo of a sign for a restaurant.  Because it has been partially obscured, it reads β€œnazi”.

A photo of a sign for a restaurant. Because it has been partially obscured, it reads β€œnazi”.

They really needed to think through this sign placement more carefully.

28.07.2025 18:49 β€” πŸ‘ 3    πŸ” 0    πŸ’¬ 0    πŸ“Œ 1
A screenshot of a NYT story saying: The 27-nation bloc also agreed to increase its investment in the United States by more than $600 billion above current levels, Mr. Trump said, adding that the European Union would

A screenshot of a NYT story saying: The 27-nation bloc also agreed to increase its investment in the United States by more than $600 billion above current levels, Mr. Trump said, adding that the European Union would

The EU DOESNT INVEST IN THINGS WHAT ARE YOU TALKING ABOUT

28.07.2025 01:49 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0
Preview
Compiler Tools Engineer - Jobs - Careers at Apple Apply for a Compiler Tools Engineer job at Apple. Read about the role and find out if it’s right for you.

My team at Apple is currently hiring for a role that focuses on compiler tools and infrastructure. If you’re interested in this opportunity, please take a look at the job posting here: jobs.apple.com/en-us/detail... #llvm #swiftlang

23.07.2025 17:59 β€” πŸ‘ 30    πŸ” 19    πŸ’¬ 1    πŸ“Œ 0

When people ask me about my job:

You know how sometimes you get irrationally furious with inanimate objects. Like when a cable gets tangled and you’re in a hurry. But the cable doesn’t have free will, it was you that tangled it. But still, you’re furious with the cable.

It’s like that.

23.06.2025 01:22 β€” πŸ‘ 8    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0

I feel like this is better if you read the image alt text first.

21.06.2025 00:17 β€” πŸ‘ 8    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0
Preview
Swift.org Swift is a general-purpose programming language built using a modern approach to safety, performance, and software design patterns.

Swift SDKs for WebAssembly are now available on swift.org for 6.2 and `main` development snapshots!

Huge announcement for me personally, this is something I could only dream of when almost 7 years ago I joined a few volunteers maintaining a patchset for Wasm support
forums.swift.org/t/swift-sdks...

11.06.2025 09:44 β€” πŸ‘ 47    πŸ” 15    πŸ’¬ 5    πŸ“Œ 0
Preview
Meet Containerization - WWDC25 - Videos - Apple Developer Meet Containerization, an open source project written in Swift to create and run Linux containers on your Mac. Learn how Containerization...

Learn more from @egernst.bsky.social in Meet Containerization available later today

developer.apple.com/videos/play/...

09.06.2025 21:14 β€” πŸ‘ 7    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0
Preview
GitHub - apple/containerization: Containerization is a Swift package for running Linux containers on macOS. Containerization is a Swift package for running Linux containers on macOS. - apple/containerization

Open source #swift code for Containerization, a way to run Linux containers on macOS, is now live at github.com/apple/contai...

09.06.2025 21:08 β€” πŸ‘ 38    πŸ” 10    πŸ’¬ 2    πŸ“Œ 0
Original post on mastodon.social

β€œContainerization Framework

The Containerization framework enables developers to create, download, or run Linux container images directly on Mac. It’s built on an open-source framework optimized for Apple silicon and provides secure isolation between container images.”

🀯🀀

#wwdc25 […]

09.06.2025 18:45 β€” πŸ‘ 12    πŸ” 17    πŸ’¬ 4    πŸ“Œ 0
Preview
Labs - WWDC25 - Apple Developer

Register here for the online group Swift lab tomorrow with me, @hborla.bsky.social and @simanerush.bsky.social

developer.apple.com/wwdc25/labs/...

#swift #swiftlang #wwdc

09.06.2025 19:39 β€” πŸ‘ 5    πŸ” 2    πŸ’¬ 0    πŸ“Œ 0
WWDC25 - Videos - Apple Developer

...and @kto.so takes you beyond the world of C interop with Explore Swift and Java interoperability

developer.apple.com/videos/play/...

#swift #swiftlang #wwdc

and #java #javalang too I suppose!

09.06.2025 19:38 β€” πŸ‘ 9    πŸ” 4    πŸ’¬ 2    πŸ“Œ 0
WWDC25 - Videos - Apple Developer

Hear about new ways to interoperate between languages without fear in Safely mix C, C++, and Swift

developer.apple.com/videos/play/...

#swift #swiftlang #wwdc

09.06.2025 19:37 β€” πŸ‘ 4    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0
WWDC25 - Videos - Apple Developer

Learn how to optimize your Swift code with new language ehnancements from @nnnnnnnn.bsky.social in Improve memory usage and performance with Swift

developer.apple.com/videos/play/...

#swift #swiftlang #wwdc

09.06.2025 19:37 β€” πŸ‘ 5    πŸ” 1    πŸ’¬ 1    πŸ“Œ 0
WWDC25 - Videos - Apple Developer

...and go further into the language's concurrency model in Embracing Swift Concurrency

developer.apple.com/videos/play/...

#swift #swiftlang #wwdc

09.06.2025 19:36 β€” πŸ‘ 3    πŸ” 1    πŸ’¬ 1    πŸ“Œ 0
WWDC25 - Videos - Apple Developer

Then hear how to easily integrate Swift Concurrency into your app with new Swift 6.2 features from @simanerush.bsky.social

developer.apple.com/videos/play/...

#swift #swiftlang #wwdc

09.06.2025 19:36 β€” πŸ‘ 5    πŸ” 2    πŸ’¬ 1    πŸ“Œ 0

Lots of great Swift content coming soon, starting with What's New in Swift with @hborla.bsky.social and @tshortli.bsky.social

developer.apple.com/videos/play/...

#swift #swiftlang #wwdc

09.06.2025 19:35 β€” πŸ‘ 27    πŸ” 12    πŸ’¬ 1    πŸ“Œ 0
The new Swift.org landing page

The new Swift.org landing page

The Swift.org redesign we've been working on just landed!

alexandersandberg.com/notes/#10

04.06.2025 18:39 β€” πŸ‘ 42    πŸ” 6    πŸ’¬ 4    πŸ“Œ 2
In comparison with the previous Java service, the updated backend delivers a 40% increase in performance, along with improved scalability, security, and availability.

In comparison with the previous Java service, the updated backend delivers a 40% increase in performance, along with improved scalability, security, and availability.

The story behind the Apple Password Monitoring service, handling multiple billions of requests per day from devices all over the world, which was recently rewritten in Swift: www.swift.org/blog/swift-a...

03.06.2025 00:47 β€” πŸ‘ 94    πŸ” 26    πŸ’¬ 1    πŸ“Œ 6

The first rule of grey area club is it isn't clear if you're allowed to talk about grey area club.

23.05.2025 18:20 β€” πŸ‘ 2    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0
Preview
why do we even have that lever written on a screen ALT: why do we even have that lever written on a screen
08.05.2025 13:53 β€” πŸ‘ 2    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0

I think this quote is mostly wrong and in general an unfortunate exemplar or the problem I’m talking about.

27.04.2025 16:29 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0
Post image

ah, but at least they're left neatly upright, unlike these shotgunned beers left behind by our local American youths

27.04.2025 03:14 β€” πŸ‘ 4    πŸ” 1    πŸ’¬ 1    πŸ“Œ 0

Original paper here, very readable and worth your time: pic.plover.com/knuth-GOTO.pdf

One thing not in there is often that 3% causing a problem is not where the hot path is supposed to be (you have a performance bug). But advice is the same. Find where your program is taking time, then fix it.

26.04.2025 20:00 β€” πŸ‘ 3    πŸ” 1    πŸ’¬ 2    πŸ“Œ 0

The sooner you know where that code is the better, because that can guide to to making sure that’s fast.

This also help you catch problems before you've written so much code that fixing it is going to take ages.

26.04.2025 19:59 β€” πŸ‘ 4    πŸ” 0    πŸ’¬ 1    πŸ“Œ 1
A screenshot of an old computer science paper. It has been OCRd but is clearly a high quality scan of a printout.

There is no doubt that the grail of effi-
ciency leads to abuse. Programmers waste
enormous amounts of time thinking about,
or worrying about, the speed of noncritical
parts of their programs, and these attempts
at efficieney actually have a strong negative
impact when debugging and maintenance are
considered. We should forget about small
efficiencies, say about 97% of the time: pre-
mature optimization is the root of all evil.
Yet we should not pass up our opportuni-
ties in that critical 3%. A good programmer
will not be lulled into complacency by such
reasoning, he will be wise to look carefully
at the critical code; but only after that code
has been identified. It is often a mistake to
make a priori judgments about what parts
of a program are really critical, since the
universal experience of programmers who
have been using measurement tools has been
that their intuitive guesses fail. After work-
ing with such tools for seven years, I've be-
come convinced that all compilers written
from now on should be designed to provide
all programmers with feedback indicating
what parts of their programs are costing
the most; indeed, this feedback should be
supplied automatically unless it has been
specifically turned off.

A screenshot of an old computer science paper. It has been OCRd but is clearly a high quality scan of a printout. There is no doubt that the grail of effi- ciency leads to abuse. Programmers waste enormous amounts of time thinking about, or worrying about, the speed of noncritical parts of their programs, and these attempts at efficieney actually have a strong negative impact when debugging and maintenance are considered. We should forget about small efficiencies, say about 97% of the time: pre- mature optimization is the root of all evil. Yet we should not pass up our opportuni- ties in that critical 3%. A good programmer will not be lulled into complacency by such reasoning, he will be wise to look carefully at the critical code; but only after that code has been identified. It is often a mistake to make a priori judgments about what parts of a program are really critical, since the universal experience of programmers who have been using measurement tools has been that their intuitive guesses fail. After work- ing with such tools for seven years, I've be- come convinced that all compilers written from now on should be designed to provide all programmers with feedback indicating what parts of their programs are costing the most; indeed, this feedback should be supplied automatically unless it has been specifically turned off.

Here's the quote in context. It's good advice! But it's clear about how you absolutely need to spend time on that 3%.

Key is to get your project into a state where you can continuously identify the 3% whenever you add new code.

26.04.2025 19:58 β€” πŸ‘ 5    πŸ” 1    πŸ’¬ 1    πŸ“Œ 0

misunderstanding the "premature optimization is the root of all evil" quote to mean "wait until you're done before thinking about performance” is a huge problem for the programming profession

26.04.2025 19:56 β€” πŸ‘ 28    πŸ” 5    πŸ’¬ 1    πŸ“Œ 0

you missed the footnote that all statues need to have been officers in the confederacy

25.04.2025 12:31 β€” πŸ‘ 2    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

WHY IS BESSENT DOING CLOSED-DOOR MEETINGS WITH INVESTORS?

22.04.2025 16:06 β€” πŸ‘ 140    πŸ” 22    πŸ’¬ 16    πŸ“Œ 1
Preview
#Playground macro and "swift play" idea for code exploration in Swift Hi everyone, I’d like to share an idea to help provide a new way of exploring, exercising and playing with code in Swift. Inspired by the Playgrounds features in Xcode and the Swift Playground app – ...

What if playgrounds, but on the command line… an idea for a "swift play" command from @chrismiles@mastodon.social

forums.swift.org/t/playground...

22.04.2025 02:18 β€” πŸ‘ 9    πŸ” 1    πŸ’¬ 0    πŸ“Œ 0

@airspeedswift is following 20 prominent accounts