Patent law varies from place to place, of course, but generally relies on priority in time. I don't see any academic objection to filing a patent, but it can be expensive. Perhaps you need to consult a patent attorney (also expensive).
On the other hand, your work may be solid enough to establish 'prior art' if anyone should try to beat you to a patent. But in actual practice, there are anomalies.
The comment of user MJeffryes implies that the struck comment is probably incorrect. Wikipedia has a discussion of prior art.
Note that I prefer conservative (i.e. safe) solutions. If I'm wrong in this answer, I apologize, but will leave it in place as a bit of a warning (aka Humble Pie). I stand by the statement that there is no Academic objection, but the OP needs to behave in an optimal way, and not depend on possibly wishful thinking answers (mine). See the answer of MJeffryes for better advice.