Skip to content

Commit c522821

Browse files
authored
Merge pull request #11 from zigcc/feat-09
add 2023-09 monthly
2 parents 06d2233 + dcdf994 commit c522821

File tree

6 files changed

+59
-4
lines changed

6 files changed

+59
-4
lines changed

.gitmodules

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
[submodule "themes/hugo-xmin"]
22
path = themes/hugo-xmin
3-
url = https://github.com/yihui/hugo-xmin.git
3+
url = https://github.com/jiacai2050/hugo-xmin.git

content/monthly/202211.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ date: 2022-12-04T18:45:34+0800
44
---
55

66
# [0.10.0 Release Notes](https://ziglang.org/download/0.10.0/release-notes.html)
7-
本月最大的事情就是 0.10 版本发布了,主要功能就是 self-hosted compiler,也称为『自举』,即可以用 Zig 来写 Zig 编译器,自举只所以对于一门语言如此重要,主要在于,这说明了该语言可以处理足够复杂的系统,不再只是玩具而已。编译的提升:
7+
本月最大的事情就是 0.10 版本发布了,主要功能就是 self-hosted compiler,也称为『自举』,即可以用 Zig 来写 Zig 编译器,自举之所以对于一门语言如此重要,主要在于,这说明了该语言可以处理足够复杂的系统,不再只是玩具而已。编译的提升:
88

99
- Wall Clock Time: 43 seconds to 40 seconds (7% faster)
1010
- Peak RSS: 9.6 GiB to 2.8 GiB (3.5x less memory used)

content/monthly/202309.org

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
#+TITLE: 202309 | Bun 正式发布 1.0 🚀
2+
#+DATE: 2023-09-23T10:10:58+0800
3+
#+LASTMOD: 2023-09-24T17:06:59+0800
4+
* 重大事件
5+
** [[https://ziglang.org/news/bounties-damage-open-source-projects/][Bounties Damage Open Source Projects]]
6+
在 2023-09-11 号,Wasmerio CEO 创建了 [[https://github.com/ziglang/zig/issues/17115][Support WASIX · Issue #17115]],表示想赞助 Zig 开发者,让其更好地支持 WASIX 平台。
7+
8+
Andrew 与 Loris 在这篇文章中主要阐述了这么做为什么是伤害社区的行为:
9+
1. 助长竞争,牺牲合作
10+
2. 在软件开发的商业管理方面,悬赏是一种极为简单的方法,这可能让开发者关注短期效益,忽视长期利益,比如维护成本。
11+
12+
这篇文章其实很符合 Andrew 的理念,不想让过多的热钱涌入 Zig 社区,他更想保证 Zig 的独立性,这也是他们创办 [[https://kristoff.it/blog/the-open-source-game/][Software You Can Love]] 的初衷。
13+
14+
** [[https://bun.sh/blog/bun-v1.0][Bun 1.0]]
15+
面包终于出炉了!Bun 毫无疑问是 Zig 的明星项目,它在 2023-09-08 正式发布了 1.0 版本,这对开发者来说可能没什么太大的区别,毕竟就只是个 tag 而已,但是对于广大的用户来说,这无疑意味着可以在生产环境中去使用了。
16+
17+
Bun 并不简单的是个 Node.js 替代品,而是大而全的工具链:
18+
- Transpilers,可以直接运行 =js= =jsx= =mjs= =ts= =tsx= =cjs= 文件
19+
- Bundlers,可以直接替代 webpack、esbuild 等工具
20+
- Package managers,兼容 npm,识别 =package.json= 格式,可以替代:npm、yarn、
21+
- Testing libraries,内置 test runner,支持快照测试、模拟和代码覆盖,可以替代:jest、ts-test
22+
* 观点/教程
23+
- [[https://linus.dev/posts/kiesel-devlog-1/][Kiesel Devlog #1: Now passing 25% of test262]] :: 另一个 devlog,作者写了一个 JS engine 用来学习 Zig,该作者是 SerenityOS 系统中,Ladybird 浏览器 JS 引擎 LibJS 的作者
24+
- [[https://mitchellh.com/writing/ghostty-and-useful-zig-patterns][Talk: Introducing Ghostty and Some Useful Zig Patterns]] :: Mitchell Hashimoto 在这篇文章里分享了开发终端 Ghostty 时用的 Zig 常用模式。计划在 2024 年发布 1.0
25+
- Comptime Interface
26+
- Comptime Data Table Generation
27+
- Comptime Type Generation
28+
- [[https://www.bilibili.com/video/BV1884y1D7gu/][B 站视频地址]]
29+
- [[https://www.openmymind.net/learning_zig/][Learning Zig]] :: 一个 Zig 教程,写的非常易懂,推荐每个 Zig 爱好者阅读。
30+
* 项目/工具
31+
- [[https://plugins.jetbrains.com/plugin/22456-zigbrains][ZigBrains]] :: A multifunctional Zig Programming Language plugin for the IDEA platform.
32+
- [[https://github.com/fulcrum-so/ziggy-pydust][fulcrum-so/ziggy-pydust]] :: A toolkit for building Python extensions in Zig.
33+
- [[https://github.com/jiacai2050/zig-curl][zig-curl]] :: Zig bindings to libcurl.
34+
- [[https://github.com/darkr4y/OffensiveZig][darkr4y/OffensiveZig]] :: Some attempts at using [[https://ziglang.org/][Zig]] in penetration testing.
35+
- [[https://wasmlabs.dev/articles/zig-support-on-wasm-workers-server/][Announcing Zig support for Wasm Workers Server]] :: Wasm Workers Server 是一个用于开发 serverless 应用的框架,近期增加了对 Zig 的支持,[[https://workers.wasmlabs.dev/docs/languages/zig][使用文档]]。
36+
* [[https://github.com/ziglang/zig/pulls?page=1&q=+is%3Aclosed+is%3Apr+closed%3A2023-08-01..2023-09-01][Zig 语言更新]]

layouts/_default/single.html

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,13 @@ <h1><span class="title">{{ .Title | markdownify }}</span></h1>
55
{{ if (gt .Params.date 0) }}<h2 class="date">{{ .Date.Format "2006/01/02" }}</h2>{{ end }}
66
</div>
77

8+
{{ with .TableOfContents }}
9+
<div id="table-of-contents">
10+
<h3>TOC</h3>
11+
{{ . | safeHTML }}
12+
</div>
13+
{{ end }}
14+
815
<main>
916
{{ .Content }}
1017
</main>

layouts/partials/foot_custom.html

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,19 @@
99

1010
<a href="https://emacstalk.codeberg.page/made-with-emacs/"> <img width="150px" height="44px" src="https://en.liujiacai.net/images/blog/made-with-emacs.webp" / > </a>
1111

12+
<style>
13+
#table-of-contents {
14+
position: fixed;
15+
top: 50%;
16+
right: 30px;
17+
transform: translateY(-50%);
18+
background-color: #f0f0f0;
19+
padding: 10px;
20+
box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.2);
21+
width: 250px;
22+
}
23+
</style>
24+
1225
{{ if .Page.Store.Get "hasMermaid" }}
1326
<script type="module">
1427
import mermaid from 'https://cdn.jsdelivr.net/npm/mermaid/dist/mermaid.esm.min.mjs';
@@ -36,5 +49,4 @@
3649
}
3750
});
3851
</script>
39-
4052
{{ end }}

0 commit comments

Comments
 (0)