Skip to main content

A language for physical computing

Write code.
Move robots.

Nylon is a managed programming language designed for robotics on Raspberry Pi. Write in IntelliJ. Press run. Your robot moves.

Get started →v0 · Early Access
robot.nylon
# Import the Pi hardware proxy
import proxy device.RaspberryPi as pi

# Your robot program
entrypoint main() {
  let motor = pi.buildhat.getMotor(port = 1)

  motor.setSpeed(50)
  Task.sleep(2.seconds())
  motor.stop()

  pi.log.info("Done!")
}

01

Flash the SD card

Put Nylon on your Pi. Connect to your wifi from your phone.

02

IntelliJ finds it

Your Pi appears in the IDE. No SSH, no terminal, no setup.

03

Press run

Your code compiles and deploys. The robot moves.

No GC pauses

Reference counting memory model. No garbage collector means no unexpected pauses mid-movement.

Type-safe hardware

Hardware access through typed proxy objects. The compiler catches errors before your robot does.

Instant deploy

Press run in IntelliJ. Code compiles and streams to your Pi over WiFi in seconds.

Lego-ready

Built-in BuildHAT support. Connect Lego motors and sensors with a single import.

Raspberry Pi 3Raspberry Pi 4 · soonCompute Module · plannedJVM emulator · included

Ready to build?

Read through the docs to learn Nylon's basics. The IntelliJ plugin and native VM are both under active development.

Read the Docs

Early access · Raspberry Pi 3 · macOS, Linux, Windows