Coder Social home page Coder Social logo

kdb-c-library-apis's Introduction

kdb+/C++ Library APIs

Regex Boost API

1) Tutorials for learning how to use Regex Boost Library

https://medium.com/factory-mind/regex-tutorial-a-simple-cheatsheet-by-examples-649dc1c3f285

https://theboostcpplibraries.com/boost.regex

Discussions on issues with strdup:

https://stackoverflow.com/questions/12984948/why-is-strdup-considered-to-be-evil

Portability is an issue, with the following defined if compiled in VSC++ with Windows OS

// String copy, allows portability between Visual Studio C++ and UNIX compilers

#if defined(WIN32) || defined(_WIN32) #define strdup _strdup #endif

 
2) Installation Instructions

sudo apt-get install libboost-regex-dev

g++ -shared -fPIC regex.cpp -lboost_regex -o $QHOME/l64/regex.so

     

Hashing API

1) Tutorials for learning how to use Regex Boost Library

It can only accept strings/symbols. There are two flavours provided here in the repo, i.e. cppStdHash and cppMapHash. The former is part of the functional lib (i.e. faster though less collision-proof), while the latter from the unordered_map library that's usually used for building hash tables (i.e. likely more collision-proof).

 
2) Installation Instructions

g++ -shared -fPIC hash.cpp -o $QHOME/l64/hash.so

     

Identify Functions Under Shared Objects

Run the following example command:

nm -D --defined-only regex.so | grep -v _

kdb-c-library-apis's People

Contributors

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