Skip to content

Add Picat Lang #1871

@Bubbler-4

Description

@Bubbler-4

https://picat-lang.org/

Description

Picat is an "ultimate declarative language" in some sense. With CP (constraint programming) and SAT (satisfiability problem) solver built-ins, you can solve complex problems such as N-Queen and Sudoku by just writing down the problem and calling solve.

Other than that, it generally feels like a mix of Haskell and Prolog.

Using this language in Code Golf should be straightforward, as you can pass command-line args as picat source.pi a b c and the args are automatically passed as a list of strings to the one-argument version of main.

Placeholder code for Picat (ATO):

main(Args) =>
    % Printing
    println("Hello, World!"),
    % Looping
    foreach(I in 1..10)
        println(I)
    end,
    % Accessing arguments
    foreach(Arg in Args)
        println(Arg)
    end.

Metadata

Metadata

Assignees

No one assigned

    Labels

    idealang-ideaAn idea for a new language.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions