Code Monkey home page Code Monkey logo

jacinda's Introduction

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

Installation

Releases

There are binaries for some platforms on the releases page.

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.