Skip to content

Releases

Kiln 0.2.1

Choose a tag to compare

@jaredcassoutt jaredcassoutt released this 27 Oct 05:31
  • Gradients and other non-color styles in Text(...).foregroundStyle(...) now render (they were dropped on the Text path).
  • New example: a two-player chess game with legal moves, check and checkmate, castling and promotion, sliding pieces and a dark UI (Examples/Apps/Chess.swift). Kiln Lab plays Scholar's mate with it natively and in Kiln; every step matches.

Kiln 0.2.0

Choose a tag to compare

@jaredcassoutt jaredcassoutt released this 27 Oct 02:47

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.

Kiln 0.1.0

Choose a tag to compare

@jaredcassoutt jaredcassoutt released this 15 May 03:37

Initial public release. Carved out of Haplo's in-app live-preview engine.

What's included

  • Kiln.run(_:) and KilnView(code:) public API
  • Full Swift/SwiftUI interpreter: structs, @State, NavigationStack/Link, .task / async / await, ForEach, AsyncImage, URLSession, JSONDecoder, and ~50 other language + framework features (see STATUS.md)
  • Per-instance @State scoping across NavigationLink pushes
  • 306 tests passing

Install

.package(url: "https://github.com/haplollc/Kiln.git", from: "0.1.0")