amber
A language compiled to Bash.
A modern, type-safe programming language that catches bugs and errors at compile time.

See it in action

import { join } from "std/text"

fun get_weather(cities: [Text]): Null {
let temperatures = [Text]
for city in cities {
const result = $ curl -s "https://wttr.in/{city}?format=1" $ failed {
echo "Error: Failed to get weather for {city}"
continue
}
temperatures += [result]
}
return temperatures
}
get_weather([])
$ Click:
get_weather([])
to run the function
Amber File Icon
Terminal Icon
Modern Syntax
Modern Syntax

ECMA Script-like syntax.

Runtime Safety
Runtime Safety

Amber ensures that you handle everything that could fail.

Type Safety
Type Safety

Use strong typing to catch bugs at compile time.

Instant Docs
Instant Docs

Generate documentation automatically.

Bash Ready
Bash Ready

Interoperate with Bash scripts.

Library baked in
Library baked in

Standard library with many useful functions.

#1 Award winning project of 2024