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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Linker, can you spare a meg? (2021)

115 点作者 firloop超过 2 年前

5 条评论

rav超过 2 年前
Personally I can&#x27;t fathom writing an app on a 15 MB memory budget in a language with such a heavy focus on garbage collection. I mean, the blog post talks about allocations of single 24-byte structs, and allocations happening all the time - why wouldn&#x27;t that 24-byte struct be on the stack or be part of a large homogeneous array or be a statically-allocated global?<p>But then again, in my day-to-day work we probably solve problems in languages without GC in ways that would raise eyebrows with the Go specialists at Tailscale. To each team their own favorite pet language, I guess!
mpweiher超过 2 年前
&gt; Normal iOS apps can use 5GB or so of memory before iOS kills them<p>That number can&#x27;t possibly be right. Even the most high-end iPhones &quot;only&quot; have 6GB, the rest max out at 4GB and that only recently. And I highly doubt that iOS will let you play with 5GB even on a 6GB device.
评论 #33393028 未加载
评论 #33392578 未加载
评论 #33397449 未加载
评论 #33392967 未加载
navtoj超过 2 年前
&gt; While we were busy fixing the linker to save 1MB, iOS 15 launched and quietly gave us 35MB more.<p>why didn&#x27;t the ios team do this before? 15 MB seems very low for network extensions
评论 #33391343 未加载
评论 #33391900 未加载
评论 #33394235 未加载
评论 #33394045 未加载
评论 #33392471 未加载
评论 #33391321 未加载
评论 #33394752 未加载
cpach超过 2 年前
So apparently it’s possible to use Go when creating iPhone apps? I had no idea.
评论 #33393992 未加载
评论 #33393321 未加载
markhahn超过 2 年前
almost as if iOS and&#x2F;or Go are problematic.