GithubHelp home page GithubHelp logo

00mjk / ffi4wd Goto Github PK

View Code? Open in Web Editor NEW

This project forked from tristanfisher/ffi4wd

0.0 0.0 0.0 44.19 MB

Language interoperability for coders with impatient users.

License: GNU Affero General Public License v3.0

Python 16.35% CSS 3.65% JavaScript 60.38% HTML 18.20% Makefile 0.56% CMake 0.12% C++ 0.75%

ffi4wd's Introduction

Foreign Function Interfaces for Web Developers

Language interoperability for coders with impatient users.

Video of talk available here (click on image):

video of talk on youtube


Python is a general-purpose programming language that is well-suited for a web application stack. That said, there are sometimes opportunities to increase performance or productivity by mixing the benefits of different languages, such as the expressiveness of Python with the speed of C++.

This repository contains the implementations of the techniques and ideas that were explored in a talk I gave at PyGotham 2015. If you missed the talk, it focused on interactions between Python and other programming languages within the context and contraints of coding for web applications.

The slides should be uploaded within a day of the talk and the video should be linked here when available (please open a GH issue if this is not the case).


screenshot of the web application

This repository contains a web application useful for testing various FFI approaches.


Suggested requirements

- Python 3.4
- Python 3.4 header files (python3.4-dev on Debian-based OSes if Python not from source)
- OS X or Linux
- A C and C++ compiler
    - If OS X, probably Xcode command-line tools
    - Buyer's choice on Linux (gcc is popular)

Python versions > 3.4 should also work, but have not been tested.

Installation and setup

Git clone the repo:

git clone https://github.com/tristanfisher/ffi4wd.git

Use a virtual environment to create a clean environment so our work and package installations don't affect other things on the system.

cd ffi4wd
pyvenv-3.4 env
source env/bin/activate

Make sure that you're in Python 3.4 and that your virtualenv is activated.

Run the makefile:

make all

this will install the Python requirements and compile several shared objects.

Run tests

This will give us some certainty that we've installed correctly.

Other Notes

I appreciate feedback. Please open pull requests, issues, and/or contact me.

ffi4wd's People

Contributors

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