Code Monkey home page Code Monkey logo

taf's Introduction

Introduction

Taf(Trading Application Foundations) provides a framework for low-latency trading system development based on Intel x86-64.

Features

  • Based on Intel TBB, SIMD(AVX2+), lock-free queue, etc to optimize the performance.
  • Nanosecond timestamp available.
  • Developed with standard C++, corss-platform (windows and linux) is definitely supported.
  • All dependencies included in pack, no need to download any other libs (like TBB).
  • Provide C interface for multiple language calls (like Python).
  • The delay for a simple application could be less 10us.

Before Compilation

  • Check your hardware availability to make sure that AVX2 or AVX512F is supported.
  • C++17 compiler is needed.
  • TBB libs and binary located in taf/libs/tbb/bin/

Compilation

Windows

  • Must use Visual Studio 2019 or above
  • open taf/master/build/msvs/taf.sln
  • Must select x64 mode
  • Open taf/master/src/libs/taf/common/simd/simd.hpp to switch USE_AVX512 or USE_AVX512_BELOW micro (already existed in the file), depending on your hardware.
  • Add /std:c++latest to C/C++ -> Command Line
  • Config TBB env path in Configration->Debugging->Environment: path=..., could refer the properties config in example

Linux

  • gcc 8.2 or above
  • Example makefile is in taf/master/build/
  • Must add -mavx2(-mavx512f) -std=c++17 to g++ command line
  • Config TBB env path like LD_LIBRARY_PATH=... : /taf/libs/tbb/bin/linux
  • example:
    $ cd taf/master/build
    $ make
    $ ./example

taf's People

Contributors

gifitsp 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.