Some Thoughts on Zig
date: 2022-07-23 · Tags: #good-reading, #rust, #system-programmingAn article of Chris Krycho's serveral thoughts on Zig.
A positive framing (of one part at least!) from someone who is distinctly not here for what the language is selling.
Rust is one of my major langs, of course I like it, but I also thought Zig is much more suitable for Linux kernel. IMHO:
- small, feature-less but clean and well designed
- steerable panic levels / modes
- easier to in-tree compiling
- smooth two-way interoperability to C
What a great pity that Zig is not very stable and familiar by people at that time when kernel is open a window to adopt new languages.
References:
PRE-SIP: Suspended Functions and Continuations
date: 2022-07-13 · Tags: #scala, #commentsWow, a lot of discussions even disputes. It's really hard to satisfy everyone 🤪, and hope it's good to reach further! Go go go Scala 😋
07-31 Updates:
Kind of summary article -> The future of effects in Scala?
Logging and Testing Tips in Python
date: 2022-07-02 · Tags: #pythonRecent good readings in Python logging and testing:
Logging in Python like a PRO 🐍🌴
Level | When it’s used |
---|---|
DEBUG | Detailed information, typically of interest only when diagnosing problems. |
INFO | Confirmation that things are working as expected. |
WARNING | An indication that something unexpected happened, or indicative of some problem in the near future (e.g. ‘disk space low’). The software is still working as expected. |
ERROR | Due to a more serious problem, the software has not been able to perform some function. |
CRITICAL | A serious error, indicating that the program itself may be unable to continue running. |
With primer tutorials from Python std library Logging HOWTO and Logging Cookbook, these are enough to get through to Python logging.
Testing: