HalfTough is a user on niu.moe. You can follow them or interact with them if you have an account anywhere in the fediverse. If you don't, you can sign up here.

Anyone tried writing application that would run on both PC and Android?

I know qt can produce Android apps and that's probably gonna be my pick, but if someone did something like that before, it'd be great to read bit more about it.

HalfTough @HalfTough

Also, I'm bit surprised this topic doesn't come up more often.

We hear so little about multiplatform between PC and mobile.

Is it that people don't care, are those platforms so different or mobile architecture just isn't great for that?

@HalfTough Phones are normally ARM devices

Cross Platform is one thing, cross arch is another for native apps

@HalfTough I have clang on my phone tho, so I can compile C++

@Dekken by "run on both" I mean I moving code, not runnable.

Basically I want to write application once and easily port it to other platform. Same way when I write something in qt under Linux it should compile on Windows with very little or even no changes.

@HalfTough here's my convenience X-Platform and X-Arch library

github.com/mkn/mkn.kul/

I use this to build apps that run anywhere

@HalfTough C++ is converging to be more X for everything thankfully, but it's not quite there yet

@HalfTough some stuff doesn't even exist in clang on android either, it's peculiar

@HalfTough It does. Its the whole premise of Microsoft's "Universal Windows Platform"

It's just that everyone who tried to do such a thing failed at it. Google also recently added support for Android apps on Chrome OS

@HalfTough In modern times, multiplatform programming (sadly) means HTML+CSS+JS.