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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Let's Embed a Go Program into the Linux Kernel (2023)

132 点作者 st_goliath大约 1 年前

9 条评论

st_goliath大约 1 年前
I&#x27;m a bit surprised the bulk of the comments here seem to <i>fixate</i> onto Go specifically, seemingly missing the <i>actual</i> point of the article:<p>The article demonstrates the <i>Usermode Driver API</i>, showing how a Linux driver can offload work <i>into userspace</i> (with or <i>without</i> access to a working filesystem).<p>I mentioned this yesterday in the context of the in-kernel codec discussion[1], where the questions &quot;can&#x27;t this be done in userspace&quot; or &quot;why not sandboxing&quot; were dismissed pretty quickly.<p>[1] <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=40174516#40184307">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=40174516#40184307</a>
评论 #40189063 未加载
评论 #40188445 未加载
评论 #40188436 未加载
panzi大约 1 年前
You can also use objcopy to generate a object file from a resource file.
dwattttt大约 1 年前
I was really hoping it would be executing Go in kernel.
remram大约 1 年前
How does this relate to the initrd? As I understand it, its purpose is also to load programs and modules before the filesystem becomes available, by embedding them in an image loaded with the kernel...
评论 #40192300 未加载
nikolayasdf123大约 1 年前
reminds me of go unikernel: <a href="https:&#x2F;&#x2F;github.com&#x2F;icexin&#x2F;eggos">https:&#x2F;&#x2F;github.com&#x2F;icexin&#x2F;eggos</a>
_pdp_大约 1 年前
As soon as I read the article I thought a security person must write this and what do you know? It is!
az09mugen大约 1 年前
Please don&#x27;t put Go with telemetry inside linux kernel.
drycabinet大约 1 年前
Might sound surprising until you remember there used to be Lisp Machines.
slowhadoken大约 1 年前
Is it a good idea to embed a proprietary language into a open source os?
评论 #40186465 未加载
评论 #40185873 未加载
评论 #40187369 未加载