-
Notifications
You must be signed in to change notification settings - Fork 177
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Eric X
committed
Aug 7, 2022
1 parent
4ece224
commit 67336c9
Showing
2 changed files
with
49 additions
and
84 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,28 @@ | ||
**Components** are the foundational building blocks of software running in | ||
<!-- **Components** are the foundational building blocks of software running in | ||
Fuchsia. Each component is a composable, sandboxed module that interacts with | ||
other components through capabilities. This promotes system security and | ||
creates clear interfaces between individual components, making them easier to | ||
update or replace. | ||
update or replace. --> | ||
**组件**是 Fuchsia 中运行的软件的基石。每一个组件都是可以组合的沙盒模块,相互之间通过功能交互。这提高了系统安全性并在各个组件之间建立了清晰的接口,使它们更容易更新或替换。 | ||
|
||
In Fuchsia, **everything is a component** (almost). Recall from the previous | ||
<!-- In Fuchsia, **everything is a component** (almost). Recall from the previous | ||
discussion of Zircon that the surface area of the kernel is intentionally small, | ||
with most core services being implemented in user space. This means that most | ||
software running on Fuchsia is implemented using the component framework, | ||
including: | ||
including: --> | ||
Fuchsia 中**一切都是组件**(几乎)。回想一下之前对 Zircon 的讨论,内核有意设计得很小,大多数核心服务都是在用户空间中实现。这意味着在 Fuchsia 上运行的大多数软件都是采用组件框架实现的,包括: | ||
|
||
* User-facing applications | ||
<!-- * User-facing applications | ||
* Device drivers | ||
* Filesystems | ||
* Media codecs | ||
* Network stacks | ||
* Network stacks --> | ||
* 面向用户的应用 | ||
* 设备驱动 | ||
* 文件系统 | ||
* 媒体编解码器 | ||
* 网络栈 | ||
|
||
Outside the kernel there are only a few low-level exceptions not using the | ||
component framework, such as bootloaders and the `userboot` process. | ||
<!-- Outside the kernel there are only a few low-level exceptions not using the | ||
component framework, such as bootloaders and the `userboot` process. --> | ||
内核之外只有少数不使用组件框架的底层例外,如引导程序和 `userboot` 进程。 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,133 +1,90 @@ | ||
<!-- # Explore Fuchsia {#explore-fuchsia} --> | ||
# 探索 Fuchsia {#explore-fuchsia} | ||
# Explore Fuchsia {#explore-fuchsia} | ||
|
||
<!-- Once you have Fuchsia up and running on a device or emulator, | ||
check out the following resources: --> | ||
在设备或模拟器上启动并运行 Fuchsia 后,请查看以下资源: | ||
Once you have Fuchsia up and running on a device or emulator, | ||
check out the following resources: | ||
|
||
<!-- * [Run ffx commands](#run-ffx-commands). | ||
* [Run ffx commands](#run-ffx-commands). | ||
* [Run examples](#run-examples). | ||
* [Create Fuchsia components](#create-fuchsia-components). | ||
* [Contribute changes](#contribute-changes). --> | ||
* [运行 ffx 命令](#run-ffx-commands). | ||
* [运行示例程序](#run-examples). | ||
* [创建 Fuchsia 组件](#create-fuchsia-components). | ||
* [贡献修订](#contribute-changes). | ||
* [Contribute changes](#contribute-changes). | ||
|
||
<!-- ## Run ffx commands {#run-ffx-commands} --> | ||
## 运行 ffx 命令 {#run-ffx-commands} | ||
## Run ffx commands {#run-ffx-commands} | ||
|
||
<!-- [`ffx`][ffx-overview] is a host tool for Fuchsia target workflows that | ||
[`ffx`][ffx-overview] is a host tool for Fuchsia target workflows that | ||
provides the consistent development experience across all Fuchsia environments | ||
and host platforms. --> | ||
[`ffx`][ffx-overview] 是 Fuchsia 目标工作流的主机工具,为所有 Fuchsia 环境和主机平台上提供一致的开发体验。 | ||
and host platforms. | ||
|
||
<!-- The following are some of `ffx` command examples: --> | ||
以下是一些 `ffx` 命令示例: | ||
The following are some of `ffx` command examples: | ||
|
||
<!-- * Display the list of devices: --> | ||
* 显示设备列表: | ||
* Display the list of devices: | ||
|
||
```posix-terminal | ||
ffx target list | ||
``` | ||
<!-- * Display the device information: --> | ||
* 显示设备信息: | ||
* Display the device information: | ||
```posix-terminal | ||
ffx target show | ||
``` | ||
<!-- * Print the device logs: --> | ||
* 输出设备日志: | ||
* Print the device logs: | ||
```posix-terminal | ||
ffx log | ||
``` | ||
<!-- * Reboot the device: --> | ||
* 重启设备: | ||
* Reboot the device: | ||
```posix-terminal | ||
ffx target reboot | ||
``` | ||
<!-- ## Run examples {#run-examples} --> | ||
## 运行示例 | ||
## Run examples {#run-examples} | ||
<!-- To try out Fuchsia's sample software, check out the guides below: --> | ||
要试用 Fuchsia 的样例程序,请参考如下指南: | ||
To try out Fuchsia's sample software, check out the guides below: | ||
<!-- * [Run an example component](/development/run/run-examples.md) | ||
* [Run an example component](/development/run/run-examples.md) | ||
* [Run a test component](/development/run/run-test-component.md) | ||
* [Run an end-to-end test](/development/testing/run_an_end_to_end_test.md) --> | ||
* [运行样例组件](/development/run/run-examples.md) | ||
* [运行测试组件](/development/run/run-test-component.md) | ||
* [运行端到端测试](/development/testing/run_an_end_to_end_test.md) | ||
* [Run an end-to-end test](/development/testing/run_an_end_to_end_test.md) | ||
<!-- ## Create Fuchsia components {#create-fuchsia-components} --> | ||
## 创建 Fuchsia 组件 {#create-fuchsia-components} | ||
## Create Fuchsia components {#create-fuchsia-components} | ||
<!-- The basic executable units of software in Fuchsia are | ||
The basic executable units of software in Fuchsia are | ||
[components](/concepts/components/v2), and these components interact | ||
with each other using [FIDL](/concepts/fidl/overview.md) | ||
(Fuchsia Interface Definition Language) protocols. --> | ||
Fuchsia 中最小可运行软件单元是[组件](/concepts/components/v2),这些组件通过 | ||
[FIDL](/concepts/fidl/overview.md)(Fuchsia 接口定义语言)协议彼此交互。 | ||
(Fuchsia Interface Definition Language) protocols. | ||
<!-- To learn more about Fuchsia components and FIDL, check out the guides below: --> | ||
要想了解更多有关 Fuchsia 组件和 FIDL 的信息,参考如下指南: | ||
To learn more about Fuchsia components and FIDL, check out the guides below: | ||
<!-- * [Build components](/development/components/build.md) | ||
* [Build components](/development/components/build.md) | ||
* [FIDL overview](/development/languages/fidl/README.md) | ||
* [FIDL tutorials](/development/languages/fidl/tutorials/overview.md) --> | ||
* [构建组件](/development/components/build.md) | ||
* [FIDL 概览](/development/languages/fidl/README.md) | ||
* [FIDL 教程](/development/languages/fidl/tutorials/overview.md) | ||
* [FIDL tutorials](/development/languages/fidl/tutorials/overview.md) | ||
<!-- ## Contribute changes {#contribute-changes} --> | ||
## 贡献更改 {#contribute-changes} | ||
## Contribute changes {#contribute-changes} | ||
<!-- When you're ready to contribute to the Fuchsia project, | ||
see [Contribute changes][contribute-changes]. --> | ||
当您准备好为 Fuchsia 项目做出贡献时,请参阅[贡献更改][contribute-changes]。 | ||
When you're ready to contribute to the Fuchsia project, | ||
see [Contribute changes][contribute-changes]. | ||
<!-- ## See also --> | ||
## 参阅 | ||
## See also | ||
<!-- For more information on Fuchsia's development workflows, | ||
check out the following resources: --> | ||
要获取关于 Fuchsia 开发流程的更多信息,请参阅下列资源: | ||
For more information on Fuchsia's development workflows, | ||
check out the following resources: | ||
<!-- * [fx workflows](/development/build/fx.md) | ||
* [fx workflows](/development/build/fx.md) | ||
* [Workflow tips and questions](/development/source_code/workflow_tips_and_faq.md) | ||
* [Configure editors](/development/editors/) | ||
* [Source code layout](/development/source_code/layout.md) | ||
* [Build system](/development/build/build_system/index.md) --> | ||
* [fx 工作流程](/development/build/fx.md) | ||
* [工作流程技巧和问题](/development/source_code/workflow_tips_and_faq.md) | ||
* [配置编辑器](/development/editors/) | ||
* [源码规划](/development/source_code/layout.md) | ||
* [构建系统](/development/build/build_system/index.md) | ||
* [Build system](/development/build/build_system/index.md) | ||
<!-- Reference links --> | ||
<!-- [components]: /concepts/components/v2 | ||
[components]: /concepts/components/v2 | ||
[run-examples]: /development/run/run-examples.md | ||
[ffx-overview]: /development/tools/ffx/overview.md | ||
[fidl]: /development/languages/fidl | ||
[fidl-tutorials]: /development/languages/fidl/tutorials/overview.md | ||
[fidl-concepts]: /concepts/fidl/overview.md | ||
[run-fuchsia-tests]: /development/testing/run_fuchsia_tests.md | ||
[scenic]: /concepts/ui/scenic/index.md | ||
[contribute-changes]: /development/source_code/contribute_changes.md --> | ||
[组件]: /concepts/components/v2 | ||
[运行示例程序]: /development/run/run-examples.md | ||
[ffx 命令概览]: /development/tools/ffx/overview.md | ||
[fidl]: /development/languages/fidl | ||
[fidl 指南]: /development/languages/fidl/tutorials/overview.md | ||
[fidl 概念]: /concepts/fidl/overview.md | ||
[运行 fuchsia 测试]: /development/testing/run_fuchsia_tests.md | ||
[scenic]: /concepts/ui/scenic/index.md | ||
[贡献更改]: /development/source_code/contribute_changes.md | ||
[contribute-changes]: /development/source_code/contribute_changes.md |