The open-source Sky programming language project has released version 0.6.0, signaling its official move to a self-hosted state. Developer anzellai confirmed on GitHub that the current Sky compiler is written entirely in Sky and compiles into a roughly 7MB Go binary, completely eliminating dependencies on Node.js, TypeScript, and npm.
Compilation Pipeline Upgrades and Automation Tools
The core of this update is a new Go FFI (Foreign Function Interface) pipeline. This system can extract all exported types, fields, and methods from any Go package and automatically generate the corresponding Sky definition files (.skyi). This removes the need for developers to manually write tedious binding code, as the compiler now automatically scans FFI imports in source files and fills in any missing bindings.
To streamline the development workflow, Sky has introduced several CLI improvements. The new version supports the `sky install` command, which automatically scans project dependencies and configures FFI. Meanwhile, `sky upgrade` allows users to update the platform itself via GitHub releases. Furthermore, the compiler now features a built-in LSP server, supporting features like "go-to-definition," autocompletion, and code formatting to enhance the developer experience.
Regarding the runtime environment, Sky has implemented embedded integration for runtime files. By leveraging Go's `//go:embed` directive, all standard library wrappers and the Sky.Live runtime are bundled into a single binary, allowing users to run the software without needing to install the Go standard library separately.
The compiler has undergone rigorous multi-generational self-compilation testing, and its robustness has been validated through complex projects like the Stripe SDK. In related tests, the toolchain successfully processed over 8,900 types and 140,000 lines of binding code. The Sky project is currently open-source on GitHub, with several example projects, including `skychess`, available for developers to explore.