NewsCrawler.org

Exact from Expo: a runtime for web, iOS, macOS and Linux apps, no React

Exact from Expo: a runtime for web, iOS, macOS and Linux apps, no React
Image: news.hada.io

Exact is an experimental, pre-1.0 cross-platform application runtime written in Rust by Expo and released under the MIT license. It lets developers build web, macOS, iOS and Linux native apps from one codebase, without React, JSX, a WebView or a JavaScript bridge. The UI is written in Contract[1], Expo's own declarative language, while business logic and data processing are written in TypeScript or Rust.

A Contract compiler turns the UI declaration into a lightweight execution plan, Plan[2], which each platform's runtime interprets to draw the screen. The web runtime is about 20 KB and uses the real DOM and CSS, macOS uses AppKit and CoreText, iOS uses UIKit and CoreText, and Linux uses a Rust layout engine with GPU or CPU rendering. On native platforms, TypeScript is precompiled to Hermes bytecode[3] and runs after the first screen is rendered. Unstyled buttons, text and navigation follow each OS's native design.

The runtime exposes 10 common commands for AI agents, including tree, screenshot, tap, type and clock, and the same test script runs on web, macOS, iOS and Linux. The agent can control a virtual clock, which is meant to reduce flaky tests that depend on waiting. The stated performance targets are 100 ms (p50) to the first interactive frame and 100 ms (p50) from a code change to the updated screen. Code updates for TypeScript/Rust logic in production are not yet implemented, Android supports initial runs and testing but store packaging is unfinished, and Windows support is still in progress.

Read the original github.comDiscussion on GeekNews

Discussion

Commenters are divided. Some find the virtual clock for agent-driven tests useful and compare the design to Slint, a similar Rust UI project, while others say the README's wording is hard to follow and doubt that the Contract language can handle complex UIs. Several also ask why Windows is not supported yet.

Sources

  • KRGeekNews KO

    Expo의 Exact - React 없이 웹·iOS·macOS·Linux 앱을 만드는 AI 에이전트 중심 런타임

    20 points5 comments

  • GitHub

    Exact – a new cross platform UI framework

    82 comments

Published: First seen: Читать по-русски

Open as a page