Make.ts
14 days ago
- #scripting
- #workflow
- #benchmarking
- The author describes a workflow improvement for running benchmarks and experiments by using a `make.ts` file instead of manually entering commands.
- Benefits of using `make.ts` include easier command editing, running multiple commands with a single key, and incremental improvements to commands.
- The workflow is especially useful for multi-process applications, where manual command entry is impractical.
- The author recommends using a consistent filename (`make.ts`) and excluding it from version control to streamline the process.
- TypeScript is preferred for scripting due to its ergonomics, ease of subprocess spawning, and concurrency support.
- The `dax` library with Deno is highlighted for its convenience in process spawning and scripting.
- A concrete example demonstrates using `make.ts` to manage a TigerBeetle cluster benchmark, showing the gradual evolution from ad-hoc commands to a structured script.
- The workflow encourages capturing commands in a file early, avoiding reliance on shell history and facilitating script evolution.