Giter Site home page Giter Site logo

fatal's Introduction

Fatal: Facebook Template Library

Fatal is a library for fast prototyping of software in C++11 and up.

It provides a broad range of template meta-programming tools for reflection and metadata manipulation.

The goal is to speed up prototyping of complex software, while abstracting the complexity of template meta-programming and making its benefits available to a wider audience other than hard-core library writers.

Bleeding edge: https://github.com/facebook/fatal/tree/dev

Discussions group: https://www.facebook.com/groups/libfatal/

Try it online using Metashell: http://abel.web.elte.hu/shell/metashell

Examples

Demonstration applications can be found under the demo/ directory.

Philosophy

Fatal moves fast, therefore it uses the latest and greatest in C++ standards. It aims to adopt new standard features as soon as they're officially out, as long as they provide benefits like performance, productivity and usability improvements.

The master branch is considered the stable version of the library and should not change often.

The dev branch is considered the development version of the library and experiences frequent updates. If you want the bleeding edge, that's the branch for you. Be advised, though, that it is under heavy development: breaking changes might be introduced without notice.

Requirements

There are no external dependencies in order to use Fatal as a library.

In order to build and run Fatal's benchmarks and unit tests, you'll need:

In order to build and run Fatal's demos, you'll need:

Building Fatal

Fatal is a header only library, therefore no building is required.

Building Benchmarks and Unit Tests

Provided that the dependencies are properly installed:

$ clang++ -Wall -std=c++11 -I path/to/fatal \
  -o path/to/output/binary path/to/test/or/benchmark.cpp \
  -lfolly -lfollybenchmark -ldouble-conversion -lglog

or

$ g++ -Wall -std=c++11 -I path/to/fatal \
  -o path/to/output/binary path/to/test/or/benchmark.cpp \
  -lfolly -lfollybenchmark -ldouble-conversion -lglog

Building Demos

Provided that the dependencies are properly installed:

$ clang++ -Wall -std=c++1y -I path/to/fatal \
  -o path/to/output/binary path/to/demo.cpp \
  -lfolly -ldouble-conversion

or

$ g++ -Wall -std=c++1y -I path/to/fatal \
  -o path/to/output/binary path/to/demo.cpp \
  -lfolly -ldouble-conversion

Installation

There's no need to install Fatal, as long as you add its base directory to the include directories list.

For GCC and Clang, it suffices to either:

  • use the -I path/to/fatal flag
  • set the environment variable CPLUS_INCLUDE_PATH=path/to/fatal

Documentation

Extensive documentation with examples can be found inline in the source header files.

Join the Fatal community

See the CONTRIBUTING file for how to help out.

License

Fatal is BSD-licensed. We also provide an additional patent grant.

fatal's People

Contributors

juchem avatar yorkz 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.