AI Decision System
Replayable, offline-verifiable records for AI-assisted go/no-go decisions: experiment promotions, typed model answers and human-approved actions.
Xarpite (xa) - An interpreted language for one-liners
저장소 README에서 가져옴
README 전체를 불러오는 중입니다.
README 전문 보기 ↗Xarpite (xa) - An interpreted language for one-liners
$ xa ' "Hello, World!" '
# Hello, World!
$ xa '1 .. 3 | x => [1 .. 3 | x * _] >> CSV'
# 1,2,3
# 2,4,6
# 3,6,9
$ seq 1 3 | xa 'IN | +_ * 10'
# 10
# 20
# 30
$ echo '{"a": [10, {"b": 30}, 20]}' | xa 'IN | _.$*.a.1.b'
# 30
$ xa 'f := n -> n <= 0 ? 1 : n * f(n - 1); f(5)'
# 120
$ xa '(f -> f(f))(f -> n -> n <= 0 ? 1 : n * f(f)(n - 1))(5)'
# 120
Xarpite (/ˈʃɑrpaɪt/) is an interpreted language designed for one-liner scripts.
It aims to provide flexibility and functionality in a minimal amount of code
with most of the basic features accessible through operators.
Its command-line interface is optimized for writing executable programs with minimal code.
For example, the command $ xa ' "Hello, World!" ' will display Hello, World!.
An online playground is available for running Xarpite and trying examples interactively.
Run the following command to download Xarpite into ./xarpite/ in the current directory.
curl -s https://mirrgieriana.github.io/xarpite/download.sh | bash
Verify the downloaded Xarpite with the following command:
$ ./xarpite/xarpite -e ' "Hello, World!" '
Hello, World!
Run the following command to install Xarpite into any directory and create links to the executables in any directory.
curl -s https://mirrgieriana.github.io/xarpite/install.sh | bash -s <install_dir> <bin_dir>
The following command installs it for a single user.
curl -s https://mirrgieriana.github.io/xarpite/install.sh | bash -s ~/.local/share/xarpite ~/.local/bin
The following command installs it system-wide.
curl -s https://mirrgieriana.github.io/xarpite/install.sh | sudo bash -s /usr/local/lib/xarpite /usr/local/bin
You can also download Xarpite binaries directly from Maven Central Repository.
https://repo1.maven.org/maven2/io/github/mirrgieriana/xarpite-bin/
The Xarpite logo and icon use the font Monaspace Krypton.