News for hackers. Stuff that matters.
Re:Swift Playgrounds 4 by PhilipVinc on Wednesday December 15, 2021 @05:01PM (#29572147)
So now we can program on the iPad, but only with Apple’s approved language, on its approved ide. Can’t a government go there and knock the wall down?
Re:Swift Playgrounds 4 by kmeisthax on Wednesday December 15, 2021 @05:29PM (#29572411)
There's actually a whole host of iPad apps that will give you programming environments for Python, JavaScript, and so on. iSH will give you a full x86 Linux box and a-Shell supports compiling and running WASM/WASI binaries in a simulated shell environment. They've been around for some time, too; Apple really does not give these things the fanfare they deserve.

The main wall that I can see needing to be knocked down would actually be technical, not political. Something like OAMA[0] absolutely would not fix the lack of JIT entitlements or virtualization support accessible to third-party developers in iPadOS. I would not be surprised if Swift Playgrounds is either relying on lots of Apple-only entitlements or compromising on performance[1]. If we had proper virtualization, then we wouldn't need iSH; we could load up a real Linux distro and run a LAMP stack or Docker containers on iPads.

[0] Open App Markets Act; similar provisions were in the EU Digital Markets Act at one point

[1] The screenshots I'm seeing suggest that, at a minimum, your code runs in the same sandbox as the editor. Which means Apple hasn't added any sort of private API that would let Swift Playgrounds properly provision your app. Without a JIT entitlement, the editor would also need to include an AArch64 emulator inside itself in order to provide the App Preview feature. These sorts of things won't matter to casual programming use-cases but would kill a lot of the benefits of an on-device development environment.

Re:Swift Playgrounds 4 by saagarjha on Wednesday December 15, 2021 @07:49PM (#29573514)
I haven’t looked closely at the new implementation in Swift Playgrounds yet but historically it’s compiled your app in debug mode to native ARM64 code, then run it directly using a private entitlement.
Re:Swift Playgrounds 4 by selimnairb on Wednesday December 15, 2021 @06:53PM (#29573080)
Would love to see a JetBrains IDE on iPad. Not holding my breath though.
Re:Swift Playgrounds 4 by zepto on Wednesday December 15, 2021 @05:33PM (#29572445)
Why not just buy a tablet from someone else if you don’t want a managed environment?

Apple is not the only tablet maker.

Re:Swift Playgrounds 4 by dangoor on Wednesday December 15, 2021 @05:12PM (#29572239)
https://codea.io and others have been around longer than Swift Playgrounds.
Re:Swift Playgrounds 4 by boxed on Thursday December 16, 2021 @01:20PM (#29581720)
Pythonista is a lot better and more powerful than Swift playgrounds. It's also available on iPhone. So you're just flat out wrong.
Re:Swift Playgrounds 4 by mattcwilson on Wednesday December 15, 2021 @05:04PM (#29572182)
Swift Playgrounds has been around for quite some time.

I’d also hesitate to think of it as a way to “program on an iPad.” It’s a slimmed down IDE + visualization pane intended to be an educational environment for people wanting to learn programming fundamentals, Swift specifically, or how to program one of the robots/drones/programmable devices that have a companion lessonbook.

Re:Swift Playgrounds 4 by zepto on Wednesday December 15, 2021 @05:33PM (#29572451)
That’s what it was before this update.

Now it is a full development tool that lets you release commercial apps.

Re:Swift Playgrounds 4 by wly_cdgr on Wednesday December 15, 2021 @05:39PM (#29572494)
On what grounds? It's their platform
Re:Swift Playgrounds 4 by Koshkin on Wednesday December 15, 2021 @05:02PM (#29572159)
Apple has a natural monopoly on Apple's products.