Re:Exact – a new cross platform UI framework by the Expo team
by solarkraft on Monday November 09, 2026 @06:57PM
(#50434161)
Ambitious. I’m sure they know what their problems are and how to solve them, as evidenced by the agent being able to control the UI’s timing (and it being mentioned so far up). Getting the agent to get interactivity right is pretty hard otherwise.
Re:Exact – a new cross platform UI framework by the Expo team
by prmph on Monday November 09, 2026 @07:46PM
(#50434608)
It is weird. What does "agent native" mean? This looks like work that requires the use of agents to use properly.
Hence me thinking it is satire. You mean to tell we are already st a point where libraries and frameworks are being written such that they require agents (from maybe paid frontier models) to properly use?
Re:Exact – a new cross platform UI framework by the Expo team
by wahnfrieden on Monday November 09, 2026 @08:22PM
(#50434865)
No, there's no requirement to use agents, and others are already building tools for manually working with Construct with a purpose-built editor.
Tools like Hyperframes have already demonstrated the value in catering to agentic-first dev while offering manual inspection and editing interfaces.
Agents aren't equally good at all languages/tools, and just having a lot of training data on one ecosystem isn't enough to optimize the experience. If you read the announcement thread from the CEO there are several points made such as formal safeties against invalid states and build error messages that token-efficiently teach the agent correct usage.
Re:Exact – a new cross platform UI framework by the Expo team
by hysan on Monday November 09, 2026 @07:20PM
(#50434390)
Since there are no releases, I assuming this is still a WIP? It would explain why they list Linux and then don’t have any screenshots of it next to the other platforms. How it works is kinda light on details. I’m interested to learn more about the under the hood aspects of how they are translating everything to the different native toolkits.
Re:Exact – a new cross platform UI framework by the Expo team
by q4y2u35uk on Tuesday November 10, 2026 @12:18AM
(#50436359)
because these slop projects have a single dev. And if that dev happens to have a macbook, then that's that.
You can't have multi-platform support without external contributors, and of course you can't have external contributors when one dude is pumping out +2.5M LOC in a week.
Re:Exact – a new cross platform UI framework by the Expo team
by gen2brain on Tuesday November 10, 2026 @03:35AM
(#50437595)
Sure you can, check https://github.com/gen2brain/iup-go , from single dev on Linux that for a long time used VMs for testing, macOS in VM, iOS simulator in that VM (painful), etc. OK, several months ago I bought some old iPhone first, then one month ago I bought Mac mini M1, just for testing. It needed years though, not few weekends, but it is doable.
Re:Exact – a new cross platform UI framework by the Expo team
by ojr on Monday November 09, 2026 @10:53PM
(#50435856)
The world has not moved away from Javascript, why do people always prematurely call its death? It’s in clients and servers everywhere and npm downloads are at an all time high, facts over feelings
Re:Exact – a new cross platform UI framework by the Expo team
by zoom6628 on Monday November 09, 2026 @08:46PM
(#50435047)
Immediate thought was the Contract reminds me of QML.
This Exact work looks great and I very much hope it succeeds. Qt has
Proven this approach works. Now if these folk at Expo can do it at a price that every dev can afford it will get much wider adoption than Qt.
Re:Exact – a new cross platform UI framework by the Expo team
by brainless on Monday November 09, 2026 @09:51PM
(#50435492)
The idea that agent can built and see it is very important and how I have been building my own GUI framework https://github.com/brainless/akar
I have been using an internal screenshot feature along with a dump of the component tree. Multi-modal LLMs can be used to read the screenshot and fix issues. The dump can be read by any text based LLM. I made my life much easier.
I saw the Blender UI based framework shared on HN the other day and this one today. I am not sure if I want to continue building my own (although all code is written by agents) or if I should switch. I can take inspiration from the two other frameworks and continue with my own.
Re:Exact – a new cross platform UI framework by the Expo team
by btown on Monday November 09, 2026 @09:53PM
(#50435501)
Whenever I see a DSL where part of the DSL's responsibility is to have arbitrarily complex mathematical expressions, my reactions are (a) why???, (b) well, if they're going to do it, they should have a formal language specification with a derived lexer and parser, and (c) the product needs a robust stdlib with compatibility across build targets.
Re:Exact – a new cross platform UI framework by the Expo team
by vmg12 on Monday November 09, 2026 @10:00PM
(#50435547)
My understanding is that you arent supposed to write the entire UI in contract. You are supposed to write as much as you can with it and do the rest in js or rust
Re:Exact – a new cross platform UI framework by the Expo team
by miffy900 on Monday November 09, 2026 @10:37PM
(#50435766)
This is why I have strongly preferred JSX over any other UI DSL (specifically the typescript variant, TSX) I've tried.
It looks like a DSL, but it actually isn't - it's just regular javascript/typescript with a very thin 'declarative/markup' veneer. it basically tricks you into thinking you're writing a HTML-like UI-DSL, but it also just so happens to accept arbitrary JS expressions, because it is just regular JS.
Re:Exact – a new cross platform UI framework by the Expo team
by Xirdus on Tuesday November 10, 2026 @12:24AM
(#50436412)
Have you tried WPF and XAML (I guess it's Avalonia and XAML now)? Personally I find it the only good use of XML ever, but it's really, really good. Though I've learned the hard way to keep the advanced features to the minimum and do absolutely any and all calculations in the viewmodel (which, admittedly, excludes 75% of XAML features.)
Re:Exact – a new cross platform UI framework by the Expo team
by miffy900 on Wednesday November 11, 2026 @12:10AM
(#50449951)
yes I have- i learned WPF before React (back in 2011) and immediately fell in love with JSX - JSX is what XAML should've been from the get go. Same for razer syntax in blazor.
till this day you can't use linq to render a sequence of elements. Like people.Select(p => <div>{p.FullName}</div>);
it's such a shame XAML and Razer syntax haven't evolved.
Re:Exact – a new cross platform UI framework by the Expo team
by halflife on Tuesday November 10, 2026 @12:43AM
(#50436526)
JSX is terrible because of 2 shortcomings-
1 - all logic needs to be written in 1 statement. That forces you to use nested ternaries, nullish operators, and array fns where simple workflow controls would read much better.
2 - it’s designed to render html but conflicts with JS and TS, so you can’t have a class attribute, and weird escape hatches around generic fns.
Re:Exact – a new cross platform UI framework by the Expo team
by satvikpendem on Tuesday November 10, 2026 @01:53AM
(#50436931)
For 1, you're supposed to break up more complex logic like that into functions and variables, so that acts as a forcing function which works as intended. For 2, 99% of HTML is just fine, just className would be different but it's not a big deal in practice.
Re:Exact – a new cross platform UI framework by the Expo team
by ricardobeat on Tuesday November 10, 2026 @06:23AM
(#50438784)
The rationale was to follow the DOM property names to avoid clashing with reserved keywords; not because mirroring JS was the goal. Data attributes for example have always been data-*, readonly, contenteditable in lowercase, mirroring HTML.
Re:Exact – a new cross platform UI framework by the Expo team
by halflife on Tuesday November 10, 2026 @05:24AM
(#50438307)
I know WHY it’s not possible, but that’s a design limitation of the parser being templating on top of JS, instead of a separate DSL with escape hatches for JS, like most other templating engines
Re:Exact – a new cross platform UI framework by the Expo team
by troupo on Tuesday November 10, 2026 @06:13AM
(#50438684)
It's not really a design limitation, as this way it simplifies the parser, the DSL, the templating... Basically everything. And your entire templating/parsing could be just "convert this to a function call"
Re:Exact – a new cross platform UI framework by the Expo team
by troupo on Tuesday November 10, 2026 @09:27AM
(#50440878)
> Yes, it simplifies the engine, at the cost of developer experience.
Given that its taken the world by fire and nearly everyone adopted JSX/TSX as the templating language, doesn't seem like developer experience suffered.
> Like useMemo, that now is compiled in automatically
A completely different beast, and this one definitely makes DX suffer.
Re:Exact – a new cross platform UI framework by the Expo team
by whilenot-dev on Tuesday November 10, 2026 @02:13AM
(#50437069)
If I understand you correctly, #1 is just plain wrong. JSX is transformed into standard ECMAScript. You can store JSX-nodes in variables and pass them around however you like.
// this
<Box>
{
shouldShowAnswer(user)
? <Answer value={false}>no</Answer>
: <Box.Comment>
Text Content
</Box.Comment>
}
</Box>
// ...can be written like this
const answer = (
<Answer value={false}>
no
</Answer>
);
const comment = (
<Box.Comment>
Text Content
</Box.Comment>
);
const result = shouldShowAnswer(user) ? answer : comment;
<Box>
{result}
</Box>
In React at least, null won't render anything.
#2 is a known trade-off, and so marginal and well known that it's almost not worth mentioning it.
Re:Exact – a new cross platform UI framework by the Expo team
by halflife on Tuesday November 10, 2026 @05:19AM
(#50438266)
It’s not wrong, this is a limitation of JSX, every interpolation needs to be a statement.
Ofcourse you can split every control flow into separate component and combine them together finally, but that means exactly that - that every minute condition or iteration is deferred elsewhere. And it makes the actual render result hard to understand.
Re:Exact – a new cross platform UI framework by the Expo team
by whilenot-dev on Tuesday November 10, 2026 @06:36AM
(#50438880)
At this point I honestly don't know what you're on about...
> every interpolation needs to be a statement
Interpolation??? JSX extends the PrimaryExpression in the ECMAScript grammar. So yeah, every JSX element/fragment is an expression, not a statement. You can't seriously consider an ECMAScript expression a limitation?
> you can split control flow into separate component[s]
You do realize that none of the variables in the example above are components, do you? They are the result of JSX elements, and if we're talking React they'd be React elements.
> combine them together [...] makes the actual render result hard to understand
So, for you, a long ECMAScript expression is a limiting factor, but composing shorter, simpler expressions into a longer, more complex one is hard to understand. Even though in your comment above you wrote:
Re:Exact – a new cross platform UI framework by the Expo team
by halflife on Tuesday November 10, 2026 @08:46AM
(#50440278)
I may have mixed between expression and statement, however in JSX {} must return exactly 1 expression, so that limits the amount of code you can place there.
Your'e missing the point arguing about semantics of components or JSX elements, the point is that if you want to avoid control flow via expressions, you must destruct you template (however simple it may be) into tiny template fragments that makes it harder to understand the complete rendered picture.
Imaging if JSX could look like this:
<div class="container">
My list
@for(item in list) {
<h2>{item.name}</h2>
@if(item.loading){
<p>Loading...</p>
} @else if (item.error) {
<p>Error loading item</p>
} @else {
<p>{item.description}</p>
}
}
</div>
This is much easier than the suggested JSX approach:
Re:Exact – a new cross platform UI framework by the Expo team
by halflife on Tuesday November 10, 2026 @01:20PM
(#50444100)
In my suggestion I demonstrated a theoretical approach to how I think JSX shouldve been done.
JSX eventually is not a templating engine, it’s just sugar over createComponent/createElement functions, and thats its downside, we are creating html components that need templates to render.
Re:Exact – a new cross platform UI framework by the Expo team
by whazor on Tuesday November 10, 2026 @06:55AM
(#50439043)
It is important that the DSL syntax resonates with people reading the code and their experiences. Given the popularity of React I agree that JSX is great. This is what people's brains have been trained for and thus it would be easier for them to review.
But in the end this is a small syntactical difference (how it looks). You could have a custom code viewer that does these translations for you.
Re:Exact – a new cross platform UI framework by the Expo team
by Sn0wCoder on Tuesday November 10, 2026 @01:43AM
(#50436867)
Does anyone know if the code in this file (or the others) is the direct output of the Agent or is this the output of another tool? I guess the other tool could be the 'Agent' but hoping my coworkers do not start having me review code in this dense format. Maybe we really are past the point of code needing human review at all IDK....
Re:Exact – a new cross platform UI framework by the Expo team
by scottpersinger on Monday November 09, 2026 @11:56PM
(#50436220)
This looks really cool, but the "Claude speak" README is a bummer. I would like to understand the principles and architecture, but this isn't helping:
"Between two operations nothing moves. Instead of sleeping until an animation finishes, the agent says clock +60000 or clock settle and reads the result. No timing flakes, no waits."
Re:Exact – a new cross platform UI framework by the Expo team
by lcnmrn on Tuesday November 10, 2026 @12:14AM
(#50436332)
I prefer building native apps for each platform. Agent the match app behavior from one platform to another one and use native layout, controls, SDK, etc. I already built web, macOS and Android versions of the same app this way.
Re:Exact – a new cross platform UI framework by the Expo team
by ogoffart on Tuesday November 10, 2026 @12:48AM
(#50436561)
The design here is very similar to Slint (https://github.com/slint-ui/slint), which I work on: both are implemented in Rust, with a declarative UI DSL and its own compiler, logic in a host language (Rust, C++, JS or Python for Slint), pure reactive expressions, and tooling that lets agents inspect and drive the app.
One difference is that Slint is more mature: it's been 1.x with a stable API since 2023
Re:Exact – a new cross platform UI framework by the Expo team
by ogoffart on Tuesday November 10, 2026 @04:49AM
(#50438070)
Not really. Slint also has a royalty-free license, so you can make proprietary applications for free. So it’s GPL for open-source apps (including if your own code is MIT/Apache as they are compatible), and royalty-free for proprietary apps. Is that not enough?
Re:Exact – a new cross platform UI framework by the Expo team
by ltearno on Tuesday November 10, 2026 @01:03AM
(#50436650)
Nice ! You can also look at Budo (https://budo-platform.github.io/) for a multiplatform (linux, macos, windows, android, web) AND multilangage (javascript, lua and webassembly) runtime. It can work with games, 3d, 2d, audio, midi and more.
Re:Exact – a new cross platform UI framework by the Expo team
by justauserid on Tuesday November 10, 2026 @01:18AM
(#50436725)
At this point is there a cross-platform UI framework that one can just use? At least for simple or moderately simple apps? Even if it's not "all platofrms" but rather two separately: mobile and desktop. But being extremely lightweight is a pre-requisite. Googling about it takes
When I was making a simple vibe-coded app for a hobby group I am part of I finally went ahead with a static hosted web app because everything else quite complex and still used quite a lot of RAM (just for using the f/w).
I think the only better option as of now is – just write native code for each platform.
Re:Exact – a new cross platform UI framework by the Expo team
by justauserid on Tuesday November 10, 2026 @11:26AM
(#50442590)
I come from Android so had early exposure to Flutter. It used to draw every single pixel of the UI on every platform. Felt kinda weird. I guess the point of native UI is to use native UI controls offered. Though I must say that is much better than react native and electron, still. I will check it again. Thanks for reminding.
Re:Exact – a new cross platform UI framework by the Expo team
by gen2brain on Tuesday November 10, 2026 @03:12AM
(#50437452)
You can check https://github.com/gen2brain/iup-go , real native controls everywhere, powerful, same codebase for desktop and mobile apps (different layout though). I hope to release soon, after years in making it finally does everything that is planned. With proper documentation, 200+ examples, etc.
You do not have to use Go, of course C works, and there is a nice wrapper for C++. I have ported gVim, it was a good test that helped me optimize many things, but now I maintain and use it on my desktop with Qt, it is just too good to throw it away. Can also be used with WinUI, Cocoa, FLTK gVim is also nice and slick.
Re:Exact – a new cross platform UI framework by the Expo team
by ogoffart on Tuesday November 10, 2026 @07:34AM
(#50439440)
Slint might fit: it runs on desktop and mobile, and it’s lightweight enough to run on microcontrollers. You write the UI in a small declarative language, and the logic in Rust, C++, JS, TS or Python, depending on your preference. (I work on it.)
Re:Exact – a new cross platform UI framework by the Expo team
by jdthedisciple on Tuesday November 10, 2026 @01:40AM
(#50436854)
Granted all the justifiable hate for it, but it's not crossplatform if it doesn't run natively on Windows.
If it's just web then it's as crossplatform as vanillajs.
Not a jab, I say this bc I'd be genuinely interested in genuine crossplatform for my client audience of professionals and knowledge workers who, as it stands, are mostly (though not exclusively) Windows users and deserve nice applications.
Re:Exact – a new cross platform UI framework by the Expo team
by mastermage on Tuesday November 10, 2026 @02:08AM
(#50437028)
I disagree on the semantics Cross Platform does not mean that it has to be Cross (Every) Platform. As long as it crosses multiple platforms it is Cross Platform. Other than that I agree with the sentiment.
Re:Exact – a new cross platform UI framework by the Expo team
by calgoo on Tuesday November 10, 2026 @04:06AM
(#50437798)
I have had decent success with Flutter as the cross platform gui; the llm can query my android tablet, get screenshots, and can do the same on my linux desktop too. I copy the files to my macbook and can compile it there for macos as well. I dont really care about the app looking native, i care more about it working the same on all platforms and it does that well.
Re:Exact – a new cross platform UI framework by the Expo team
by hollowturtle on Tuesday November 10, 2026 @03:12AM
(#50437453)
To me it looks like an "hallucinated" project, un-necessary boilerplate, tons of abstractions over abstractions, I did a first pass read and nothing makes sense. This is what happens when you assign much of the tasks to the clanker
Re:Exact – a new cross platform UI framework by the Expo team
by egorfine on Tuesday November 10, 2026 @03:21AM
(#50437512)
The README immediately discourages me from ever learning about this project by immediately declaring that it is not a project for me, the developer, it's a project for "agents". Like, you did not even explain what is it, but you are already telling me to f off.
Re:Exact – a new cross platform UI framework by the Expo team
by henry-hong on Tuesday November 10, 2026 @04:48AM
(#50438064)
The part I like most is that the agent can see and test the app on every platform. In my experience the hard part of agent-written UI isn't writing it, it's the agent never looking at what it made. Curious how the Contract test files hold up once layout gets messy, e.g. long lists and keyboard insets on iOS.
Re:Exact – a new cross platform UI framework by the Expo team
by wahnfrieden on Tuesday November 10, 2026 @11:25AM
(#50442581)
I don’t understand all the comments mocking this for not supporting windows and android. It’s a pre-alpha and those platforms are on the roadmap with partial progress.
Hence me thinking it is satire. You mean to tell we are already st a point where libraries and frameworks are being written such that they require agents (from maybe paid frontier models) to properly use?
We live in strange times, if so.
Tools like Hyperframes have already demonstrated the value in catering to agentic-first dev while offering manual inspection and editing interfaces.
Agents aren't equally good at all languages/tools, and just having a lot of training data on one ecosystem isn't enough to optimize the experience. If you read the announcement thread from the CEO there are several points made such as formal safeties against invalid states and build error messages that token-efficiently teach the agent correct usage.
Agent native is said once in this readme, following an immediate explanation and specific features.
The announcement thread covers ways it helps agents, and they sound like things that would help humans, too.
You can't have multi-platform support without external contributors, and of course you can't have external contributors when one dude is pumping out +2.5M LOC in a week.
I see these projects and feel as enthusiastic as reading the ingredients of a frozen pizza package.
This Exact work looks great and I very much hope it succeeds. Qt has Proven this approach works. Now if these folk at Expo can do it at a price that every dev can afford it will get much wider adoption than Qt.
I have been using an internal screenshot feature along with a dump of the component tree. Multi-modal LLMs can be used to read the screenshot and fix issues. The dump can be read by any text based LLM. I made my life much easier.
I saw the Blender UI based framework shared on HN the other day and this one today. I am not sure if I want to continue building my own (although all code is written by agents) or if I should switch. I can take inspiration from the two other frameworks and continue with my own.
From what I see in https://github.com/expo/exact/blob/main/contract/syntax/src/... and https://github.com/expo/exact/blob/main/contract/syntax/src/... - it's unclear this will scale to the levels of complexity that arbitrary UIs demand.
It looks like a DSL, but it actually isn't - it's just regular javascript/typescript with a very thin 'declarative/markup' veneer. it basically tricks you into thinking you're writing a HTML-like UI-DSL, but it also just so happens to accept arbitrary JS expressions, because it is just regular JS.
till this day you can't use linq to render a sequence of elements. Like people.Select(p => <div>{p.FullName}</div>);
it's such a shame XAML and Razer syntax haven't evolved.
[0]: https://learn.microsoft.com/en-us/aspnet/core/blazor/compone...
1 - all logic needs to be written in 1 statement. That forces you to use nested ternaries, nullish operators, and array fns where simple workflow controls would read much better.
2 - it’s designed to render html but conflicts with JS and TS, so you can’t have a class attribute, and weird escape hatches around generic fns.
Because it's a thin wrapper directly translatable into a JS function call. `className` is JS
React opted for backwards compatibility at the time it came out, and never made the upgrade - you can write `class` in Preact.
I think they opted for what these properties are actually called in Javascript: https://developer.mozilla.org/en-US/docs/Web/API/Element/cla...
I wish they'd stick with that for all properties though.
Given that its taken the world by fire and nearly everyone adopted JSX/TSX as the templating language, doesn't seem like developer experience suffered.
> Like useMemo, that now is compiled in automatically
A completely different beast, and this one definitely makes DX suffer.
However angular, svelte, vue and more have a specific DSL for templating.
#2 is a known trade-off, and so marginal and well known that it's almost not worth mentioning it.
Ofcourse you can split every control flow into separate component and combine them together finally, but that means exactly that - that every minute condition or iteration is deferred elsewhere. And it makes the actual render result hard to understand.
> every interpolation needs to be a statement
Interpolation??? JSX extends the PrimaryExpression in the ECMAScript grammar. So yeah, every JSX element/fragment is an expression, not a statement. You can't seriously consider an ECMAScript expression a limitation?
> you can split control flow into separate component[s]
You do realize that none of the variables in the example above are components, do you? They are the result of JSX elements, and if we're talking React they'd be React elements.
> combine them together [...] makes the actual render result hard to understand
So, for you, a long ECMAScript expression is a limiting factor, but composing shorter, simpler expressions into a longer, more complex one is hard to understand. Even though in your comment above you wrote:
> simple workflow controls would read much better
What's your alternative?
Your'e missing the point arguing about semantics of components or JSX elements, the point is that if you want to avoid control flow via expressions, you must destruct you template (however simple it may be) into tiny template fragments that makes it harder to understand the complete rendered picture.
Imaging if JSX could look like this:
This is much easier than the suggested JSX approach:JSX eventually is not a templating engine, it’s just sugar over createComponent/createElement functions, and thats its downside, we are creating html components that need templates to render.
But in the end this is a small syntactical difference (how it looks). You could have a custom code viewer that does these translations for you.
Like... some way to "branch" out of the main development repo and make changes independent of it before "merging" it back in?
A new trend?
I don’t really get why you would ever want your source code formatted like that, with or without LLMs
https://github.com/expo/exact/blob/main/host/web/capture.js
"Between two operations nothing moves. Instead of sleeping until an animation finishes, the agent says clock +60000 or clock settle and reads the result. No timing flakes, no waits."
You choose your langage: js, lua, webassembly.
It runs on linux, macos, windows, android and the web (ios to come).
- immediate mode 2d - website style 3d - audio, midi, storage, etc - llm ready, - much more
lol
> cross platform - no windows, no android
lol
Yeah I don't think so.
I could vibe code all of this myself if I wanted to. But I don't, because I value my time.
I can just vibe code the actual apps and be fine.
One difference is that Slint is more mature: it's been 1.x with a stable API since 2023
Not paying for developer tools? No money as well.
When I was making a simple vibe-coded app for a hobby group I am part of I finally went ahead with a static hosted web app because everything else quite complex and still used quite a lot of RAM (just for using the f/w).
I think the only better option as of now is – just write native code for each platform.
You choose your langage: js, lua, webassembly.
It runs on linux, macos, windows, android and the web (ios to come).
- immediate mode 2d - website style 3d - audio, midi, storage, etc - llm ready
You do not have to use Go, of course C works, and there is a nice wrapper for C++. I have ported gVim, it was a good test that helped me optimize many things, but now I maintain and use it on my desktop with Qt, it is just too good to throw it away. Can also be used with WinUI, Cocoa, FLTK gVim is also nice and slick.
If it's just web then it's as crossplatform as vanillajs.
Not a jab, I say this bc I'd be genuinely interested in genuine crossplatform for my client audience of professionals and knowledge workers who, as it stands, are mostly (though not exclusively) Windows users and deserve nice applications.
> Names are CSS's, because names are what you write
> Unsaid presentation is the platform's
Very enlightening /s
I’m all for AI assisted development but please write/review your documentation.