Wrapping Swift for Python: Bridging the gap with Pybind11

Just write it in C and wrap it in Python… I want to see you struggle @programmersarealsohuman5909 I recently worked on a project that required seamless integration between a Swift Framework and Python. Options like PyObjC exist for simple integrations, but if the Swift code needs to be bundled up, or if you’re working on larger projects, the best option is to “wrap it up”. There’s no direct way to make Python bindings for Swift, but we can wrap C/C++, for example with PyBind11, and expose the Swift functions as C symbols with @c_decl (which is stil undocumented and unofficial)....

December 16, 2023

How to Mount Synology NAS to Raspberry Pi

You’re probably here because you’ve spent more than five minutes trying to figure out how to mount your new Synology NAS to your Raspberry Pi. Even though it’s basically the same as mounting any other drive, there’s a couple of details you need to take care of. I’ll walk through the entire process here. The Use Case I recently acquired an old Synology NAS running Synology DiskStation to keep extra back-ups of cloud storage (better safe than sorry), TimeMachine and to host some of my music & media which can then be accessed through services like Plex....

May 2, 2021