Hacker News new | ask | show | jobs
by vedantroy 2567 days ago
This is definitely an overly ambitious project idea, but now that Google has Jetpack Compose and Apple has SwiftUI, and the web has React, I wonder if it would be possible to make a "meta-framework" that uses a single code-base to compile user written code into source code written in those 3 frameworks respectively.

Then you would get truly native, cross-platform development.

Now, the probability this would ever work is 1%, but it's something that has lingered in my mind anyway.

4 comments

> I wonder if it would be possible to make a "meta-framework" that uses a single code-base to compile user written code into source code written in those 3 frameworks respectively.

Flutter targets native code on Android and iOS and JavaScript for the web. It has very mature compilers for all three.

>I wonder if it would be possible to make a "meta-framework" that uses a single code-base to compile user written code into source code written in those 3 frameworks respectively.

Just no. As an Apple user, just use whatever the tools they give you when you're developing for Apple platforms.

It would be great until you need to debug something. Then it would be a nightmare.
All meta-platforms are themselves platforms; meta-ness is in the implementation. So you could always do this no matter what you started from, but it's not actually a good idea.

https://xkcd.com/927/