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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Basic MetaProgramming in Zig

104 点作者 nalgeon9 个月前

2 条评论

dsp_person9 个月前
&gt; I wish there was a way to get Zig code out of comptime<p>I often just take an approach similar to cog [1], but it&#x27;s simple enough I prefer to roll my own to do whatever code generation I&#x27;m wanting. E.g. write a ~100 line python file that reads source file(s), reads special comments with code gen or introspection instructions, and then insert generated code at some designated point(s).<p>[1] <a href="https:&#x2F;&#x2F;github.com&#x2F;nedbat&#x2F;cog">https:&#x2F;&#x2F;github.com&#x2F;nedbat&#x2F;cog</a>
dragonelite9 个月前
That was an interesting blog post, hope we will get more intermediate and advance zig usage blog posts and in the future books about zig.
评论 #41280996 未加载