From 8acac8c4bfa6ffa9ee17f08ca0a9e442177c417f Mon Sep 17 00:00:00 2001 From: Johannes Löthberg Date: Fri, 9 Jun 2017 21:06:05 +0200 Subject: Add all entries MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Johannes Löthberg --- kyrias_website/entries/cffi-alpm-a-new-hope.rst | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 kyrias_website/entries/cffi-alpm-a-new-hope.rst (limited to 'kyrias_website/entries/cffi-alpm-a-new-hope.rst') diff --git a/kyrias_website/entries/cffi-alpm-a-new-hope.rst b/kyrias_website/entries/cffi-alpm-a-new-hope.rst new file mode 100644 index 0000000..9ad5f45 --- /dev/null +++ b/kyrias_website/entries/cffi-alpm-a-new-hope.rst @@ -0,0 +1,7 @@ +title: "cffi-alpm: A New Hope" +date: 2016-11-17 +tags: ['python', 'libalpm'] + +Pyalpm has some annoyances to it, like leaking a lot of memory, and being a CPython module. It has many times been suggested that it should be re-written using CFFI or something similar though, and tonight I’ve been pretending that I don’t have anything better to do, so I started playing with CFFI and libalpm a bit. + +The result of my experimentations is available at `cffi-alpm `_, though it’s not particularly useful yet. Right now it has a class that wraps `alpm_list_t` and implements the Python `iterator protocol `_ for it, and have written a small example that searches the local DB. It’s not really much at all, but I do feel like I have a better feel of both CFFI and libalpm now, and might actually end up writing a complete pyalpm replacement. -- cgit v1.2.3-54-g00ecf