Skip to content

Commit

Permalink
Merge pull request #167 from Cwolf9/local_translate_cw9_004
Browse files Browse the repository at this point in the history
翻译 get-started/_common/fidl/_overview.md
  • Loading branch information
y2-Whyto authored Jul 30, 2022
2 parents e12ef8b + a36f14f commit e15f0e7
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions get-started/_common/fidl/_overview.md
Original file line number Diff line number Diff line change
@@ -1,22 +1,34 @@
<!--
You learned in the **Introduction to Fuchsia** that Zircon provides kernel object
types to support inter-process communication (IPC) on Fuchsia. These object types
define specific mechanisms that processes use to exchange data. Within this
framework, **Zircon channels** provide an asynchronous message-based transport
capable of passing both data and a set of handles to grant access rights.
-->
您已经在 **Fuchsia 简介**中了解到,Zircon 提供了内核对象类型来支持 Fuchsia 的进程间通信(IPC)。这些对象类型定义了进程用来交换数据的特定机制。在这个框架内,Zircon 通道提供了一个基于消息的异步传输能力,即支持同时传递数据和一组句柄来授予访问权。

<!--
Zircon channels are the basis for higher-level interactions described by the
**Fuchsia Interface Definition Language** (FIDL) — the language used to describe
IPC protocols used by Fuchsia programs. FIDL allows diverse clients and servers
to interoperate by enforcing a set of semantic behavior and persistence formats
operating over the channel.
-->
Zircon 通道是 **Fuchsia 接口定义语言**(Fuchsia Interface Definition Language,FIDL)所描述的更高层次的交互的基础,FIDL 是用来描述 Fuchsia 程序所使用的 IPC 协议的语言。FIDL 允许不同的客户和服务器相互进行操作,通过强制执行一套语义行为和在通道上操作的持久性格式来实现相互操作。

<!--
Programs interact with FIDL protocols through language-specific bindings and
libraries generated by the **FIDL compiler** as an abstraction layer to the
complexity of Zircon IPC. This enables the introduction of familiar programming
idioms such as structured types and synchronous execution. The compiler generates
bindings for each supported language so providers do not need to maintain client
libraries.
-->
程序通过 **FIDL 编译器**生成的特定语言的绑定(binding)和库与 FIDL 协议进行交互,该编译器是用于隐藏 Zircon IPC 复杂性的一个抽象层。这使得我们可以引入熟悉的编程习惯,如结构化类型和同步执行。编译器为每种支持的语言都生成了绑定,因此供应商不需要维护客户端库。

<!--
![Diagram showing how Fuchsia Interface Definition Language (FIDL) facilitates
inter-process communication (IPC) through a common interface; regardless of the
programming language used.](/get-started/images/fidl/fuchsia-interface.png){: width="870"}
-->
![图中显示了 Fuchsia 接口定义语言(FIDL)如何通过一个通用接口促进进程间通信(IPC);与何种编程语言无关。](/get-started/images/fidl/fuchsia-interface.png){: width="870"}

0 comments on commit e15f0e7

Please sign in to comment.