Git Product home page Git Product logo

mpl's Introduction

Build Status

Kvasir::mpl

This library is part of the Kvasir project. Kvasir is a collection of zero cost statically checked libraries for resource constrained systems including microcontrollers. More information at kvasir.io.

Introduction

This repository contains the template metaprogramming library used in Kvasir. Although this started as an experiement in TMP optimization (with quite satisfactory results) and we did not aim for mainstream use from the beginning this library is currently evolving to meet the needs of a broader audience. This library is intended for anyone developing C++ libraries which have a metaprogramming component and do not need the fusion style heterogenious support offered by boost.hana.

A short list of key design decisions:

  • compile time speed is paramount
  • continuation style public interface
  • zero cost composition of algorithms and lambdas
  • seamless integration of 'continuations as lambda' syntax

code guidelines

To keep the library performant, clean and easy to use, several guidelines have to be taken into consideration.

  • All kvasir mpl code will go into the kvasir::mpl namespace.
  • All user-facing functions must be continuations except the explicit chain termination 'identity'.
  • Anything that is not eager should have '_impl' or similar appended, and be in the ::detail namespace

learning resources

Throughout the design process @odinthenerd has kept a pretty thorough blog explaining the optimization techniques and design decisions that went into kvasir::mpl. Keep in mind that each blog piece was a snapshot in time and a few things were deprecated or changed along the way. This library was also presented at C++Now2017 which can be found here.

Contributors

We'd like to thank the following contributors, in alphabetical order:

Maintainer

This library is maintained by Chiel Douwes (@chieltbest). Requests for push rights could be addressed to him. The maintainer is also the only one who could approve pull requests to master.

mpl's People

Contributors

odinthenerd avatar chieltbest avatar jonathanpoelen avatar korken89 avatar andi-d avatar cvrxx avatar nilsdeppe avatar

Watchers

James Cloos 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.