202305 | HTTP is built-in

发布: 2023-06-16   上次更新: 2023-06-17

文章目录

重大事件

这个月主要的事情就是 HTTP server 在标准库的增加了,具体可参考:

观点/教程

Integrating Zig and SwiftUI
Mitchell 在用 Zig 实现了一个终端后,虽然没有把源码放出来,但是有了这个文章总结。
Zig Language Server And Cancellation
Matklad 对 ZLS 实现分析:如何快速响应用户的编辑命令,在作者来看,最主要是 server 端要能够及时取消已经过期的操作。
Bootstrapping Uber’s Infrastructure on arm64 with Zig
Zig 社区的老朋友 Motiejus Jakštys 在 Uber 的 arm 化过程中,探索了如何使用 Zig 提供对 Go 代码的交叉编译。
The Worst Zig Version Manager
在没有 Zig 环境的机器上,如何安装 Zig ?作者的思路是每个项目都附带一个脚本来做这件事,这种方式看似比较笨拙,但很有实用性。
Writing an init system in a language I don't know
作者介绍了使用 Zig 开发一个 init 系统的经历,文中主要吐槽了现在 Zig 的文档严重不足 🙃,但看得出,作者依旧是喜欢 Zig 的。
SIMD with Zig
作者演示了如何利用 SIMD 函数来改进 indexOf 函数
Anytype Antics
作者介绍了如何使用 anytype ,一些示例包括:Duck Type、Traits、Comptime Tagged Unions
Using Zig | My Initial Thoughts on Ziglang
视频
Zig: First Impressions
视频
(Possibly) LVGL in WebAssembly with Zig Compiler
Initial Commit: Zig Build System
Writing DNS resolver in Zig

项目/工具

Zig by Example
非常好的学习资料。Learn How to use Zig’s Standard Library, by small examples.
sleibrock/zigtoys
All about Zig + WASM and seeing what we can do
Aandreba/zigrc
Zig reference-counted pointers inspired by Rust's Rc and Arc
Hanaasagi/struct
Deserialize env vars into typesafe structs
tristanisham/minigrep
A Zig version of the Rust book's minigrep tutorial program
jsomedon/night.zig
Simple tool that just install & update zig nightly.
4imothy/termy48
A 2048 game to run in terminal
zig-html-example
一个有趣的演示,利用 comptime 来定义 HTML 中的 Tag
KilianVounckx/rayz
另一个 Raylib 的 bindings
mitchellh/zig
Objective-C runtime bindings for Zig (Zig calling ObjC).

Zig 语言更新

建议/反馈✉️

  1. 关注微信公众号,加微信群与更多人一起畅聊 Zig
  2. 发现内容错误或链接失效?欢迎提交 PR
  3. 想要分享 Zig 使用经验,欢迎给我们供稿