Skip to content

Instantly share code, notes, and snippets.

View hyperuser178's full-sized avatar

hyperuser178

  • Joined Aug 21, 2025
View GitHub Profile
/**
* @author [PlayerPencil](https://www.zhihu.com/question/658017543/answer/18224117594)
* Original Post:
* You might not believe it, but this is actually a simple program
* of operating system (just kidding). It's based
* on time-slice scheduling with no preemption, though it does have
* task priorities. The whole program is only about 100 lines long.
* Embedded developers, feel free to take it. It's
* been running smoothly for about 100 days now—the `systick` timer
* has even timed out several times.
@hyperuser178
hyperuser178 / dllist.wy
Created September 6, 2025 19:18
Double Linked List in Wenyan
註曰「「此為鏈表節點煉製之術也。」」
吾有一術。名之曰「節點煉製」。欲行是術。必先得一數。曰「甲」。乃行是術曰。
吾有一物。名之曰「所求節點」。其物如是。
物之「「數據」」者。言曰「甲」。
物之「「前驅」」者。言曰「null」。
物之「「後繼」」者。言曰「null」。
是謂「所求節點」之物也。
乃得「所求節點」。
是謂「節點煉製」之術也。