1. Arithmetic
+add,-subtract,*multiply,/divide()parentheses (bidmas precedence)-venumbers%modulo operator
Just type crag in your console: exit to quit.
...starts in 1 second [note 1]
the boring bits:
+add,-subtract, *multiply, /divide() parentheses (bidmas precedence)-ve numbers% modulo operatorJust type crag in your console: exit to quit.
...starts in 1 second [note 1]
the cool stuff:
Grab AI info directly into your calculations.
get text ... ?<query>
get amount ... ?^<query in units>
Use amounts in calculations, store them in memory.
...most popular LLM platforms
CragCLI is Open Source Software written in Raku, provided under Artistic License 2.0.
*PROVIDED "AS IS" WITHOUT WARRANTY OR LIABILITY*
*NOT INTENDED FOR USE IN MISSION CRITICAL APPLICATIONS*
Install the Raku compiler:
Linux => curl https://rakubrew.org/install-on-perl.sh | sh
macOS => curl https://rakubrew.org/install-on-macos.sh | sh
Windows => download https://rakubrew.org/install-on-cmd.bat and then execute that script in a CMD terminal
Then:
rakubrew downloadrakubrew switchSee https://raku.org/install for other platforms and package managers
Install and run App::Crag:
zef install App::Crag --/testcrag '0.1+0.2' one-linercrag interactive REPLcrag --helpStarts in approx. 1sec (as measured on an M1 MacBook, takes longer on first run).
For LLM::DWIM features, you will need e.g. a free of charge ChatGPT key and go export OPENAI_API_KEY=mykeygoeshere.
Currency exchange rates are provided as at the installation date, reinstall crag (zef install App::Crag --/test --force-install) to refresh them.
crag is a full Raku repl - so you can write subroutines, loops, conditionals, comparisons and so on (see https://docs.raku.org)
If your calculations outgrow the crag app, you can use the underlying crag modules in Raku code.