r/ProgrammingLanguages • • Feb 01 '26

Is your language ready to be tried?

I occasionally look around at other programming languages to see if I can learn something new. This year for adventofcode I tried using two new languages that are present here in this forum, but sadly I wasn't able to write working programs for the desired cases due to implementation bugs.

If I wanted to try your programming language, will it work? If you believe it will, please proceed to convince me why I would want to.

Where can I find it?

What is the fundamental idea of the language that makes it different from or more pleasant to use than existing languages?

Would I understand this idea from simple programs like adventofcode? Maybe if I explicitly wrote the code a certain way?

If not, what kind of program should I try to write to understand it?

Are there tutorials, example programs and/or reference documentation?

What are the rough edges and annoyances I would have to deal with?

Any gotchas?

56 Upvotes

57 comments sorted by

View all comments

1

u/Relevant_South_1842 Feb 26 '26

No. But getting closer. 

# sprout: cells via indent, blocks are values, no special forms required

items :
    bolt :
        qty   : 10
        price : 2
    nut :
        qty   : 25
        price : 1


mul :
    left * right


if :
    [cond ~then ~else |
        cond? [ then! else! ]
    ]


each :
    [xs f |
        xs.keys each-key [k | f! xs.k ]
    ]


total :
    sum : 0
    each items [it |
        sum : sum + (it.qty * it.price)
    ]
    sum


print total          # 45


a : items
b : a
b.bolt.qty : 99
print a.bolt.qty     # 10
print b.bolt.qty     # 99


number <<
    times : [n block |
        i : 0
        while [i < n] [
            block!
            i : i + 1
        ]
    ]


3 times [
    print "hi"
]