Skip to main content

Real World OCaml, Second Edition 中文翻译

说明

本目录用于翻译 Anil Madhavapeddy 与 Yaron Minsky 的 Real World OCaml: Functional Programming for the Masses, Second Edition。维护者已确认该书为开源书籍,可翻译并发布用于学习研究。本译文会按章节逐步推进,并保留必要的英文术语,便于读者对照原书与 OCaml 生态学习。

原书全文与示例代码公开在 realworldocaml/book 仓库中;本项目译文以维护者提供的第二版 PDF 为底本。

目录

  1. 第 1 章:序幕(Prologue)

第 I 部分:语言概念(Language Concepts)

  1. 第 2 章:导览(A Guided Tour)

  2. 第 3 章:变量与函数(Variables and Functions)

  3. 第 4 章:列表与模式(Lists and Patterns)

  4. 第 5 章:文件、模块与程序(Files, Modules, and Programs)

  5. 第 6 章:记录(Records)

  6. 第 7 章:变体(Variants)

  7. 第 8 章:错误处理(Error Handling)

  8. 第 9 章:命令式编程(Imperative Programming)

  9. 第 10 章:GADT(GADTs)

  10. 第 11 章:函子(Functors)

  11. 第 12 章:一等模块(First-Class Modules)

  12. 第 13 章:对象(Objects)

  13. 第 14 章:类(Classes)

第 II 部分:工具与技术(Tools and Techniques)

  1. 第 15 章:映射与哈希表(Maps and Hash Tables)

  2. 第 16 章:命令行解析(Command-Line Parsing)

  3. 第 17 章:使用 Async 的并发编程(Concurrent Programming with Async)

  4. 第 18 章:测试(Testing)

  5. 第 19 章:处理 JSON 数据(Handling JSON Data)

  6. 第 20 章:使用 OCamllex 与 Menhir 解析(Parsing with OCamllex and Menhir)

  7. 第 21 章:使用 S 表达式进行数据序列化(Data Serialization with S-Expressions)

  8. 第 22 章:OCaml 平台(The OCaml Platform)

第 III 部分:编译器与运行时系统(The Compiler and Runtime System)

  1. 第 23 章:外部函数接口(Foreign Function Interface)

  2. 第 24 章:值的内存表示(Memory Representation of Values)

  3. 第 25 章:理解垃圾回收器(Understanding the Garbage Collector)

  4. 第 26 章:编译器前端:解析与类型检查(The Compiler Frontend: Parsing and Type Checking)

  5. 第 27 章:编译器后端:字节码与原生代码(The Compiler Backend: Bytecode and Native Code)

翻译进度

  • 第 1 章:序幕(Prologue)
  • 第 2 章:导览(A Guided Tour)
  • 第 3 章:变量与函数(Variables and Functions)
  • 第 4 章:列表与模式(Lists and Patterns)
  • 第 5 章:文件、模块与程序(Files, Modules, and Programs)
  • 第 6 章:记录(Records)
  • 第 7 章:变体(Variants)
  • 第 8 章:错误处理(Error Handling)
  • 第 9 章:命令式编程(Imperative Programming)
  • 第 10 章:GADT(GADTs)
  • 第 11 章:函子(Functors)
  • 第 12 章:一等模块(First-Class Modules)
  • 第 13 章:对象(Objects)
  • 第 14 章:类(Classes)
  • 第 15 章:映射与哈希表(Maps and Hash Tables)
  • 第 16 章:命令行解析(Command-Line Parsing)
  • 第 17 章:使用 Async 的并发编程(Concurrent Programming with Async)
  • 第 18 章:测试(Testing)
  • 第 19 章:处理 JSON 数据(Handling JSON Data)
  • 第 20 章:使用 OCamllex 与 Menhir 解析(Parsing with OCamllex and Menhir)
  • 第 21 章:使用 S 表达式进行数据序列化(Data Serialization with S-Expressions)
  • 第 22 章:OCaml 平台(The OCaml Platform)
  • 第 23 章:外部函数接口(Foreign Function Interface)
  • 第 24 章:值的内存表示(Memory Representation of Values)
  • 第 25 章:理解垃圾回收器(Understanding the Garbage Collector)
  • 第 26 章:编译器前端:解析与类型检查(The Compiler Frontend: Parsing and Type Checking)
  • 第 27 章:编译器后端:字节码与原生代码(The Compiler Backend: Bytecode and Native Code)

后续计划

下一步翻译第 9 章“命令式编程(Imperative Programming)”。