News for hackers. Stuff that matters.
Re:Coding on iPad using self-hosted VSCode, Caddy, and code-... by jsheard on Wednesday September 04, 2024 @02:37PM (#41448998)
It's a sad state of affairs that the iPads are so incredibly powerful, with the exact same silicon as MacBooks, and yet to do real development work on one you have to reduce it to the worlds most expensive thin client connected to a real computer somewhere else.
Re:Coding on iPad using self-hosted VSCode, Caddy, and code-... by p4bl0 on Wednesday September 04, 2024 @02:54PM (#41449204)
Even Chromebooks, which are actually supposed to be thin clients and which are quite locked up compared to a "normal" laptop with a standard OS (Linux, Windows, macOS), are way more capable devices for development work (among other things, being able to offer an actual Linux environment [1]), while being far less expensive than an iPad.

[1] https://support.google.com/chromebook/answer/9145439

Re:Coding on iPad using self-hosted VSCode, Caddy, and code-... by jsheard on Wednesday September 04, 2024 @03:04PM (#41449357)
It got me wondering why they don't do something akin to Microsoft's WSL which lets you run a persistent Linux VM in the background, but of course that would loosen Apples grip over the software ecosystem by letting users run arbitrary code from outside of the App Store. Heaven forbid people start making local Linux apps which spawn a web UI accessible through Safari. That's also why they will probably never do an iPad "Pro Mode" which boots into full blown macOS.
Re:Coding on iPad using self-hosted VSCode, Caddy, and code-... by tonymet on Wednesday September 04, 2024 @03:07PM (#41449397)
it would be great to cmd-alt-9 on an Ipad and open up a virtual terminal that is running directly on darwin, allowing any shell or homebrew app. it would go a long way.
Re:Coding on iPad using self-hosted VSCode, Caddy, and code-... by transpute on Wednesday September 04, 2024 @03:49PM (#41449928)
Instead we have the hand-warming emulator iSH.
Re:Coding on iPad using self-hosted VSCode, Caddy, and code-... by thomasingalls on Wednesday September 04, 2024 @02:42PM (#41449055)
> thin client

I sometimes wonder if the ipad was made just for this pun to eventually become reality.

Re:Coding on iPad using self-hosted VSCode, Caddy, and code-... by redbell on Wednesday September 04, 2024 @02:54PM (#41449207)
Here's a submission on this topic that was trending on HN about a year ago with +500 comments: Buying an iPad Pro for coding was a mistake (https://news.ycombinator.com/item?id=36530607)
Re:Coding on iPad using self-hosted VSCode, Caddy, and code-... by bee_rider on Wednesday September 04, 2024 @03:18PM (#41449530)
I wonder… the reason iPads are limited like this, ostensibly, is that Apple doesn’t want us to run scripts on them, right?

But can a linter run locally? That would be nice I guess.

Also since so many languages target WASM nowadays, could an IDE at least compile to that, and then run some tests locally?

Re:Coding on iPad using self-hosted VSCode, Caddy, and code-... by transpute on Wednesday September 04, 2024 @05:15PM (#41450917)
iSH can run (slowly) shell/python scripts.
Re:Coding on iPad using self-hosted VSCode, Caddy, and code-... by coolius on Wednesday September 04, 2024 @03:00PM (#41449288)
Shameless plug but try my app CodeBrew, a 100% local Java IDE:

https://apps.apple.com/de/app/codebrew-ide-for-java/id647526...

Re:Coding on iPad using self-hosted VSCode, Caddy, and code-... by layer8 on Wednesday September 04, 2024 @02:49PM (#41449148)
Not to mention being the world’s thinnest thin client.
Re:Coding on iPad using self-hosted VSCode, Caddy, and code-... by radicality on Wednesday September 04, 2024 @05:35PM (#41451120)
The hardware is indeed powerful. The other day, I attempted playing a 8k30fps HEVC file (around 400Mb/s), and my new iPad Pro M4 has no issues with it, decodes and plays it well! And my MacBook M1 Max 64gb actually really struggles to play the file, often stutters and scrubbing in Quiclook is kinda unusable. So yeah also thinking whether the iPad Pro was a good purchase, because of how limited the software options are.
Re:Coding on iPad using self-hosted VSCode, Caddy, and code-... by kcplate on Wednesday September 04, 2024 @06:28PM (#41451535)
It’s a pain in the ass to use a hammer as a screwdriver despite both being tools made of steel.
Re:Coding on iPad using self-hosted VSCode, Caddy, and code-... by Gud on Thursday September 05, 2024 @01:46AM (#41453886)
Your analogy is flawed, because an iPad could absolutely be used as a development box if it wasn’t for artificial constraints.
Re:Coding on iPad using self-hosted VSCode, Caddy, and code-... by kcplate on Thursday September 05, 2024 @08:55AM (#41456178)
Hardly. The device by its very design and form factor was designed for information consumption as its main purpose. Everything that allows the device to be used for information creation today is an afterthought to the initial design and purpose and therefore the experience you are seeking will be handicapped by the initial design and purpose of the device.

If a hammer didn’t have the “artificial constraint” placed on it of missing a standard slot head or Phillips head driver (and hammer manufacturers can clearly install them if they chose to) it could be a more multi-use tool than just a hammer. Likewise, screwdriver manufacturers would only need to add a hard striking surface to their tools for them to be also used to drive nails too.

I had a multitool hammer/screwdriver combo once. It sucked as both a hammer and a screwdriver and I found myself always reaching for my actual hammer for driving nails, or screwdrivers for driving screws.

Re:Coding on iPad using self-hosted VSCode, Caddy, and code-... by Gud on Thursday September 05, 2024 @11:18AM (#41457442)
Yes, those are inherent constraints which makes your analogy flawed.

There is no reason(except greed) for why an iPad has to be locked down.

Re:Coding on iPad using self-hosted VSCode, Caddy, and code-... by kcplate on Thursday September 05, 2024 @11:52AM (#41457768)
But is the iPad actually locked down? There are developer tools available. If they don’t meet standard is there anything actually stopping developers from writing a better one?

Seems to me the big complaint is not that you can’t write code on it, but that it doesn’t run MacOS. But that brings me back to the original intent of the product—It’s form factor is designed for information consumption and only recently with the introduction of the M-chips on the device, it would have made a pretty shitty MacOS device in prior versions.

So recent tech has improved the screwdriver so that it could be used effectively as a hammer too, but I don’t think you can realistically say it was greed that caused Stanley tools to create both hammers and screwdrivers before the tech changed to combine them. They were two separate tools because they needed to be.

Re:Coding on iPad using self-hosted VSCode, Caddy, and code-... by wpm on Thursday September 05, 2024 @11:45PM (#41462704)
> If they don’t meet standard is there anything actually stopping developers from writing a better one?

Uh, the App Store guidelines?

>it doesn’t run MacOS

No, it doesn't, but they both run XNU and share a huge amount of their userspace. If someone was clamoring for AppKit on iPad, yeah, you'd be correct in saying that's a silly request, but macOS and iOS are for most intents and purposes the same, aside from the artificial limitations placed on the latter to protect App Store profits. 1-hour of battery life / Wh of battery capacity between the last iPad Pro with an M2 and the M2 Macbook Air are pretty close too, its not like the limitations are there solely to save battery life since macOS with is yucky icky energy hog background tasks and spoooOoOOOky applications that haven't had their code inspected by Apple and might be able to do maniacal things like read the filesystem don't tank the battery life that much after all. (52.6Wh in the MBA for 12 hours of browsing, vs 40.88Wh in the old M2 iPad Pro 13" for 10 hours). Of course these are very different kinds of devices with very different feature sets, but minus a touchscreen and OLED, plus a hardware attached keyboard and trackpad, what are the actual material differences, not vague market segmentation, between a Mac and an iPad?

If the iPad is only for content consumption, why does Apple sell one that stock is better than most of the Macs they sell? Why does Apple market and position the iPad Pro as a content creation device, why do they bother adding content creation features and multitasking improvements and so on to iPadOS, if it is not meant to be a content creation? If it is meant for content creation, why is it only the content that can be created in ways Apple deems allowed for the device you bought from them?

Re:Coding on iPad using self-hosted VSCode, Caddy, and code-... by kcplate on Friday September 06, 2024 @08:14AM (#41465452)
You are only arguing from the “now state” and comparing device capabilities that have only existed for about 18 months since the M series chips came out. iPads of 14 years ago, even pro models pre-M chip would not be reasonable devices for development or MacOS. Original intent was information consumption. The design and form factor speaks to this as the primary function of the device. Sure as tech has lead to more powerful hardware, even where it has added content creation capabilities, they are still focused on content creation where the form factor is appropriate and doesn’t get in the way.

The expectation that Apple should now consider the device and tune its software and OS to SWE is a pretty bold expectation. Frankly, most devs I know wouldn’t use the device for hardcore dev even if it ran MacOS. It would be useable for those few moments when you would not be behind a desk and need to code, emergency fixes and the like. Pretty sure Apple’s product team knows this and are not all that worried about that use case.