Copyleft Games

Build simple Python type bindings using Rust

The pysoy repository is mostly Python bindings to libsoy written in C. As part of our migration to Rust, it would be useful to migrate these to Rust as well. There are a number of blog posts and examples which show how to do this.

First, research how PySoy's C code works (hg clone using C macros (include/pysoy.h) and individual C files implementing individual Python types. Contrast this to Rust CPython bindings designed for implementing Python types.

Then implement a single Python module and a new PyType using Rust. If your research turns up working example code that does just this, test it and then post a link to that code. Otherwise, upload your code to this task.

Task tags

  • python
  • rust

Students who completed this task

AnishK, KRampalli

Task type

  • code Code
  • assessment Outreach / Research