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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Safe and efficient C++ interoperability via non-escapable types and lifetimes

67 点作者 matt_d7 个月前

5 条评论

cvb9417 个月前
The recent Swift updates add increasingly niche and theoretical features that are of questionable practical use.<p>Meanwhile the compiler still can&#x27;t compile many even mildly complex SwiftUI views and expressions with the &quot;The compiler is unable to type-check this expression in reasonable time&quot; error.<p>It does not even tell you what part of code it is having issues with so you could change it. You have to comment&#x2F;uncomment blocks of code to find the problematic part.
评论 #42135962 未加载
评论 #42135492 未加载
评论 #42136134 未加载
评论 #42135448 未加载
评论 #42138951 未加载
评论 #42136991 未加载
评论 #42135413 未加载
pornel7 个月前
Apple wants to migrate away from C++, including code in the kernel, so they need a safe, low-overhead language.<p>Swift has originally been designed as an ObjC replacement, mostly for UI glue code, with conveniences more like a scripting language.<p>So now they&#x27;re working on making Swift support more low-level low-overhead code.<p><a href="https:&#x2F;&#x2F;youtu.be&#x2F;lgivCGdmFrw" rel="nofollow">https:&#x2F;&#x2F;youtu.be&#x2F;lgivCGdmFrw</a>
评论 #42145701 未加载
int_19h7 个月前
Looks very similar to C#&#x27;s `ref struct` (<a href="https:&#x2F;&#x2F;learn.microsoft.com&#x2F;en-us&#x2F;dotnet&#x2F;csharp&#x2F;language-reference&#x2F;builtin-types&#x2F;ref-struct" rel="nofollow">https:&#x2F;&#x2F;learn.microsoft.com&#x2F;en-us&#x2F;dotnet&#x2F;csharp&#x2F;language-ref...</a>).
jb19917 个月前
I sometimes feel that my own lifetime is a type of non-escapable.
评论 #42138242 未加载
evanjrowley7 个月前
My wild fantasy of a MacOS-native fork of UNetbootin (C++) has just become closer to reality.
评论 #42142253 未加载