Tarring files with Elm
summary
A small Elm library, elm-tar, actually encodes a list of files (text or binary) into a single tar archive using elm/file and elm/bytes and emits properly aligned 512‑byte blocks with headers, octal size fields and an 8‑byte checksum. Create-archive works; extract-archive initially left trailing nulls and needed fixes (debugged with GNU tar as control and a hex editor). The tar format requires two null 512-byte blocks to end and compression is not yet implemented.
AI-written summary · about
chapters (9)
- 0:00Introduction and Elm Day
- 1:05Why Elm Tar project
- 2:32Bytes API in Elm
- 6:27Understanding tar format
- 9:38Elm Tar API and types
- 12:32Creating tar archives in Elm
- 15:25Working at byte level
- 18:38Decoding tar archives
- 19:23Debugging with hex editor
related talks
53mAdventures in Elm: Events, Reproducibility, and Kindness
36mBuilding a Graphical IDE in Elm (...)
24mThe Clockwork Gardener: Growing an Elm App With Templates
34mBringing the Fun to Graphics Programming
47mNovel Markup Language Editing System
05mAn API search engine in Elm for Elm
28m"A 3D Rendering Engine for Elm"
14mCompilers as Therapists, or Why Elm is Good for ADHD
