jacinda: Functional, expression-oriented data processing language

[ agpl, data, interpreters, language, library, program, text ] [ Propose Tags ]

APL meets AWK. A command-line tool for summarizing and reporting, powered by Rust's regex library.

[Skip to Readme]


Manual Flags


Enable to ease cross-compiling


Use -f <flag> to enable a flag, or -f -<flag> to disable that flag. More info


Note: This package has metadata revisions in the cabal description newer than included in the tarball. To unpack the package including the revisions, use 'cabal get'.

Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees


Versions [RSS],,,,,,,,,,,,,,,,,,
Change log CHANGELOG.md
Dependencies array, base (>= && <5), bytestring (>=, containers (>=, deepseq, directory, filepath, jacinda, microlens, microlens-mtl (>=, mtl, optparse-applicative (>=, prettyprinter (>=1.7.0), recursion (>=, regex-rure (>=, split, text, transformers, vector (>= [details]
License AGPL-3.0-only
Author Vanessa McHale
Maintainer vamchale@gmail.com
Revised Revision 2 made by vmchale at 2024-05-19T18:07:05Z
Category Language, Interpreters, Text, Data
Bug tracker https://github.com/vmchale/jacinda/issues
Source repo head: git clone https://github.com/vmchale/jacinda
Uploaded by vmchale at 2024-05-19T17:59:05Z
Distributions NixOS:
Executables ja
Downloads 782 total (79 in the last 30 days)
Rating 2.25 (votes: 2) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs not available [build log]
All reported builds failed as of 2024-05-19 [all 2 reports]

Readme for jacinda-

[back to package description]

Jacinda is a functional pattern sifting language, a smaller AWK.



There are binaries for some platforms on the releases page.

If you are on Mac, you will need to install *-librure.dylib as well.

From Source

First, install Rust's regex library. You'll need to put librure.so or librure.dylib etc. in the appropriate place.

If you have cabal and GHC installed (perhaps via ghcup):

cabal install jacinda

Editor Support

There is a vim plugin and a VSCode extension.


Unix uses record separators in many places; we can display one entry in the PATH variable with:

echo $PATH | ja -F: "{|[x+'\n'+y]|>\`$}"

Many Unix tools output much information separated with spaces. We use regular expressions to match relevant lines and then select the field with the data itself, viz.

otool -l $(locate libpng.dylib) | ja '{`1 ~ /^name/}{`2}'

To get the value of a variable (say, PATH) from the output of printenv:

printenv | ja -F= '{%/^PATH/}{`2}'



NF == 1 && $1 != "}" {
  haveversion[$1] = 1
  for (i in haveversion)
    printf "have-%s = yes\n", i


(sprintf 'have-%s = yes')" ~.{nf=1 & `1 != '}'}{`1}


See the guide, which contains a tutorial on some of the features as well as examples.

The manpages document the builtins and provide a syntax reference.


Missing Features & Bugs

  • No nested dfns
  • No list literal syntax
  • Postfix :f and :i are handled poorly
  • Streams of functions don't work
  • Higher-order functions are subtly broken

Intentionally missing features:

  • No loops



I have rewritten the code several times so forking and applying patches is fraught!

Bug reports are welcome contributions.