Hasty Briefsbeta

Bilingual

Why is this site built with C

a year ago
  • #web-development
  • #static-site-generator
  • #markdown
  • Started personal website in 2017 with notes-to-self style content.
  • Initially used Django with Nginx on Digital Ocean, but found it cumbersome for static sites.
  • Switched to Nuxt.js for static site generation, but maintenance became difficult due to framework updates.
  • Decided to use markdown files for content and sought a minimal dependency solution for parsing.
  • Tried Pandoc but found it slow and bloated with dependencies.
  • Discovered md4c, a lightweight C-based markdown parser with no dependencies.
  • Implemented a custom 250 LOC C script using md4c for fast markdown to HTML conversion.
  • Current setup is fast, portable, and minimal, with parsing done in under a second for 87 files.
  • Considered Hugo but found it too feature-heavy and not future-proof enough.
  • Final solution relies on C for longevity and minimal maintenance.