Hasty Briefsbeta

Thoughts on the Word Spec in Rust

3 days ago
  • #word-processing
  • #legal-tech
  • #rust-programming
  • Tritium focuses on owning the word processor to deliver superior legal tech.
  • The Word specification allows for deeply nested structures, challenging to implement in Rust.
  • docx_rs crate was initially used for generating and reading Word documents in Tritium's early stages.
  • Tritium now uses a custom docx module to ensure control over its core product functionality.
  • The round-trip test is critical for Tritium to ensure no data loss during document edits.
  • docx_rs uses an enum-based AST to efficiently represent XML entities, saving memory.
  • Tritium moved away from docx_rs as it's optimized for document creation, not consumption.
  • Joel Spolsky's principle supports building in-house solutions for core business functions.