Uniform
Uniform is a cross-platform UI framework by the submitter: a layout and rendering engine written in C, compiled to WASM on the web and native code on other platforms, with a JavaScript API that forwards each call directly into the core and a native runtime (<2 MB) that runs the same JavaScript on macOS and iOS, supports hot-reload, and can generate packaged apps for app stores.
What it addresses
Native frameworks only work on a subset of platforms, forcing a different UI implementation per target, updating at the platform's pace, and forcing specific high-level languages; browser-engine-based cross-platform frameworks inherit HTML/CSS limitations, while those controlling layout and rendering are not lightweight enough for the web and require compiled languages.
Shared over time
Each entry reflects what was shared on that date. Details may have changed since then.
Uniform
Uniform is a cross-platform UI framework by the submitter: a layout and rendering engine written in C, compiled to WASM on the web and native code on other platforms, with a JavaScript API that forwards each call directly into the core and a native runtime (<2 MB) that runs the same JavaScript on macOS and iOS, supports hot-reload, and can generate packaged apps for app stores.
Problem: Native frameworks only work on a subset of platforms, forcing a different UI implementation per target, updating at the platform's pace, and forcing specific high-level languages; browser-engine-based cross-platform frameworks inherit HTML/CSS limitations, while those controlling layout and rendering are not lightweight enough for the web and require compiled languages.
Audience: Developers building cross-platform apps, including high-performance apps such as creative apps or games.
Posted by @rkaehn · Original source ↗
Source text · @rkaehn · · Source ↗
Uniform is my idea for how we can solve these problems.
Submitted URL · @rkaehn · · Source ↗
https://github.com/rkaehn/uniform
Source text · @rkaehn · · Source ↗
https://raffk.com/hn-demo/
Story title · @rkaehn · · Source ↗
Show HN: JavaScript web apps with WASM layout and GPU rendering in 280 KB
Source text · @rkaehn · · Source ↗
A layout and rendering engine written in C, compiled to WASM on the web and native code on all other platforms
Source text · @rkaehn · · Source ↗
A JavaScript API where each function call gets forwarded directly into the core, for best performance and efficiency
Source text · @rkaehn · · Source ↗
A native runtime (<2 MB) that makes it possible to run the same JavaScript code on macOS and iOS (more platforms to come).
Source text · @rkaehn · · Source ↗
Uniform supports very fast iteration cycles via hot-reload on all platforms.
Source text · @rkaehn · · Source ↗
The runtime can also generate packaged apps to upload to app stores.
Source text · @rkaehn · · Source ↗
Native frameworks only work on a subset of platforms, so a different implementation of the UI needs to be written per target.
Source text · @rkaehn · · Source ↗
Cross-platform frameworks that rely on bundling a browser engine solve the problem of code reuse, but they inherit the limitations of HTML/CSS.
Source text · @rkaehn · · Source ↗
Those that take control over layout and rendering are not efficient and lightweight enough to be used on the web, and require the use of compiled languages.
Source text · @rkaehn · · Source ↗
This would allow developers to use new features and fix issues in the UI framework immediately.
Source text · @rkaehn · · Source ↗
so they are not a good fit for apps with high performance requirements, like creative apps or games
uniform
Ideas for building better cross-platform apps, shared via the GitHub repository rkaehn/uniform.
Posted by @rkaehn · Original source ↗
Story title · @rkaehn · · Source ↗
Show HN: Ideas for building better cross-platform apps
Submitted URL · @rkaehn · · Source ↗
https://github.com/rkaehn/uniform