@bthall @gzt @bgcarlisle If you've published and have an implementation somewhere, I'm pretty sure that counts as "prior art" and would invalidate a subsequent patent by someone else, if it was basically identical to your work.
Note that I am not a lawyer and this does not constitute legal advice. It's just based on my layman's understanding after the copyright/free software/free culture scene for about 20 years.
That establishes your copyright and prior art via the code, the license determines what others need to do if they want to redistribute or build on it (e.g. nothing (permissive), just give you attribution, or share all of their changes (copyleft).
And the publication gives you academic glory!
The social network of the future: No ads, no corporate surveillance, ethical design, and decentralization! Own your data with Mastodon!