Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Zig: Intended To Replace C #361

Open
11 tasks done
Tracked by #362 ...
hhstore opened this issue Jun 14, 2022 · 4 comments
Open
11 tasks done
Tracked by #362 ...

Zig: Intended To Replace C #361

hhstore opened this issue Jun 14, 2022 · 4 comments
Labels
Tutorial vscode Visual Studio Code Zig

Comments

@hhstore
Copy link
Owner Author

hhstore commented Jun 14, 2022

Zig 语言: 快速入门

  • 目标: 替代 C 语言

优势:

  • ✅ Zig CC/ Zig C++ 非常强大的编译器工具链, 替代 GCC/Clang 套件.
  • ✅ 良好的和 C 互操作能力.
  • ✅ 语法非常简单. 吸收了 Go/Rust 大量优秀特性.

zig 官方:

docs:

教程:

Zig 搭建开发环境:

@hhstore
Copy link
Owner Author

hhstore commented Jun 14, 2022

zig 生态:

zig 大厂实践:

zig 社区:

@hhstore
Copy link
Owner Author

hhstore commented Jun 14, 2022

zig 包管理工具 - zigmod:

参考示例:

# 初始化一个工程:
zigmod init 

# 添加一个包依赖:
zigmod add xxx

# 更新项目依赖:
zigmod fetch

修改构建脚本, 手动添加:

编译:

zig build run

@hhstore
Copy link
Owner Author

hhstore commented Jun 14, 2022

1

@hhstore hhstore added the Zig label Jun 14, 2022
This was referenced Jun 16, 2022
@hhstore hhstore mentioned this issue Jul 31, 2022
5 tasks
@hhstore hhstore added the vscode Visual Studio Code label Jul 31, 2022
@hhstore hhstore changed the title Zig: system programming language intended to replace C Zig: System Programming Language - Intended To Replace C Aug 8, 2022
@hhstore hhstore changed the title Zig: System Programming Language - Intended To Replace C Zig: Intended To Replace C Sep 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Tutorial vscode Visual Studio Code Zig
Projects
None yet
Development

No branches or pull requests

1 participant