Coder Social home page Coder Social logo

incremental-tutorial's Introduction

On-line Applications with Incremental

This repo is the basis of a tutorial that was given at CUFP 2017. The tutorial shows you how to use Incremental, a library for building efficient on-line algorithms, for writing a simple monitoring system, similar in spirit to NagiOS.

The repo is organized into three directories:

  • shared, containing a library to be used in writing tutorial examples. This provides the basic data model for our monitoring application, a server which will provide the data, and a basic non-incremental client for displaying views of that data stream.
  • exercises, which contains exercise descriptions, and is where you’ll develop your own solutions.
  • solutions, similar to exercises, but containing our answers to the problems.

In order to complete the tutorial, there are some opam packages you’ll need to install; in particular:

  • async
  • incremental
  • sexp_pretty
  • incr_map

You’ll also probably benefit from having these packages installed, though they’re not strictly necessary:

  • ocp-indent
  • merlin
  • utop

A final note: if you don’t have an editor that’s nicely set up to work with OCaml, we recommend Visual Studio Code, which is quite easy to set up. In particular, Merlin and ocp-indent work correctly pretty much out of the box. Having good auto-completion and type-throwback will make this tutorial more rewarding.

If you’re an emacs or vim-user, you can try opam’s user-setup package, which can do a decent job of configuring both emacs and vim for use with Merlin and ocp-indent.

incremental-tutorial's People

Contributors

tmcgilchrist avatar yminsky avatar yminsky-janestreet avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

incremental-tutorial's Issues

Paths to run examples don't match local paths.

A minor issue with the paths suggested for running ex2 don't match what I see locally.

https://github.com/yminsky/incremental-tutorial/blob/master/exercises/ex2.ml#L25-L28

    ./_build/exercises/main.exe server -port 8080 &
    ./_build/exercises/main.exe ex2 simple -port 8080

What I end up with when i build with jbuilder is an extra default in the path

    ./_build/default/exercises/main.exe server -port 8080 &
    ./_build/default/exercises/main.exe ex2 simple -port 8080

If that path sounds right I'll fix up the various comments so that they have default and match what I see locally.

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.