Day 44 — Packaging Driven Development

Today I started looking into building cross-platform wheels for my Python C extension. I've never built binary extension wheels so I decided to start simple by building wheels for this snake game I want to write in C. Right now it's just a "hello world" ncurses program.

I started looking …

Read

There are comments.

Day 43 — Mysterious PEPs and where to find them

I've been reading (and forgetting about) a lot of PEPs lately. When you read a PEP, it mentions how "this" thing was defined in "this" PEP, and how "that" thing was defined in "this other" PEP. So I thought that it would be cool to look at all the PEPs …

Read

There are comments.

Day 42 — I have an answer to the ultimate question of how to convert a PDF to a PNG in Python!

Yesterday I paired with Ilia to walk through the pdftoppm code, and we identified some code that wasn't required to wrap pdftoppm. I also wrapped a "hello world" ncurses game with pybind11!

Today I started looking into pdftoppm again and commented some code (like command-line argument parsing and JPEG support …

Read

There are comments.

Day 41 — Exploring pybind11 with a snek

Today I paired with Ilia to walk through the poppler codebase. This was of great help as I don't have a lot of experience navigating through large C/C++ codebases. I got to learn about how cmake and C++ preprocessor directives work!

We also walked through the pdftoppm code to …

Read

There are comments.

Day 40 — Playing with poppler utils

Today I replaced some ghostscript code in camelot with a pdftoppm subprocess call just to see if the tests pass. They did! I think poppler could be the ghostscript alternative that I'm looking for!


  pdftoppm -r 300 -png -singlefile foo.pdf foo

That got me all excited to look into …

Read

There are comments.