Giter Site home page Giter Site logo

feenkcom / threadedffi-plugin Goto Github PK

View Code? Open in Web Editor NEW

This project forked from pharo-project/threadedffi-plugin

0.0 2.0 0.0 545 KB

A Threaded FFI plugin for Pharo. It extends the Cog VM with non blocking queue based FFI.

License: MIT License

CMake 4.88% C 27.65% Shell 3.61% Smalltalk 60.92% PowerShell 0.82% StringTemplate 2.12%

threadedffi-plugin's Introduction

ThreadedFFI-Plugin

A Threaded FFI plugin for Pharo. It extends the Cog VM with non blocking queue based FFI. This plugin has two main parts: a VM plugin written in C, and a Pharo library to access it.

Installation

If you're running a headless VM, you very probably have the threaded FFI plugin with it.

Installing the Pharo library

You can then load this project importing it through Iceberg, or by executing the following metacello expression:

Metacello new
		baseline: 'ThreadedFFI';
		repository: 'github://pharo-project/threadedFFI-Plugin';
		onConflictUseLoaded;
		load.

If you're missing the plugin, update your headless VM or compile one from sources.

Compiling the plugin from sources

cmake .
make install
make test
make package

The build results can be found in build/packages/*

Compilation in OS X Catalina and Newer

Since some changes in the compilation toolchain of XCode, it is needed to give some hints to the build of libFFI. LibFFI is built during the building of the plugin. To run the build correctly, the environment variable CPATH should be set:

export CPATH=`xcrun --show-sdk-path`/usr/include

Running the tests

Running the tests requires an external library with defined functions and types. To obtain the test library, you need to compile it from sources. Then copy it close to your image or your VM.

threadedffi-plugin's People

Contributors

tesonep avatar guillep avatar estebanlm avatar akgrant43 avatar syrel avatar akgrant avatar georgeganea avatar jurajkubelka avatar ronsaldo avatar sbragagnolo avatar

Watchers

James Cloos 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.