Code Monkey home page Code Monkey logo

ffi's Introduction

FFI for kdb+

ffiq is an extension to kdb+ for loading and calling dynamic libraries using pure q. It is part of the Fusion for kdb+ interface collection.

The main purpose of the library is to build stable interfaces on top of external libraries, or to interact with the operating system from q. No compiler toolchain or writing C/C++ code is required to use this library.

We are grateful to @abalkin for allowing us to adapt and expand on his original codebase.

Please report issues in this repository.

Requirements

  • Operating system: Linux, macOS 10.12+, Windows 7+
  • kdb+ v3.5 or higher
  • libffi 3.1+ as per instructions. RHEL/CentOS 6/7 provided libffi 3.0.5 can be used as well.
environment installation
Ubuntu Linux with 64-bit kdb+ sudo apt-get install libffi-dev
Ubuntu Linux with 32-bit kdb+ sudo apt-get install libffi-dev:i386
RHEL/CentOS with 64-bit kdb+ sudo yum install libffi-devel
RHEL/CentOS with 32-bit kdb+ sudo yum install glibc-devel.i686 libgcc.i686 libffi-devel.i686
macOS (no action required)
Windows (no action required)

Installation

Download

Download the appropriate release archive from releases page.

Unpack and install content of the archive

environment action
Linux tar xzvf ffi_linux-v*.tar.gz -C $QHOME --strip 1
macOS tar xzvf ffi_osx-v*.tar.gz -C $QHOME --strip 1
Windows Open the archive and copy content of the ffi folder (ffi\*) to %QHOME% or c:\q

API

See code.kx.com/v2/interfaces/ffi for documentation.

ffi's People

Contributors

5jt avatar abalkin avatar charlieskelton-kx avatar stephentaylor-kx avatar sv 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.