We are currently working on new rules for what content should and shouldn't be allowed on this website, and are looking for feedback! See Esolang:2026 topicality proposal to view and give feedback on the current draft.

AcrylicBongo

From Esolang
Jump to navigation Jump to search

AcrylicBongo is an esolang created by User:Ezya* based on Combinatory logic with languages like Lazy K and several other similar languages on this site (stuff is probably messed up because i'm learning).

The name was a scramble of "Combinatory logic" with a word from the result removed ("omit").

Fundamentals

Application is done by writing things next to each other and associates left. K x y means (K x) y here. Left-most, outer-most rule is applied first. It reduces until it can't reduce further.

Basis

The language uses the IKBCY combinator basis:

(Normal functions)
I x = x
K x y = x
B x y z = x (y z) 
C x y z = x z y
Y f = f (Y f)

Along with church numerals 0-9:

0 f x = x
1 f x = f x
2 f x = f (f x)
etc.

The basis combined with the church numerals is complete, since it can derive the W combinator from the BCKW basis (B, C, and K are already present):

W = C (B 2 (C I)) x y = B 2 (C I) y x = 2 (C I y) x = C I y (C I y x) = I (C I y x) y = C I y x y = I x y y = x y y

Examples

Infinite loop

YI

Empty Program

This program prints nothing and just exits with code 0:

2K(44)