/
Cuttings
Cuttings
Things of interest.

Latest in Cuttings

  1. 13.05.2025
    The 妖怪 (Youkai) in Japanese vs Chinese Cultures
    Semantic divergence - youkai and yaoguai - one more serious than the other.

  2. 12.05.2025
    Educated Fools
    Credentialed ignorance bears a certain headmark.

  3. 11.05.2025
    A Basic Nim Workflow To Metaprogramming/Macros
    Use dumpTree, .repr(), .treeRepr().

  4. 11.05.2025
    Nim Macros - Beginner & Intermediate Exercises
    With detailed notes and thought processes.

  5. 09.05.2025
    Mimics In The Mirror
    A moral ouroboros - man mimics machines that mimic man.

  6. 07.05.2025
    Peacefully Persistent Machines
    Days pass by in blinks.

  7. 29.04.2025
    Lawyers As Homo-Programmers
    Human languages as code.

  8. 24.04.2025
    But For The Whispers Of Nim
    I find Nim beautiful... but so too Python and Go.

  9. 17.04.2025
    The Dozen's Prevalence
    The number '12' often recurs when making sets/lists of principles.

Shards

Recently read/learned.


15.12.2024
Artful Rule-Bending
The master bends rules, intently, once he knows them.

29.11.2023
Of Witchers By Trade
Being witnesses of truth.

18.10.2022
The Airplane Test of Fluency
Linguistic fluency and focus in flight.

03.07.2022
The Unpreparedness Apology
Author's classy disclaimer on imperfect work.

20.06.2022
Cultists of Science
Keep not to discovered untruths - cast them into fire.

18.06.2022
Strangling Deeds
Deeds live on, akin to children.

15.06.2022
Prepackaged Thought Cassettes
Think. If you don't, someone will, for you.

11.06.2022
Salted Correspondences
Let stones lie as they were.

11.06.2022
Vampiric Pathology
Supernatural dissections and dissectees.

Drills & Exercises

Recently practised/analysed.


06.05.2025
Nim / Exercise - `timed(expr)` macro
Measure and print how long an expression takes to run.

06.05.2025
Nim / Exercise - `swap(a, b)` macro
Swap the values of two variables.

06.05.2025
Nim / Exercise - `assertPositive(expr)` macro
Check if the expression is > 0.

02.05.2025
Nim / Exercise - Make a `logvars(a, b, c)` macro
Log several variables at once.

02.05.2025
Nim / Exercise - Make a double(x) macro
Take an identifier and generate code that doubles its value in-place.

02.05.2025
Nim / Exercise - Make an `info(expr)` macro
Get familiar with `quote do`.

27.06.2021
Eloquent Javascript / Chapter 2, Exercise 03
Chessboard - in which I review ternary operators.

12.02.2021
46 Simple Python Exercises/#10
Find common list members.

11.02.2021
46 Simple Python Exercises/#02
Find the largest of three.

© Wan Zafran. See disclaimer.