Apple Swift Playgrounds admit robots

Gated community sees life beyond its borders


Taking another tentative step toward openness, Apple says it will tweak its Swift Playgrounds educational coding app to interface with programmable toys, drones, and musical instruments.

The Swift Playgrounds 1.5 update is scheduled to drop on Monday, June 5, in Apple's App Store. That happens to be the first day of the Apple Worldwide Developers Conference, where Swift will figure prominently.

According to Craig Federighi, Apple's senior veep of software engineering, more than a million people around the world have explored Swift programming through the Swift Playgrounds app. He contends that the ability to create remote control code for devices has significant educational value.

It's almost as if he's observed the possibilities that have been playing out for years between devices like the Raspberry Pi and programming languages like Python and JavaScript.

Swift Playgrounds will be able to connect to Bluetooth-enabled robots, such as Lego Mindstorms Education EV3, Sphero SPRK+, several Parrot drones, Ubtech's Jimu, Wonder Workshop's Dash, and Skoogmusic's Skoog instrument.

Apple needs to seed the next generation of Swift developers because it has been losing to Google in schools. It saw its iOS US K-12 market share drop from 19 per cent in 2015 to 14 per cent in 2016, according to Futuresource Consulting. Its macOS educational market share meanwhile slipped from 6 per cent to 5 per cent. At the same time, Google's Chrome OS saw its share of the US education market grow from 50 per cent to 58 per cent.

Since its introduction in 2014, Swift has risen faster in popularity than any other programming language since Redmonk, a consultancy, began tracking such data. But its meteoric rise has slowed somewhat.

"While the language appears to be entering something of a trough of disillusionment from a market perception standpoint, with major hype giving way to skepticism in many quarters, its statistical performance according to the observable metrics we track remains strong," Redmonk co-founder Stephen O'Grady wrote in March.

Part of the pause may be related to Swift's unsettled foundation. Swift 4, expected this fall, is scheduled to include breaking changes, which keeps Objective-C in the picture for libraries and frameworks. And Google's recent adoption of Kotlin as a first-class language could strengthen the headwinds.

Kotlin provides a modern, approachable syntax like Swift, but because it can run atop the Java Virtual Machine or be compiled into JavaScript, it already has an installed base, in the form of Java/Android developers.

Swift's fans may be hoping for further lift from corporate backers outside Apple, like IBM. But IBM's extensive support for Java suggests it wouldn't mind if Kotlin ends up outshining Swift.

Opening Swift Playgrounds up to outside devices makes sense, but Apple should look beyond raising the profile of its newfound favorite programming language. The company's caution with regard to interoperability – exemplified by its HomeKit strategy – leaves it looking like a laggard. ®

Similar topics


Other stories you might like

  • Workers win vote to form first-ever US Apple Store union
    Results set to be ratified by labor board by end of the week

    Workers at an Apple Store in Towson, Maryland have voted to form a union, making them the first of the iGiant's retail staff to do so in the United States.

    Out of 110 eligible voters, 65 employees voted in support of unionization versus 33 who voted against it. The organizing committee, known as the Coalition of Organized Retail Employees (CORE), has now filed to certify the results with America's National Labor Relations Board. Members joining this first-ever US Apple Store union will be represented by the International Association of Machinists and Aerospace Workers (IAM).

    "I applaud the courage displayed by CORE members at the Apple store in Towson for achieving this historic victory," IAM's international president Robert Martinez Jr said in a statement on Saturday. "They made a huge sacrifice for thousands of Apple employees across the nation who had all eyes on this election."

    Continue reading
  • Apple’s M2 chip isn’t a slam dunk, but it does point to the future
    The chip’s GPU and neural engine could overshadow Apple’s concession on CPU performance

    Analysis For all the pomp and circumstance surrounding Apple's move to homegrown silicon for Macs, the tech giant has admitted that the new M2 chip isn't quite the slam dunk that its predecessor was when compared to the latest from Apple's former CPU supplier, Intel.

    During its WWDC 2022 keynote Monday, Apple focused its high-level sales pitch for the M2 on claims that the chip is much more power efficient than Intel's latest laptop CPUs. But while doing so, the iPhone maker admitted that Intel has it beat, at least for now, when it comes to CPU performance.

    Apple laid this out clearly during the presentation when Johny Srouji, Apple's senior vice president of hardware technologies, said the M2's eight-core CPU will provide 87 percent of the peak performance of Intel's 12-core Core i7-1260P while using just a quarter of the rival chip's power.

    Continue reading
  • Apple may have to cough up $1bn to Brits in latest iPhone Batterygate claim
    Lawsuit took its time, just like your older iOS handset

    Another day, another legal claim against Apple for deliberately throttling the performance of its iPhones to save battery power.

    This latest case was brought by Justin Gutmann, who has asked the UK's Competition Appeal Tribunal (CAT) to approve a collective action that could allow as many as 25 million Brits to claim compensation from the American technology giant. He claims the iGiant secretly degraded their smartphones' performance to make the battery power last longer.

    Apple may therefore have to cough up an eye-popping £768 million ($927 million), Gutmann's lawyers estimated, Bloomberg first reported this week.

    Continue reading

Biting the hand that feeds IT © 1998–2022