TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Compose for Web

135 点作者 farmerbb大约 4 年前

10 条评论

cromwellian大约 4 年前
Right at the top: &quot;With its current status Technology Preview, Compose for Web is not production-ready, and should only be used in experiments. We are hard at work to bring you great learning materials, tutorials, and documentation, and optimize the performance of Compose for Web in the future!&quot;<p>And yet people already rushing to conclusions about code size.
评论 #27048608 未加载
goforbg大约 4 年前
I&#x27;m a full time Android dev, who&#x27;s also a intermediate in web dev. When I first started using compose &#x2F; flutter, I assumed it was for the best, since I didn&#x27;t have to learn anything new. I battled myself everyday, whether or not I had to learn React. My views are pretty clear now.<p>React with PWA - For my internal projects. React &amp; Android app with Kotlin - For Products I ship.<p>Ended up learning and liking react!<p>Like pier25 has pointed out, I don&#x27;t think it&#x27;s worth loading 2 mb for a single button. So as painful as it maybe to have 3 code bases for 3 platforms, IMO gives the user the best experience.
评论 #27045668 未加载
slimsag大约 4 年前
So with this, Flutter, and others it seems there is a drive to unify Web&#x2F;Desktop&#x2F;Mobile development (the mythical &quot;truly-cross-platform UI&quot;)<p>If I understand the code samples here correctly, Compose for Web enables someone to write basically standard HTML&#x2F;CSS components (in the &quot;React&quot; sense) and the hope is that higher level components wrapping the platform-specific components will be written:<p>&gt; Use and build Compose widgets that work on Android, Desktop, and Web by utilizing Kotlin&#x27;s expect-actual mechanisms to provide platform-specific implementations<p>While layout will be handled in-house (not via traditional HTML layouts?)<p>&gt; Experiment with a set of layout primitives and APIs that mimic the features you already know from Compose for Desktop and Android<p>This seems a much nicer approach than Flutter&#x27;s default (&quot;we render everything in a canvas&quot;)<p>But can this really pan out? Layout being handled in-house, non-native UI elements on iOS&#x2F;Android (from what I have read) are strong signals the &quot;higher level components&quot; approach doesn&#x27;t work in practice
评论 #27044443 未加载
评论 #27044187 未加载
pjmlp大约 4 年前
It is so ironic to see the politics from Android related teams against the Flutter uptake.<p>Bringing Compose to every platform Flutter is targeting, just in case.
lewisjoe大约 4 年前
This looks a good first step. But what is the iOS story of jetpack-compose? It&#x27;s non-existent.<p>Right now, there&#x27;s only one single-codebase solution to render to android, <i>ios</i>, mac, linux, windows and the web - and that is Flutter.<p>But Flutter choosing Dart is more of an &quot;easier to control the roadmap&quot; strategy than the bs they actually put up on their FAQ<p>I&#x27;d really like a Flutter like framework (that renders to it&#x27;s own widgets) but with kotlin as the framework language and it isn&#x27;t impossible to make. I don&#x27;t see Google making it, as it conflicts with Flutter.<p>Would like to see a developer oriented company like Jetpack and the open source community, make a push for a truly Flutter alternative.
评论 #27048202 未加载
评论 #27048758 未加载
评论 #27047795 未加载
评论 #27074237 未加载
评论 #27048627 未加载
评论 #27047545 未加载
评论 #27047531 未加载
pier25大约 4 年前
It loaded 2MB (443kB gzip) of JS for that single button.
评论 #27045447 未加载
c-smile大约 4 年前
Is there anything that describes architecture of the verb? Like <a href="https:&#x2F;&#x2F;quark.sciter.com&#x2F;" rel="nofollow">https:&#x2F;&#x2F;quark.sciter.com&#x2F;</a> or something ...<p>My guess: it is a JavaVM combined with CEF(WebKit) to achieve actually what?
评论 #27048044 未加载
sonograph大约 4 年前
I&#x27;m not sure I understand. Is this essentially a cross-platform tool, like Electron?
评论 #27046964 未加载
评论 #27045951 未加载
grodes大约 4 年前
shit
benatkin大约 4 年前
I&#x27;m surprised Kotlin has a Slack instead of a Discord. The biggest React, Vue, Svelte, and Deno communities are on Discord.
评论 #27047115 未加载
评论 #27045959 未加载
评论 #27045891 未加载