Code Monkey home page Code Monkey logo

atria's Introduction

This Repository is Unmaintained

This repository is currently unmaintained and will not see further development here.

Atria

Atria is a toolkit for modern C++ development.

It provides core components that extend the standard library capabilities. It provides various libraries of general interest, in the spirit of the STL, Boost, Adobe Source Libraries, or Facebook's Folly and Fatal.

This is an open source project. You're encouraged to use it, modify it, and redistribute it.

Status

Atria is written in standard C++11 and compiles with recent versions of GCC and Clang.

This project is under active development and its API is not stable yet. Thus it is not suitable for most production systems. However it is thoroughly tested, and we encourage you to try it. Your feedback is very welcome.

Modules

  • atria::prelude provides basic functional programming tools in the spirit of those in Clojure core and Haskell's Prelude.

  • atria::variant provides tools for better usability of Boost.Variant and Eggs.Variant and is customizable to other sum type implementations.

  • atria::meta provides several metaprogramming tools, including some Boost.MPL adaptors for several variadic types and concept checking facilities.

  • atria::estd provides C++11 compatible implementations of some C++14 and beyond standard library components.

  • atria::xform provides an efficient C++ implementation of transducers, a concept introduced in Clojure by Rich Hickey.

  • atria::funken provides a experimental library for writing epochal and functional data-models.

  • atria::testing provides testing tools and frameworks for writing spies, mocks, micro-benchmarks and more.

Documentation

Reference documentation can be browsed here.

It can be generated by executing in the project directory: doxygen doxy/doxygen.config

Talks

Dependencies

Other dependencies are vendored via submodules. Make sure to run git submodule update --init --recursive before building.

License

Atria is distributed under the MIT license (see LICENSE).

Copyright (c) 2014, 2015 Ableton AG, Berlin

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

atria's People

Contributors

arximboldi avatar brs-ableton avatar hel-ableton avatar jpinnix avatar mst-ableton avatar sbs-ableton avatar weshoke 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  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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 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  avatar  avatar

atria's Issues

ableton include directory missing

Compiling a dead simple test

#include <iostream>
#include <vector>
#include <atria/xform/transduce.hpp>
#include <atria/xform/transducer/map.hpp>

int main(int argc, const char * argv[]) {
    auto v1 = std::vector<int> { 1, 2, 3, 6 };
    auto v2 = std::vector<int> { 1, 2, 1 };

    atria::xform::transduce(atria::xform::map(std::multiplies<int>{}),
                        std::plus<int>{},
                        1,
                        v1, v2);

    return 0;
}
In file included from  main.cpp:3:
In file included from ../atria/src/atria/xform/transduce.hpp:29:
In file included from ../atria/src/atria/xform/reduce.hpp:29:
In file included from ../atria/src/atria/xform/detail/reduce_nested_non_empty.hpp:32:
In file included from ../atria/src/atria/xform/detail/reduce_nested_non_empty_variadic.hpp:33:
../atria/src/atria/meta/pack.hpp:29:10: fatal error: 'ableton/build_system/Warnings.hpp' file not found
#include <ableton/build_system/Warnings.hpp>
         ^
1 error generated.

Split src/ directory

I would like to split the src/ directory into include/, src/ and test/.

Rationale: some of the library modules are header-only. It is hard to see what modules are header only and which not at the moment. By doing the split, one can easily see what modules are not header only by looking at the src/ folder. Also, it makes writing packaging rules a bit easier, and it's easier for newcomers to find the tests.

RFC @toh-ableton @sbs-ableton

Template Recursion with product xform

Is there a way to generate a product of sequences using the count xform?

auto idx = atria::prelude::comp(atria::xform::take(2), atria::xform::count(0, 1));
auto vec = into_vector(atria::xform::product(idx), idx);

Generates the error:

atria/xform/transducer/product.hpp:100:18: fatal error: recursive template instantiation exceeded maximum depth of 256
    comp(product(std::forward<InputRangeT>(r)),

CMake issues

Apparently, the latest Homebrew version of CMake (3.1.3) doesn't support the set(CMAKE_CXX_STANDARD 11) line in CMakeLists.txt, and the build throws various errors because of the missing -std=c++11 flag:

CMake Error in CMakeLists.txt:
  Target "atria" requires the language dialect "CXX11" (with compiler
  extensions), but CMake does not know the compile flags to use to enable it.

In the end I could get Atria to compile by replacing the above line in CMakeLists.txt with the following:

set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")

For a better solution, I just installed the latest CMake 3.3.1 from http://www.cmake.org, and ran
/Applications/CMake.app/Contents/bin/cmake . in the Atria folder.

Maybe a minimum version of CMake should be listed as a dependency in the docs?

Upgrade to C++14

C++14 is widespread enough and even Visual Studio support it. In fact, the only reason the library can't be used in Visual Studio nowadays is expression sfinae, not C++14.

This involves removing some of the C++14 stuff from estd, ABL_DECLTYPE_RETURN and some other transition adaptors. It does not necessarily mean migrating all code to shorter C++14 idioms (e.g. transducers).

I would like to start working on this soon. RFC @toh-ableton @sbs-ableton

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.