Code Monkey home page Code Monkey logo

cython-talk's Introduction

Cython Basics Presentation Resources

Nov. 11th 2019, PyEugene meetup

 

Python with authors of C, C++, and Python as its heads

 


Installing Requirements

The first thing you will need to do is get set up with a C++ compiler, such as gpp. This should be straightforward for Linux and macOS users. Windows users can use the MinGW port of gpp or Visual Studio's compiler, but note that you may run into .pyd portability issues if you go the VS route.

Next, you will need Python 3.6+ -- all of my testing was done on Python 3.8, but so long as your version supports type annotations you should be good to go.

Assuming you have pip available (if not, you should), you can then download this repository and run pip install -r requirements.txt to install Cython and its requirements as well as tabulate, which is used for formatting the benchmark data.

 

Getting Started

All of the source code is in /Code, and the presentation files are in /Presentation.

build_all.sh and build_all.bat will automatically compile all of the source code in the repository for you using cythonize, which should be in your environment variables after installing Cython. If not, it is located in [python install location]/Scripts/. The scripts also tell cythonize to spit out HTML annotations of the code for studying purposes.

After the code is built, the benchmark can be run via python benchmark.py

 

Additional Resources

Here is a collection of resources that will greatly improve your life while learning Cython

 

 

 

cython-talk's People

Watchers

Sami Pflibsen-Jones 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.