Giter Site home page Giter Site logo

blockspacer / protostan Goto Github PK

View Code? Open in Web Editor NEW

This project forked from sakrejda/protostan

0.0 2.0 0.0 111 KB

Thin protobuf interface wrapper for Stan

License: BSD 3-Clause "New" or "Revised" License

Protocol Buffer 11.83% C++ 81.19% CMake 6.99%

protostan's Introduction

protostan

The goal of protostan is to provide an API for Stan based solely on passing (and returning) protobuf messages. The advantages of this approach are:

  • As long as a language has protobuf (version 3) support, a Stan interface can be written using solely the language and its protobuf package without the need to interface with C++.
  • Protobuf has impressive multi-language support, with apparent priority given to the C++ interface among others. Other languages important to Stan (e.g.-R, Python) also have solid support.
  • Protobuf deals with strongly-typed data and offers well-defined mappings from those types to different language-specific types.

We would like to wrap enough of the API so that a first interface for a language could be written using protobuf without touching the C++ API. For the time being this repository should contain:

  • Stan-related .proto files for other projects.
  • Versions of Stan external API functions with only protobuf messages as input and output types.

Location of Protocol Buffer Message Definitions

Message definitions are found in the proto subdirectory.

Quickstart

  1. This repository assumes that find_library, as written, will find gtest, protobuf, and stanc. If that's a tall order for your system, use this dev repo instead:
cd ${DEV_DIR}
git clone https://github.com/sakrejda/stan-dev.git
cd stan-dev

If you have all that available already:

cd ${DEV_DIR}
git clone https://github.com/sakrejda/protostan.git
cd protostan
  1. If using the dev repo, set option to build protostan and any missing dependencies. By default this includes all the required dependencies.
...... HOW?
  1. Set up a build environment and build.

With the dev repo:

cd ${BUILD_DIR}
cmake ${DEV_DIR}/stan-dev 
make

With the stand-alone:

cd ${BUILD_DIR}
cmake ${DEV_DIR}/protostan
make
  1. Run tests
cd ${BUILD_DIR}
ctest
  1. Installation, currently none.

protostan's People

Contributors

ariddell avatar koxpvp1337 avatar sakrejda avatar

Watchers

 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.