Zig tutorial — run test in different filesZig usually includes tests in the same source codes. Sometimes tests are put into files different from the main building source codes. To…Jan 3, 2023Jan 3, 2023
Zig Tutorial — StringIf you are confused of string or string literal in Zig, please read these two articles first: “What’s a String Literal in Zig?” and “Zig…Dec 26, 2022Dec 26, 2022
Zig Tutorial — Walk through directoryPlease note that Zig is under active development, thus, API may change. This article targets Zig 0.10 and may not work in the future.Dec 21, 2022Dec 21, 2022
Web 3.0 around Fossil SCMI am not sure it is a brilliant idea or a dumb one. But it occurs to me that we can build a decentralized internet around fossil scm. Here…Jan 12, 2022Jan 12, 2022
Fossil SCM for beginners (II): Rails 7Rails 7 RC1 is just released and it would be interesting to manage rails project with fossil. After install rails:Dec 8, 2021Dec 8, 2021
Fossil SCM for beginners (I)Git is probably the most used tool for source code management. But Fossil is also a good choice with many built-in functions. Here is a…Nov 9, 2021Nov 9, 2021
Rails 6 and jsbundlingIn the future, there will be several ways to handle javascript in rails. If Rails 6 is in use, importmap is not available. It requires…Oct 21, 2021Oct 21, 2021
Zig Tutorial #5 — Type ConversionI met some issues in conversion between integer and float and here are the summary I got from some experiments in case you have the same…Mar 24, 20211Mar 24, 20211
Zig Tutorial #4 — sortZig provides basic sort facility. It is in-place sorting.Here is an exmple from zig source code:Mar 19, 2021Mar 19, 2021
Zig Tutorial #3Zig is still a young language and lacks many libraries commonly used in other languages. Luckily we can take advantages of Unix pipe to…Mar 10, 2021Mar 10, 2021