Some Thoughts on Zig

date: 2022-07-23 · Tags: #good-reading, #rust, #system-programming

An 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, #comments

Wow, 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 😋

PRE-SIP: Suspended functions and continuations

07-31 Updates:

Kind of summary article -> The future of effects in Scala?

Logging and Testing Tips in Python

date: 2022-07-02 · Tags: #python

Recent good readings in Python logging and testing:

Logging in Python like a PRO 🐍🌴

Credit to Monadical blog

LevelWhen it’s used
DEBUGDetailed information, typically of interest only when diagnosing problems.
INFOConfirmation that things are working as expected.
WARNINGAn 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.
ERRORDue to a more serious problem, the software has not been able to perform some function.
CRITICALA 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: