r/Kotlin • • 2h ago

kSTEP v0.6.0: a type-safe Kotlin DSL for STEP (ISO 10303), now installable without building it from source

Thumbnail gallery
1 Upvotes

kSTEP is a type-safe Kotlin DSL for the STEP standard (ISO 10303), open source under Apache 2.0. You write product structure and geometry as a Kotlin script and get a STEP file. Until now you had to build it from source. v0.6.0 changes that. It is a pre-release, like every 0.x, and the API is unstable.

Install

  • Homebrew, macOS on Apple Silicon: brew install kstep-lang/kstep/kstep
  • APT repository for Ubuntu 26.04 x86-64 at https://apt.kstep.dev, signed with its own key; the same .deb is in the release
  • Containers: ghcr.io/kstep-lang/kstep-cli:0.6.0 (JVM only, amd64 and arm64) and :0.6.0-occt (with OpenCascade geometry, linux/amd64 only)
  • Scoop bucket for Windows: command line only, no geometry
  • Twelve library modules on Maven Central, group dev.kstep, without native libraries

The picture

A two-stage spur gear train: pinions with 10 teeth, gears with 20, module 2.5, involute teeth (each flank is one arc through points of the involute, not the exact curve). Pinion and gear are one part each, used twice, and the colour is set per use:

styleInstance(uA, StepColour.hex("#F39C12"))
styleInstance(uC, StepColour.hex("#F1C40F"))

Seven parts, fifteen uses in the assembly. It was built with the DSL and looked at in the viewer of kSTEP Desktop. It is a demo, not an engineered gearbox.

Checked

  • Homebrew on an Apple Silicon Mac: install, test, linkage, audit
  • The .deb and the APT repository in a clean Ubuntu 26.04 container (amd64, emulated): geometry available, STEP export with geometry, read back without findings
  • The -occt image, the same way; an anonymous pull of both image tags

Not checked, and the limits

  • Linuxbrew, and Scoop on Windows (never run there)
  • Native ZIP archives for linux-x86-64 and macos-aarch64 (unsigned, not notarized); a manual download and unzip was not tried
  • Sketches (PlaneGCS) from a package
  • No Intel Macs, no geometry on Windows, APT only for Ubuntu 26.04 amd64
  • The -occt image ships OpenCascade (LGPL-2.1 with exception); its source offer has not been reviewed by a lawyer
  • kSTEP Desktop has a built-in MCP server: an agent can read the open script, errors and parts; editing and file actions are separate opt-in switches. Unit tested, not yet tried with a real agent. No desktop download; it runs from source (./gradlew :kstep-desktop:run)

Details: https://kstep.dev/install · Source: https://github.com/kstep-lang/kSTEP

Criticism is welcome.


r/Kotlin • • 19h ago

GitHub - jbax/parent: A shared gradle build setup for java projects of any size, whether you're working on a single library, 100+ separate git repositories, or a few multi-module projects sitting side by side.

Thumbnail github.com
0 Upvotes