Skip to content

cmaureir/unleash_cpp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

EuroPython 2019 🐍 🇨🇭

Unleash the power of C++ in Python

"A guide through the bindings generation process"

This repository has all the content of the talk from the conference.

Examples

The examples contain a simple implementation of a Hello World written in C and C++, then a basic implementation using different tools is used to expose the function to Python.

A more useful example related to glob is included too in the directory fastglob. This example uses the <filesystem> C++ library to achieve a similar result as glob and Pathlib.glob.

  • fastglob, directory with the implementation of the module.
  • data, 1000 directories with 1000 empty files each.
  • glob_list.py, listing using glob.
  • pathlib_list.py, listing using Pathlib.
  • fastglob_list.py, listing using fastglob.
  • benchmark_1.sh, benchmark using /usr/bin/time.
  • benchmark_2.py, benchmark using time.

Slides

You can check the slides here! to write them I used reveal.js.

About

EuroPython 2019 Talk

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published