This week's code snippet, Baklava in F*, is brought to you by Subete and the Sample Programs repo.
module Baklava
open FStar.IO
open FStar.Math.Lib
open FStar.Mul
let baklava_line (n:nat {n <= 20}) : string =
let num_spaces:nat = (abs (n - 10)) in
let num_stars:nat = 21 - 2 * num_spaces in
(String.make num_spaces ' ') ^ (String.make num_stars '*') ^ "\n"
let rec baklava (lines:string) (n:nat {n <= 20}) : string =
match n with
| 0 -> lines ^ (baklava_line 0)
| _ -> lines ^ (baklava_line n) ^ (baklava lines (n - 1))
let main = print_string (baklava "" 20)Below you'll find an up-to-date list of articles by me on The Renegade Coder. For ease of browsing, emojis let you know the article category (i.e., blog: ✒️, code: 💻, meta: 💭, teach: 🍎)
- ✒️ Even My Charitability Has Limits
- ✒️ Thoughts on the Red Button vs. Blue Button Debate
- 🍎 What Happens When I’m Forced to Teach AI?
- ✒️ Giving Up Before Even Starting
- ✒️ You Will Never Learn a Language With Duolingo
- ✒️ The Cult of Efficiency Is a Plague
- ✒️ Missing the Forest for the Trees: Why You Struggle to Solve Problems
- ✒️ What It Feels Like to Be a Toddler Again: Learning a Language
- ✒️ Things I Don’t Want AI To Help Me With
- ✒️ Why I Rebel Against the Use of Generative AI
Also, here are some fun links you can use to support my work.
This document was automatically rendered on 2026-05-08 using SnakeMD.





