Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Switch to GitLab Next
Sign in / Register
Toggle navigation
Open sidebar
Jørgen Lien Sellæg
python-meetup-python-modules-modern-cpp
Commits
adbdbb94
Commit
adbdbb94
authored
Apr 26, 2019
by
Jørgen Lien Sellæg
Browse files
add docs to build and run
parent
fa90b4f8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
30 deletions
+18
-30
README.md
README.md
+18
-30
No files found.
README.md
View file @
adbdbb94
# Python meetup
##
25.04.18
##
Code and slides from my talk at 25.04.19 at Trondheim Python meetup
-
Slide 1
Sportradar is sponsoring the talk
Creating python modules with modern C++
-
Slide 2
First of, I'm no python developer, I joined this meetup group to learn about
this growing language.
I wanted to do a talk, so I had to figure out a way to talk about C++
to an Python audience.
## Build examples
```
# pybind examples
mkdir build
cd build
cmake ..
make
```
SoMe handles
-
Slide 3
Motivation
Why do you want to write Python modules in C++?
```
# c-api examples
cd c-api
python test.py
```
-
get an understanding of how python is implemented
-
speed up CPU/GPU heavy calculations
-
be able to use an C/C++ library in Python
-
create a python API for your C++ application
-
Slide 4
Using Pythons C/C++ API is hard.
## Test examples
```
python test.py
```
-
Slide 5
Using pybind11 makes it look like python code
-
Slide 6
Lets look at some examples
-
Slide 7
Embedding the interpreter
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment