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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

QtCS2024: Compile once, Run everywhere

176 点作者 mmphosis8 个月前

14 条评论

TimSchumann8 个月前
Made possible using Cosmopolitan Libc.<p>Justine writes some pretty cool software.<p><a href="https:&#x2F;&#x2F;justine.lol&#x2F;cosmopolitan&#x2F;index.html" rel="nofollow">https:&#x2F;&#x2F;justine.lol&#x2F;cosmopolitan&#x2F;index.html</a>
评论 #41471261 未加载
评论 #41471229 未加载
评论 #41470891 未加载
评论 #41473459 未加载
norir8 个月前
I have a philosophical objection to this approach, while respecting the technical achievement. For me, the ideal distribution of software is always by source. The only reason I wouldn&#x27;t want this is if compilation is prohibitively expensive. But I have found that usually this is only the case for truly massive projects like chrome or projects with heavy dependencies. Most c programs can be compiled in at most a few minutes but usually just a few seconds (luajit and sqlite come to mind as being in the seconds camp). The big problem is that culturally we have accepted too many dependencies in libraries and this has made building too slow and has made binary distribution feel necessary. It is actually much faster on my computer to build neovim from source than upgrading it from homebrew if the upgrade triggers a cascade of dependency updates (which basically seems to happen every time I update anything using homebrew).<p>I also can&#x27;t envision a common scenario in which I would have a machine that doesn&#x27;t have a c compiler but I would be able to run an APE executable. Even in that uncommon case, I still think I would be better off using software that I could compile with a standards compliant c compiler and ship the binary that _I_ built myself to the machine that lacked a c compiler.
评论 #41475817 未加载
comex8 个月前
Key point:<p>&gt; running with the vnc QPA<p>The demo they have running has no native display or input support; it just serves the interface over a socket via VNC.
评论 #41471043 未加载
justinclift8 个月前
&gt; The size of the Cosmopolitan Qt Creator binary is around 230 megabytes<p>While it&#x27;s kind of expected it&#x27;d be big... that&#x27;s <i>really</i> large. :(
评论 #41473384 未加载
评论 #41474257 未加载
评论 #41473432 未加载
评论 #41473414 未加载
评论 #41473447 未加载
mseepgood8 个月前
The title: &quot;Compile once&quot; The transcript: &quot;Cosmopolitan applications are compiled twice&quot;
al2o3cr8 个月前
Interesting approach, but the results seem as rough as they usually are regarding cross-platform UX.<p>For instance, check out the demo on slide 10: now you can have janky sliders that don&#x27;t match the platform&#x27;s version on <i>every</i> platform!
zorgmonkey8 个月前
The codereview of the WIP patches are a nice read. They do a good job of showing how quirky Cosmopolitan Libc is. To be clear I think it is awesome, just don&#x27;t expect porting to it to be pain-free.<p><a href="https:&#x2F;&#x2F;codereview.qt-project.org&#x2F;c&#x2F;qt&#x2F;qtbase&#x2F;+&#x2F;581112" rel="nofollow">https:&#x2F;&#x2F;codereview.qt-project.org&#x2F;c&#x2F;qt&#x2F;qtbase&#x2F;+&#x2F;581112</a>
评论 #41476434 未加载
api8 个月前
I respect this a lot as an impressive hack, but it&#x27;s really sad that in 2024 we are headed toward a &quot;statically link the entire universe&quot; approach to software distribution because OSes have failed to provide good consistency, stability, or portability.<p>WASM could solve all this, but that would mean all OSes would need WASM runtimes that supported a consistent set of standards and APIs. Have fun getting that to happen.
评论 #41474194 未加载
评论 #41474549 未加载
SebaSeba8 个月前
Should there be a link to some video or podcast somewhere there? I can only see a link to a pdf file.
jlarocco8 个月前
This is a neat idea.<p>Generally, though, third party libraries are the biggest problem I&#x27;ve had building Qt apps on different platforms. Qt itself &quot;just works,&quot; but getting arbitrary open source libraries building on OSX and Windows can be a pain.
评论 #41476604 未加载
metadat8 个月前
&gt; Qt QPA VNC platform.<p>I&#x27;ve not heard of this before. Who is using it and for what? And how?<p>Also, who &#x2F; what is <i>.Adam</i>?
notorandit8 个月前
Why? To make it simpler to distribute binaries? What is the use case share for portable binaries across platforms? The platform check is to be run at every single run, not just once, if I am not mistaken. I thought we were aiming at efficiency.<p>It is an interesting and intriguing technology, but pretty useless if not even dangerous, IMHO.
评论 #41473265 未加载
评论 #41471824 未加载
评论 #41473394 未加载
评论 #41472935 未加载
评论 #41471870 未加载
评论 #41472068 未加载
评论 #41472407 未加载
评论 #41473298 未加载
CrendKing8 个月前
The page 8 (&quot;Building&quot;) of the slides has the badger picture to the right. His right hand has some weird &quot;nails&quot;. Another example of AI-generated image.
评论 #41471199 未加载
评论 #41504836 未加载
评论 #41471225 未加载
jenadine8 个月前
Why not wasm?
评论 #41473851 未加载