What i can not create, i do not understand. —— Richard Feynman
Two steps to understand how a system works:
-
Get a general high-level idea.
-
Deconstruct it from the low-level and re-implement it in a simplest way。
-
Mirai-js,一个运行在 Node.js、浏览器(UMD)下的,简单的 QQ 机器人开发框架。
-
在 Raspberry pi pico 板子上开发的库,抽象了 Polling 过程,实现了基于事件循环的无栈协程调度器,为上层逻辑提供异步 api。
-
一个 400 行的 Text CRDT 的玩具实现,它在分布式去中心化环境下实现了最终强一致性。
-
协程调度器的底层调度逻辑的 python 实现 (eventloop / eventqueue / asyncapi / io)。
-
适配 Thunk/Promise 的上层协程调度逻辑封装。
-
尝试使用通过 c 宏实现的生成器、Promise 以及 epoll 在 c 中实现一个协程的抽象。
-
Promise 实现。
-
Web 后端开发框架,实现了动态路由和中间件。
-
软渲染器的 c 实现。
-
最近复活的一个 vscode 插件,几乎是在 vscode 上开发 Raspberry pi pico 的唯一选择,fork from 半年前停止维护的 cpwood/Pico-Go.
-
我的博客所有代码都在这里,文章都是 .md,整个博客几乎是静态的,服务端只提供了从文件系统生成侧栏结构的接口。 文章托管在 gitee 上,用这个脚本自动推送,服务端会定时拉取。
-
一个用 Java 写的玩具 Web 框架,底层是 socket,简单地解析请求报文,简单地响应客户端。
-
用于 hebau 教务系统的爬虫,可以生成某个学号范围内的学分绩排名,它的设计很糟糕,现在也许可以勉强跑起来。
-
Python 常用内置容器函数式方法的链式调用包装器。
-
用于方便地将图片上传到 oss 服务,并生成一个 markdown 图片到你的剪贴板,它的设计非常糟糕,但能正常工作。
-
一个简单的 JavaScript 对象序列化器实现。
-
可配置的反向代理服务实现。
-
koa 中间件的实现
- koa-shutdown-gracefully 优雅停机
- koa-bodyparser body parser
- koa-static 静态资源访问服务
- koa-etag etag 中间件实现
- koa-router 简单路由实现,使用 trie 实现的动态路由可以看我的另一个项目 angie-dotnet
-
让 chatGPT 自动回答知乎的问题。