Skip to content

Kiln 0.2.0

Choose a tag to compare

@jaredcassoutt jaredcassoutt released this 27 Oct 02:47
· 8 commits to main since this release

Kiln's second engine is now the default for Kiln.run and Kiln.validate.

  • Real Swift semantics: structs as values, classes (ObservableObject, @Observable), enums with payloads and pattern matching, closures that capture by reference, do/catch, extensions.
  • Every interpreted View is a real SwiftUI view that owns its @State. List, Form, Section, Picker, Stepper, TextField, sheets, navigation, tabs, search, toolbars, timers, Swift Charts and custom Shapes render with the real controls.
  • Networking: URLSession (data(from:), dataTask), URLComponents, and JSONDecoder into your own Decodable types.
  • Kiln.swiftSource(fromMarkdown:) and swiftSource(running:inReply:) run the code in a chat reply, even when a model splits one app across blocks.
  • Kiln.randomSeed, KilnRandom and the -KilnRandomSeed N launch argument make runs repeatable.
  • Kiln Lab (Lab/, Tools/iterate.sh) runs each example natively and in Kiln under the same UI test; all six example apps match native on every step.

Code written for the original interpreter's guided dialect (GameCanvas, .onTick, Storage) still runs on it; Kiln.engine = .legacy forces it everywhere.