Skip to content

Tiny v0.2.7 - Dynamic Runtime Downloading and Binary Size Reduction

Choose a tag to compare

@confh confh released this 21 Jun 14:43

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/runtimes folder (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 tiny compiler binary size from approximately 62 MB to 16 MB.
  • Normalized Target Names: Standardized CLI target flags to use linux-arm64 and darwin-arm64 for 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_amd64 for amd64 or tiny_linux_arm64 for 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.