TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Ask HN: Must-have features for a compile-to-WASM native/web UI language?

3 pointsby kantordover 1 year ago
In your opinion, what would be some of the must have features for a compile-to-wasm language focused mainly on UI development?

3 comments

solardevover 1 year ago
Responsiveness support (as in ability to resize to different screen sizes and orientations in real time) at least as good as CSS. This is traditionally a limit of Canvas based UIs that have to use JS to manually reflow everything based on viewport dimensions. It&#x27;s nowhere as nice as the CSS built-ins (flexbox, media queries, grid, etc.). (Not sure if that&#x27;s what you meant by compile to WASM?)<p>I&#x27;d want a developer experience similar to MUI (not necessarily the styling, but the drop-in functionality and extensibility).<p>But then again I&#x27;m probably not your target audience either. As a frontend web dev I don&#x27;t view my UI language as a significant barrier. React is fine. Other frameworks are fine. And things are reasonably performant these days. It&#x27;s not declaring the UI that&#x27;s hard, it&#x27;s translating business requirements into synchronized client and server state. I&#x27;d rather have something that&#x27;s easier to use than rtk-query than some UI wrapper written in WASM just cuz it&#x27;s shiny.
sandreasover 1 year ago
Maybe...<p><pre><code> Multithreading (async &#x2F; await?) Static types Generics (nullable) Controls &#x2F; Widgets &#x2F; Components which probably means classes and OOP (see flutter and web components) Makros Message Senders &#x2F; Receivers instead of raw properties (smalltalk, Objective-C) Package manager Good tooling</code></pre>
评论 #39223718 未加载
MH15over 1 year ago
callbacks&#x2F;lambdas&#x2F;method references seem like table stakes coming from the modern reactive web frameworks, but if you&#x27;re doing Immediate mode or a more hybrid approach there might be more wiggle room.<p>It does seem like the big three (React, Vue, etc) emphasize declarative as best practice