Skip to content

v0.1.2

Choose a tag to compare

@elbayoumi elbayoumi released this 04 Dec 14:13
· 413 commits to main since this release
da50997

Native binaries now run commands, and rendering is much faster.

  • Both native backends (C and Cranelift) build command: blocks and dispatch on argv[1], matching midad run file.md <command>. An unknown command exits 2.
  • Templates render into one growable buffer on both backends. Render benchmark (200k renders, quiet 1-vCPU box, interleaved medians): C 302 -> 131 ms, Cranelift 406 -> 93 ms, Go 149 ms.
  • Templates with if/else and for render natively on both backends.
  • A native build now refuses persist: and mismatched template maps instead of silently giving a wrong result.
  • for loops in html: templates, form posts to routes, multi-line brackets, midad fmt ., run --watch, and fixes. See CHANGELOG.md for the full list.

Known limit: the C backend leaks about 160 B per render (refcounting is the next sprint's first item). See docs/LIMITS.md.

Full notes: https://github.com/mdexec/midad/blob/main/CHANGELOG.md