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]

Flags

Manual Flags

NameDescriptionDefault
cross

Enable to ease cross-compiling

Disabled

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

Downloads

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

Candidates

  • No Candidates
Versions [RSS] 0.1.0.0, 0.2.0.0, 0.2.1.0, 0.3.0.0, 0.3.1.0, 1.0.0.0, 1.1.0.0, 1.2.0.0, 2.0.0.0, 2.0.1.0, 2.0.2.0
Change log CHANGELOG.md
Dependencies array, base (>=4.10.0.0 && <5), bytestring (>=0.11.0.0), containers (>=0.6.0.1), directory, filepath, jacinda, microlens, microlens-mtl (>=0.1.8.0), mtl, optparse-applicative, prettyprinter (>=1.7.0), recursion (>=1.0.0.0), regex-rure (>=0.1.2.0), split, text, transformers, vector [details]
License AGPL-3.0-only
Author Vanessa McHale
Maintainer vamchale@gmail.com
Revised Revision 1 made by vmchale at 2022-08-16T11:42:53Z
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 2022-04-13T20:46:56Z
Distributions NixOS:2.0.2.0
Executables ja
Downloads 551 total (29 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 2022-04-14 [all 2 reports]

Readme for jacinda-1.1.0.0

[back to package description]

Jacinda is a functional, expression-oriented data processing language, complementing AWK.

Installation

Releases

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

Vim Plugin

There is a vim plugin.

SHOCK & AWE

curl -sL https://raw.githubusercontent.com/nychealth/coronavirus-data/master/latest/now-weekly-breakthrough.csv | \
    ja ',[1.0-x%y] {ix>1}{`5:} {ix>1}{`17:}' -F,

Rosetta

Replace

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

with

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

Documentation

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.

Status

The project is in beta, it doesn't necessarily work and there are many missing features, but the language will remain stable.

It is worse than awk but it has its place and it avoids some of the painful imperative/scoping defects.

Missing Features & Bugs

  • No nested dfns
  • Obscure renamer edge cases during evaluation
  • printf formatting for floats
  • No list literal syntax
  • Typeclasses are not documented
  • Postfix :f and :i are handled poorly
  • Polymorphic functions can't be instantiated with separate types (global monomorphism restriction)
  • Expressions with multiple folds blow up in memory sometimes

Intentionally missing features:

  • No loops

Advantages