v1.0 โ€” Now Brewing

alescript

A language that ferments ideas into reality.
Think like a brewmaster, code like a poet.

brew hello from water, barley, hops, yeast.

Core Concepts

Everything in alescript maps to the art of brewing. Think like a brewmaster.

Brews & Ingredients

Variables are brewing ingredients. Water, barley, hops, and yeast each contribute to growth rate.

brew lager from water, 1 barley, 2 hops, 1 yeast.

Fermentation

Values don't compute instantly โ€” they ferment over time, forcing strategic thinking.

wait for 5 days.
taste lager. // "12.5% ABV"

Aging

Need exact values? Let your brew mature to a precise ABV.

age lager until 5.2%.

Beer Arithmetic

Blend, fortify, and filter โ€” math expressed through brewing metaphors.

blend ipa with stout.
fortify porter by 3.
filter ipa by 2.

Recipes

Functions are recipes. The last line is the return value.

recipe my_pilsner()
  brew pilsner from water, barley.
  age pilsner until 4.8%.
  pilsner
end.

Brewmaster's Judgment

Conditionals use the brewmaster's intuition โ€” comparisons have ยฑ10% imprecision!

judge if ale is stronger than 5.0%:
  toast "a strong ale!"
end.

See it in Action

01

Hello, World!

hello.ales
toast "hello, world!".
02

Brewing a Perfect Lager

lager.ales
brew lager from water, barley, hops, yeast.

age lager until 5.2%.
keg lager.

wait for 3 days.
taste lager. // "5.2% ABV" โ€” perfectly preserved
03

Fibonacci Sequence

fibonacci.ales
recipe fibonacci(n)
    brew a from water, barley.
    wait for 1 day.
    brew b from water, barley.
    brew temp from water.

    if n is 0:
        b
    else:
        repeat n times:
            relabel temp as a.
            blend a with b.
            relabel b as a.
            relabel a as temp.
        b
    end.
end.

toast fibonacci(10). // "55% ABV"

Beer Arithmetic

There is no subtraction in alescript. Seriously, how would that even work?

Beer arithmetic operators
OP METAPHOR DESCRIPTION EXAMPLE
+ blend Blending two brews together blend lager with stout.
ร— fortify Scaling up the brew fortify porter by 3.
รท filter Weakening a beer with water filter ipa by 2.

Why alescript?

Readable & Expressive

Every line of alescript feels like poetry.

Time-Oriented Execution

Instead of instant results, computations "brew" over time.

Metaphor-Driven

Every operation tells a story.

Start Brewing Code

alescript isn't just a language โ€” it's a philosophy of brewing code with patience and mastery.

$ git clone https://github.com/alesdrobysh/alescript.git
$ cd alescript
$ cargo build --release