Tiny v0.2.7 - Dynamic Runtime Downloading and Binary Size Reduction
This release introduces dynamic runtime downloading, significantly reducing the compiler's binary size.
Compiler and Toolchain Changes
- Dynamic Runtime Caching: The compiler no longer embeds target platform runtimes inside its own binary. Runtimes are now cached locally in the
~/.tiny/runtimesfolder (and equivalent on Windows) when first required. - On-Demand Runtime Downloads: If a target runtime is not present locally, the compiler dynamically downloads it from the GitHub releases page using the current compiler version.
- Binary Size Reduction: Removing the embedded runtimes reduces the
tinycompiler binary size from approximately 62 MB to 16 MB. - Normalized Target Names: Standardized CLI target flags to use
linux-arm64anddarwin-arm64for ARM64 platforms.
Installation and Downloads
To install Tiny, download the compiler binary for your specific operating system:
- Windows: Download
tiny_windows_amd64.exe - Linux: Download
tiny_linux_amd64for amd64 ortiny_linux_arm64for arm64 - macOS (Apple Silicon): Download
tiny_darwin_arm64
thanks to @lodenrogue for the initial linux arm64 issue and pull request that helped surface the missing target support.
Note: The tiny_runtime_* assets listed in the releases page are managed automatically by the compiler during the pack and dist commands. You do not need to download them manually.