Cosmo / OpenSwiftUI

WIP — OpenSwiftUI is an OpenSource implementation of Apple's SwiftUI DSL.
MIT License
1.4k stars 67 forks source link

Svelte mode #3

Open michaeleisel opened 4 years ago

michaeleisel commented 4 years ago

https://github.com/sveltejs/svelte is a "compiler that takes your declarative components and converts them into efficient JavaScript that surgically updates the DOM". The same principle can be applied here, turning declarative Swift code into imperative for better performance. It could also turn Swift into a lower-level language like C++.

Cosmo commented 4 years ago

@michaeleisel Do you have a use-case in mind?

michaeleisel commented 4 years ago

Using UIKit/SwiftUI will always drop frames here and there, so performance is always a place for improvement. Also, the popularity of svelte suggests that it's helpful for a wide variety of use cases