NHacker Next
login
▲iPhone DevOpsclearsky.dev
119 points by ustad 8 hours ago | 96 comments
Loading comments...
nunez 4 hours ago [-]
I tried making my iPad my computer three times. Despite its awesome specs, these remain a huge pain in the rear for actual dev work.

iPadOS and iPhoneOS will remain useless for actual dev work until they unlock hardware virtualization in Virtualization.framework.

Apps on the iPhone and iPad will remain sandboxed, and root isn't possible, so being able to run a VM that _can_ run as root is the next best thing.

I believe this framework on mobile uses software emulation, which is horribly slow and guzzles battery.

Well, this and third-party browser engine support. Mobile Safari is absolutely horrible. This doesn't become apparent until you're using your iPad full time. Death by a trillion cuts. It also burns battery when you start using it with desktop websites.

Until then, the experience is basically you using your iDevice as a dumb terminal (don't mean that as a dig against Termius; great app given its limitations) to some server somewhere where actual work is done. Rendering issues galore if you use vim with color schemes.

prmoustache 2 hours ago [-]
Why do you need to be root? I am working every day on a VDI and I am not root of the machine nor do I have virt capabilities enabled
terhechte 3 hours ago [-]
I've by now come to the belief that there's someone high ranking in Apple Org responsible for iPad who deeply despises developers. Every action done over the past years has made development on the iPad worse, not better. Such as spending extra legal energy to make sure the recently-introduced emulator support on iOS does not cover running any kind of computer VM that could allow software development. At the same time, Android ships an official terminal that can run a Debian VM and X11 apps.
mathiaspoint 12 minutes ago [-]
They despise users becoming developers. Apple's entire model depends on these being separate groups of people (as opposed to GNU/Linux OSes where they're assumed to be exactly the same.)

Keeping development tools away from users gives Apple a substantial amount of power over them that they can rent out to approved software development organizations.

m-s-y 2 hours ago [-]
iOS virtualization is already a mature thing: https://apps.apple.com/us/app/utm-se-retro-pc-emulator/id156...

Dev site: https://getutm.app/

saurik 2 hours ago [-]
The term "virtualization" is being used in this context to mean using features of the hardware to build virtual machines that run at native performance on computational tasks. In contrast, the app you linked to is just relying on JIT compilation to emulate the guest CPUs.
mxey 58 minutes ago [-]
It is not even relying on JIT, because that’s not allowed unless you are a browser engine and in the EU.
cosmic_cheese 3 hours ago [-]
I wouldn’t expect third party browser engines to be any better on the efficiency front. Under macOS both Chrome derivatives and Firefox are worse. I think the real problem is that for most web apps, performance and efficiency sit at the bottom of the pile in terms of priorities. Nobody cares if they keep your CPU from idling, occupy well more than a reasonable amount if RAM, and guzzle battery, as long as it technically functions it’s good enough.
nromiun 6 hours ago [-]
Programming on my phone (with Termux) is the only reason I am still using an Android phone. That and a real filesystem. I actually use so many terminal tools that I can't imagine migrating to a bunch of GUI apps. Like gopass for passwords management, git for syncing my notes, nvim for writing etc.

With Android 15 you even get a full blown Linux VM running on KVM.

I was actually tempted to switch when AAA games like AC got ported to iOS, but then I remembered I love programming more than gaming.

jl6 6 hours ago [-]
My mobile OS dream has always been to have a phone that I can plug into a docking cradle (or maybe just a USB-C cable these days) to connect it to a full size monitor, keyboard and mouse, and then use it as a regular PC, and then unplug it and have the same “data state” available on the mobile OS (albeit perhaps with different apps, reflecting the different input methods and screen size).

Is this any closer to becoming reality with modern Android?

thesuitonym 3 hours ago [-]
I recall around 2019 or so plugging an Android phone into a Dell USB C dock and it just worked. Connected to the monitor, USB keyboard and mouse, and even the ethernet port.

The only problems were that the version of Android I was running did not have windowing, so every app was full screen, and it could only drive one monitor. I guess some of the apps were also goofy on a widescreen monitor, but that's not really Android's fault.

It felt like the dream was almost there, but as time went on it was also obvious that nobody was terribly interested in making that dream a reality.

TowerTall 6 hours ago [-]
It was a reality back when Windows Phone was a thing.

https://en.wikipedia.org/wiki/Windows_Continuum

guappa 4 hours ago [-]
Those things were incredibly slow.
stackskipton 3 hours ago [-]
I had one and slowness was hardware related as phone would heat up. Modern iPhone or Android could easily power 4K display for most productivity work.
nromiun 6 hours ago [-]
Yes, this is possible with Samsung Dex.

However, when I sit in front of a big screen it is just easier to connect a "real" PC to it. Syncing data between my desktop and phones are pretty fast anyway.

junon 6 hours ago [-]
A friend of mine has been doing that for several years now on his phone. He does it since he's so incredibly mobile for work.

Not sure which model though. So yes, somewhere, somehow this is possible.

kreddor 5 hours ago [-]
It's basically possible with any device that supports DP Alt Mode? Any remaining issues are usually software (lack of proper desktop environment etc) but there are ways around that with Android. Samsung has DeX.
fsflover 5 hours ago [-]
There are very few devices that actually run a desktop OS, which allows to run any ordinary desktop apps.
Cloudef 5 hours ago [-]
I thought android can sort of do this
urbandw311er 4 hours ago [-]
It can — and all the more so since most recent update which adds more features to desktop mode. iPadOS 26 is also prioritising increased convergence with enhanced windowing support. Definitely been a ground shift recently.
fsflover 5 hours ago [-]
With increasingly more obstacles with time and no full ownership of the device.
msgodel 5 hours ago [-]
I prefer a UMPC with an LTE card and "AR" glasses. It's plug and play, works now with no fuss from the manufacturer, it's just normal Linux.
figers 35 minutes ago [-]
which UMPC do you use for this?

Which AR glasses are good enough in screen quality for coding?

Do you wear the AR glasses when you're out and about like a coffee shop?

fsflover 5 hours ago [-]
> to have a phone that I can plug into a docking cradle (or maybe just a USB-C cable these days) to connect it to a full size monitor, keyboard and mouse, and then use it as a regular PC

This phone exists: https://puri.sm/products/librem-5, and it's my daily driver.

Xss3 4 hours ago [-]
Can we trust that this isnt a law enforcement or intelligence agency honeypot like previous such devices have been?
fsflover 4 hours ago [-]
Which previous devices? Can you provide some links?

Librem 5 has open schematics [0] and runs an FSF-endorsed distro [1]. What else do you need for the verification [2]? Otherwise Linux could also be a honeypot, right?

[0] https://source.puri.sm/Librem5/l5-schematic

[1] https://news.ycombinator.com/item?id=25504641

[2] https://puri.sm/posts/hidden-operating-systems-in-chips-vs-s...

VoidWhisperer 3 hours ago [-]
I think they might be referring to ANOM which was an FBI honeypot for criminals seeking encrypted communication [0]. However, I'm not sure where they are drawing a parallel there beyond librem not being a 'mainstream' phone manufacturer.

[0]: https://en.m.wikipedia.org/wiki/Operation_Trojan_Shield

bitexploder 5 hours ago [-]
Aren’t laptops a little more ergonomic and flexible to hack on? I am curious what environments one ends up in where a phone is the tool of choice for writing code and such.
kreddor 5 hours ago [-]
For me personally, it's just the convenience of always having my phone in my pocket. Sometimes when out and about and I have a bit of free time, but haven't brought my laptop, it's nice to be able to just pick up my phone and hack for a bit. I wouldn't do full blown project on it though.

I couple of years back, I really liked replit for having probably the best integrated IDE on a phone. Everything was so smooth and well thought out.

nromiun 5 hours ago [-]
Some places are too crowded for even a small laptop. Also, I have seen so many people saying wish I could do that programming thing but I am on my phone right now. Termux allows me to do all of that.
rs186 4 hours ago [-]
> With Android 15 you even get a full blown Linux VM running on KVM.

Is there anything more than a proof of principle that people (aka anyone who owns an Android 15 device) can try out?

I didn't find any instructions for actually doing that.

nromiun 4 hours ago [-]
It is very easy:

https://deepakness.com/blog/android-linux-terminal/

Basically just go to developer options and enable Linux development environment. A Terminal app will be installed.

You just need a non-Snapdragon Android phone. Because Snapdragon uses a different hypervisor than other vendors.

rs186 2 hours ago [-]
Didn't find the "Linux development environment" option. I guess the article is based on a Pixel phone, and not all Android 15 ROMs are equal.
nromiun 1 hours ago [-]
Yes, not all ROMs support it in Android 15. But Android 16 is supposed to enable it in every phone.
curt15 5 hours ago [-]
Do you bring a bluetooth keyboard with you or program with two thumbs?
figers 26 minutes ago [-]
Microsoft Bluetooth folding keyboard is great, fits in my back pocket.
nromiun 5 hours ago [-]
I just do it with one finger. People are still shocked at this but remember people do a lot of texting with their thumbs too.
Xss3 4 hours ago [-]
I don't understand the point youre trying to make with tge second sentence...using a single finger is far more awkward than both thumbs?
nromiun 4 hours ago [-]
My point is that people do a lot of typing on their touchscreen, with one or two thumbs. Just like most regular people don't need a bluetooth keyboard despite doing a lot of texting.

Also, using two thumbs can be more awkward if you have big hands.

swah 4 hours ago [-]
Why not both?
nromiun 3 hours ago [-]
You mean using both Android and iPhone at the same time? That just adds another device you have to maintain and charge regularly. Not to mention it is not as portable as only one phone. You also can't use one SIM in two phones. It is just awkward overall.
znpy 6 hours ago [-]
> With Android 15 you even get a full blown Linux VM running on KVM.

With Apple discontinuing the small iPhone se and Android being able to run on folding phones that unfold to have an 8" display... Spending money on an Android phone is interesting again.

antupis 5 hours ago [-]
Also Gemini and other AI offering is running circles around what Apple is offering.
wiseowise 5 hours ago [-]
Apple doesn’t offer anything. And Gemini is available on iOS.
rikafurude21 6 hours ago [-]
Thank you for giving me a reason to switch away from iPhones.
richmans 5 hours ago [-]
Author here. Awesome that this post got boosted by my latest post. As i wrote in an earlier post, my reason for wanting to develop on my phone is that i became a dad, and my kids did not want to sleep in a bed, so i spent a lot of time sitting in a rocking chair with trying to get them to sleep. One arm is needed for child support. One arm left to do development…
corobo 1 hours ago [-]
Something that might be worth a look at for anyone in this situation is the Twiddler, it's a one handed mouse and keyboard. Connects via USB and/or Bluetooth

I know of it via a streamer who uses it to control OBS, but this is more its native use case haha

https://www.mytwiddler.com/

mystifyingpoi 5 hours ago [-]
I just replied to someone else about this. I had exactly the same challenge with my first newborn. Simply sitting in a chair for hours is really mentally taxing and a huge waste of time. Good for you, that you've found something that doesn't get in a way of helping your child to fall asleep.
ivanmontillam 4 hours ago [-]
> Simply sitting in a chair for hours is really mentally taxing and a huge waste of time.

How do people that rawdog international flights do it? No phone, no books, no music, maybe just the flight screen with the little aeroplane over the map.

You could just let your thoughts wander. That's a form of meditation, letting the mind unravel on its own.

I wish I did it more, actually.

organsnyder 3 hours ago [-]
I remember going on family road trips growing up, and my only options for entertainment were reading or looking out the window. We did a road trip a few weeks ago, and my kids were beside themselves if they had to go without some form of interactive entertainment for more than a few minutes.

Of course, I'm sure I was often annoying as hell during long car rides when I was a kid. And the luxury of handing kids a magic-zone-out-device is a lifesaver. But I do wonder if I'm shortchanging my kids by not forcing them to be bored more often.

ivanmontillam 9 minutes ago [-]
The ability to be "bored" is an advantage today. IMHO, it develops patience.
royletron 4 hours ago [-]
Baby sling and a standing desk! Get's a little uncomfy in the heat, but I could pretty much do a whole workday - with a couple of feeding breaks, and milk for the baby of course ;).
eadmund 6 hours ago [-]
> Offline folders

> This is like rsync for your phone. In fact I would not be surprised if this is implemented using rsync. Once you configure an offline folder, it will two-way sync that folder while you use the app. The kicker is: on your phone you can now open that folder in another app (like an editor) and make changes. When you switch back to the shellfish app, the changes are uploaded almost instantly.

One can get this killer feature for free with Android and Syncthing. It’s definitely pretty nice!

And of course one can also run Emacs and other free (as in speech or beer) text editors on Android.

IIRC there are a couple of ways to get a full Linux command line environment as well.

I ended up moving away from it just because ‘typing’ with my thumb is painful.

misterdata 5 hours ago [-]
For iOS: https://github.com/pixelspark/sushitrain
figers 14 minutes ago [-]
I just remote desktop into a full Windows computer in the cloud to do my C# development in Visual Studio Code.

Works from my iPhone, iPad with Magic Keyboard or Huawei Mate XT depending on what I'm out and about with for the day.

Folding bluetooth keyboard and bluetooth mouse

hnlmorg 7 hours ago [-]
I’ve explored this idea of portable computing using a mobile form factor for years too. So long that the first devices I tried were PDAs with compact-flash micro drives.

I actually preferred those devices for development work because the stylus is a much better input device than fat fingers when it comes to precision input. However you then lose the one-handed feature that the author is keen on.

These days, MacBook Pros have such long battery lives that I couldn’t imagine wanting to use a phone-form-factor for any serious work. But maybe the new style phones bendable screens that flip open like a book, might tempt me back to using a phone for development work again. Unfortunately such devices are currently Android-only at present.

pjmlp 6 hours ago [-]
I keep telling that one scenario I actually would embrace AI glady, is fast enough reckognintion so that I can use a digital pen across all mobile/tablet apps, I rather use that than carry around a 2-1 or detachable keyboard.

On Apple devices it is kind of ok, Android outside Samsung is still pretty much hit-and-miss.

Likewise I don't want AI chat boxes, I want to speak with my computer, in my native language, again still not there yet.

alwillis 5 hours ago [-]
Wispr Flow is shockingly good at dictation; I use the free version on macOS [1].

[1]: https://wisprflow.ai/use-cases

pjmlp 5 hours ago [-]
Thanks.
teekert 7 hours ago [-]
I've also thought about it a lot, but I just need that big screen.

That does not rule out having your phone as your primary development device of course. I was already pleasantly surprised that when I tried to charge my iPad with the USB-C dangling of my ultrawide, the screen came to life! Sadly with the iPad's own screen ratio. My screen-attached wireless keyboard and mouse did work though!

I still dream of having normal Linux (or GrapheneOS, or PostMarketOS) on something like a Fairphone and being able to plug it in USB-C and just work (I just need a terminal, perhaps an editor, and a browser of course). Ubuntu Phone came so close :'( Maybe it becomes workable on the FairPhone 6... (actually, it seems like it is working? Can it do the desktop thing? It does say "Wired External monitor :check:")

Or you know, at least a Padfone [0] (just kidding, I'm just always looking for an excuse to share this masterpiece of a video).

[0] https://www.youtube.com/watch?v=Z2ANnpHnUrc

danieldk 6 hours ago [-]
I think Fairphone 6 does not have DP-Alt and only USB 2 data transfer, so there is no way to drive a hi-res screen.

Google Pixel is supposed to ship a more complete desktop in Android 16 QPR1. Also has a Linux VM.

Of course, Samsung has had a pretty complete desktop on phones that support DeX for a while now.

marci 3 hours ago [-]
FP 5 has DP-Alt, are you sure the 6 doesn't?

edit: You're right, an unfortunate downgrade https://forum.fairphone.com/t/fp6-discussion-about-usb-2-and...

hnlmorg 6 hours ago [-]
Some Android handsets can already so think. I think Samsung phones might.

I was pleasantly surprised with my Son relatively budget Samsung phones, when I plugged it into an external monitor. Instead of showing a the phone screen on the monitor (like an iPhone would), it loaded up a different desktop that looked more like Ubuntu than it did like Android.

I can’t remember the specifics but it was definitely designed to be used with a keyboard and mouse.

wisenull 6 hours ago [-]
It was probably Samsung DeX. Samsung is helping Google to develop a similar thing for Android.

You can run the browser without any issues, use ssh with JuiceSSH and have the terminal. Running vim on there might be an option but another editor that is not a TUI might be more troublesome.

hnlmorg 2 hours ago [-]
It might have been. it “just worked”. I didnt have to do anything other than plug a monitor in via USB-C.
wisenull 2 hours ago [-]
I think monitors that can act as USB hubs will let you connect mice and keyboards too, which can really come in handy.
teekert 6 hours ago [-]
Yeah I heard this too about Samsung phones. Very nice. But I do prefer something more "freedom loving" than Android (with Play services) or iOS.

I will keep dreaming and in the mean time keep my Linux Laptop close.

hnlmorg 2 hours ago [-]
I used to share that dream too. But there’s so much proprietary hardware needed to make a smart phone that I just can’t see it happening. Or at least not for anything that would be remotely practical to use.

I think the best we can hope for is something that allows us to run a sandboxed vanilla Linux container. Which I think is already possible on Android?

nehal3m 7 hours ago [-]
Ubuntu Touch was a little buggy on my FP4 and flashing Calyx back over it required some finagling with the sensor suite. It was pretty slow and the phone was hot to the touch, so I would agree it was not ready for prime time when I tested it 2.5 years ago.

In principle however, it worked.

Ezhik 4 hours ago [-]
Secure ShellFish is a very nice app, absolutely worth the money. It's really nice to be able to do a bit of scripting. I don't even bother taking my laptop with me when traveling anymore, my phone/iPad and an external keyboard are enough to quickly jot down a proof of concept for any idea that might pop up in my head.

By the way, the dev also works on a Git client for iOS, Working Copy. I used that together with Shortcuts to make my Obsidian vault sync via git in the background.

dbish 5 hours ago [-]
This makes me miss the Nokia N800 I had when I was in college and working part time tech support. Ran a modified Debian and I could whip out a folding Bluetooth keyboard to ssh into a server. Felt like you were part of Hackers, even if the screen was tiny. The physical keyboard made a huge difference for actually getting things done
ndom91 1 hours ago [-]
Anyone have any new suggestions for similar apps on the Android side of things?

I know the full-blown Linux terminal is "released", but only for Pixel phones by what I've been able to find. Definitely can't install it on my OnePlus 13 yet.

I've been using JuiceSSH for years, but it's getting a bit long in the tooth and doesn't receive updates for years anymore either.

zjp 2 hours ago [-]
Sometimes I think I have a strong work ethic, and then I read something like "I'm coding one handed on an iPhone". Jeez.
m-s-y 2 hours ago [-]
Good to see Secure Shellfish get a mention. Great x-device connection syncing, too. Plus, the full Files app integration is a great complement to the shared/sync’d folders.
Martha02 7 hours ago [-]
I miss physical keyboards, like those on BlackBerry devices. Honestly, I think SSHing into Claude Code from a phone with a physical keyboard would actually be a decent choice for vibe coding today. But maybe I just want a 12-inch M-chip MacBook
dijit 6 hours ago [-]
I was hoping devices like this (https://www.fxtec.com/smartphones/pro1x) would catch on, but I think people have given up physical keyboards.

(obviously flip out phones have a lot of moving parts to get damaged)

Greenpants 6 hours ago [-]
I've had this phone as my main device for half a year and now using a Pixel 9 Pro Fold sometimes in "laptop" folded mode. So far, neither of these devices come close in my typing speed to a proper keyboard. The F(x)tec was great though because you do get all special characters in tactile buttons; on the Fold I constantly need to check my keyboard and make sure I'm writing what I think I'm writing. And, it's a shame that the space in between letters on the 'Gboard' keyboard on the Fold remains unused, when it could've been a perfect mouse trackpad.

I think the ideal form factor for a proper development phone would be the Astro Slide (https://www.indiegogo.com/projects/astro-slide-5g-transforme...) – I haven't personally used it but I can imagine it's the smallest size possible for proper two-handed typing. The F(x)tec was a two-thumber instead.

Ezhik 4 hours ago [-]
The Fxtec is so damn cool if you can get your hands on one. It can actually straight up run Debian. I also managed to run VS Code on it natively via Termux.

I also had a Gemini PDA, which is basically the Psion 5mx keyboard glued to a shitty Android smartphone. Such a nice keyboard, but such mediocre and unsupported CPU...

smjburton 3 hours ago [-]
@levelsio was posting about this last week: https://x.com/levelsio/status/1953022273595506910. Haven't tested it out yet, but it seems like a cool way to continue hacking away at a project while on the go.
pjmlp 6 hours ago [-]
It should have a voice controlled way in that case, at least that is my point oof view on towards all clusmy chat bot interfaces, AI usage should be transparent.
fsflover 5 hours ago [-]
Did you try Pinephone with the keyboard?
VMtest 1 hours ago [-]
has anyone not mentioned the xreal glasses?

https://news.ycombinator.com/item?id=43985513

Xss3 3 hours ago [-]
Any dev choosing iOS in my view has a twisted moral compass as they're perfectly happy to support the social divide apple purposely created and perpetuates to this day with its refusal to move to RCS.
joshstrange 3 hours ago [-]
iOS has had RCS support since iOS 18 (September 16, 2024)
ngriffiths 5 hours ago [-]
Love this. Sometimes being able to work on a phone is perfect for things that need to percolate a little while you walk around or do something mindless at the same time. I put some effort into finding a good writing and markdown rendering app but didn't realize a whole IDE is possible too.
iaalm 6 hours ago [-]
Tried to develop on mobile too. The only issue is the physical keyboard. At that time, I did think about redesign the keyboard for phone to get a precise input experience
wiseowise 2 hours ago [-]
For the love of God, just buy GPD Pocket 4.

https://www.gpd-minipc.com/products/gpd-pocket4.

RS-232 6 hours ago [-]
Pythonista is awesome. Although it hasn’t been updated in 2 years and only supports 3.10, it’s still a beautiful and capable Python IDE.

Now that iOS and Android are Tier 3 platforms, we should be getting closer to the day that we can generate an IPA or APK from our Python project in a single click.

Jotalea 4 hours ago [-]
As far as I know, you can generate an APK from a Python project, using python4android and buildozer. I never got it to work though..

But you can compile an APK from Java/Kotlin source (both your own and 3rd party OSS apps) and install it on your device, the app to do so is called CodeAssist.

VagabundoP 6 hours ago [-]
That would be really cool. I've an iPad pro and keyboard that I've love to use more for adhoc coding and projects and not just reading comics. :D
alwillis 5 hours ago [-]
You can code in Swift and even submit to the App Store using Swift Playground using an iPad [1].

[1]: https://developer.apple.com/swift-playground/

prmoustache 6 hours ago [-]
> I am now using a combination of three great apps that allow me to write code in any language using only one hand, holding my son in the other!

The last part is kind of depressing really.

mystifyingpoi 5 hours ago [-]
Depends on the age of his son. I spent 2-3 hours daily for 3 months just holding my newborn (because the sneaky one had well tuned bed detector and would just cry forever if not held) and reading AWS docs for the certification on my phone. Not feeling guilty at all.
cheschire 5 hours ago [-]
When did this ridiculous parenting guilt trend start?

You do realize that not every minute you spend with a child is “quality time” right? Like most responsibilities in adulthood, child rearing has many periods where your child simply needs your presence. The child themselves cannot handle full time mental and emotional engagement either.

Relax.

5 hours ago [-]
Chris2048 4 hours ago [-]
Are there any mobile equivalents of a thin client?

sometimes I'd like to keep my regular phone in my pocket, providing internet and cpu-assistance via bluetooth, but the UI be another device altoghether.

My thought for this was not for a mobile IDE, but a navigation device. iwatch is ok, but still not there.

JanisIO 4 hours ago [-]
I just wrote my own WebOS for coding on iOS rolling eyes -> jun.is
evrennetwork 5 hours ago [-]
[dead]
rizky05 6 hours ago [-]
[dead]