Coder Social home page Coder Social logo

baajarmeh / fea_libs Goto Github PK

View Code? Open in Web Editor NEW

This project forked from p-groarke/fea_libs

0.0 1.0 0.0 635 KB

Various useful c++ containers and utilities.

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

CMake 0.22% C++ 99.70% Python 0.07%

fea_libs's Introduction

feather_libraries

CI

A collection of useful libraries and utilities.

Terminology

mt

multi-threaded - A threaded function or a threaded class.

If only a few functions of a class require threading, those functions offer a _mt variation. When most of a class's APIs would be affected by using multi-threading, an alias of the class itself is provided.

cl

captureless - Use raw function pointers instead of std::function.

Many containers in feather libraries are functional in nature (state machines, event systems, etc). When storing user callbacks, the containers will default to the most flexible solution and use std::function. This can be bad for performance and can be a source of bugs due to capture lifetime mismanagement. When using _cl versions of a class, it will use raw function pointers instead, preventing the usage of lambda captures or functors.

compact

compact - Use less memory, but tradeoff speed.

Reserved for future uses, not implemented yet. Some containers like fea::fsm, fea::event_stack and fea::event_system can become very heavy. Compact versions of these use indirections to save memory, but incurr runtime costs for doing so.

Build

Install a recent CMake, Conan and compiler.

Tests are on by default, benchmarks are off by default. Use FEA_TESTS and FEA_BENCHMARKS to enable/disable them.

CMake doesn't really detect your compiler's supported C++ standard well. Use FEA_CPP14=On to compile only the C++14 libraries.

Executables are output in build/bin/.

Example

mkdir build && cd build
cmake .. -DFEA_TESTS=On -DFEA_BENCHMARKS=Off -DFEA_CPP14=Off && cmake --build .

// Optionally
cmake --build . --target install

fea_libs's People

Contributors

p-groarke avatar

Watchers

 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.