News for hackers. Stuff that matters.
Re:SwiftUI by vedantroy on Monday June 03, 2019 @07:33PM (#20090139)
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.

Re:SwiftUI by munificent on Monday June 03, 2019 @08:47PM (#20090665)
> 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.

Re:SwiftUI by Despegar on Monday June 03, 2019 @07:47PM (#20090253)
>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.

Re:SwiftUI by tspike on Monday June 03, 2019 @08:29PM (#20090570)
It would be great until you need to debug something. Then it would be a nightmare.
Re:SwiftUI by astrange on Monday June 03, 2019 @11:15PM (#20091469)
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/