Code Monkey home page Code Monkey logo

grover's Introduction

Build Status

GroveR brings Declarative Programming to data-centered applications. For example, suppose your code looks like this:

create_foo <- function(bar, BaZzO) {
  ## create foo stuff here...
}

create_bar <- function() {
  ## create bar stuff here...
}

create_baz <- function() {
  ## create baz stuff here...
}

create_quux <- function(bazz) {
  ## create quux stuff here...
}

x <- create_bar()
BAZ <- create_baz()
result <- create_foo(x, BAZ)

Using the tools of GroveR, that can be transformed to this:

App <- GroveR$new()
`%createdBy%` <- App$auto

foo %createdBy% function(bar, baz) {
  ## create foo stuff here...
}

bar %createdBy% function() {
  ## create bar stuff here...
}

baz %createdBy% function() {
  ## create baz stuff here...
}

quux %createdBy% function(baz) {
  ## create quux stuff here...
}

## This builds any dependencies necessary to create 'foo'
result <- App$getArtifact('foo')

As benefits, the application now has:

  • automatic caching of intermediate artifacts

  • intelligent rebuilding of artifacts when dependencies change

  • standardized naming of data artifacts throughout the application

  • configurable logging of artifact creation using futile.logger

  • graphical tools to show data dependencies (colors indicate what's up-to-date or not):

    data dependencies

Copyright (c) 2016 Windlogics, Inc. See the DESCRIPTION file for licensing information.

grover's People

Contributors

kenahoo avatar

Watchers

 avatar James Cloos avatar  avatar

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.