
2026/04/23 18:20
Zig を用いた C コンパイラの実装(2025 年)
RSS: https://news.ycombinator.com/rss
要約▶
Japanese Translation:
2025 年 6 月 17 日、この著者は失業している間にアートの連作を通じて Zig プログラミング言語を学ぶという独自のプロジェクトを開始した。求職して履歴書を充実させるのではなく、この作業は時間を過ごすための自己教育の練習であり目的としている。Nora Sandler の「C コンパイラーを書く」に触発され、「paella」というコードベースと共に開発が進められ、現時点では単項演算子/二項演算子から始まり、論理式、変数、条件分岐、ブロック、ループ、関数、ライブラリの連結に至る基礎的なトピックを網羅する内容で読者をリードしている。これまでの間に行われた唯一の編集は、草案の章内部にある破損したリンクを修正することのみである。著者がこの自作書籍を継続するかどうかを決めれば追加の記事も発表されるが、現時点の概要を越えた今後のアップデートは保証されていない。このプロジェクトは専門的な進歩よりも学習を優先し、探求への透明な旅路として位置づけられている。
Text to translate:
On June 17, 2025, this author launched a unique project to learn the Zig programming language by writing an article series while between jobs. Rather than seeking employment to build a resume, the work serves as a self-taught exercise intended to pass time. Inspired by Nora Sandler's "Writing a C Compiler" and developed alongside a codebase called 'paella', the series currently guides readers through foundational topics ranging from basic arithmetic (Unary/Binary) and logic to variables, conditions, blocks, loops, functions, and linking. The only edits made so far have been correcting broken links within the draft chapters. While additional articles will be published if the author decides to continue this self-initiated book, no future updates are guaranteed beyond the current outline. The project stands as a transparent journey of discovery, prioritizing learning over professional advancement.
本文
Zig プログラミング言語への最初のふみだき
2025 年 6 月 17 日
私は paella の実装に取り組む過程で執筆したこの一連の記事は、Nora Sandler 著『C コンパイラの書き方』をモデルにしたものです。それは同時に、Zig を学ぶための練習であり、現在職探し中の私にとって、就活を探求する代わりに時間を潰す手段でもありました。ここでは不具合のあるリンクの一部を除き、原稿のまま掲載しています。
目次
- はじめに
- 単項演算子
- 二項演算子
- ロジック演算子
- 変数
- 条件分岐
- ブロック
- ループ
- 関数
- リンキング
本書の続編も執筆した場合、これからの記述をここで公開していく予定です。