heapq.mojo - A Python's priority queue rewritten in Mojo.

Hi everyone, I wanted to share my implementation of heapq for Mojo, which you can find here: https://github.com/sebastian-sz/heapq.mojo This is a minimalistic, single-file implementation of a Priority Queue (minheap) in Mojo, largely mimicking Python's functionality. While I know the concept isn't new and that existing Mojo implementations have already been posted (e.g., https://discord.com/channels/1087530497313357884/1240078204920926248/1240078204920926248), I wrote this mostly for educational purposes to explore Mojo and its tooling. I thought I'd share it in case others find it useful or interesting. Thanks for checking it out! Best, Sebastian
GitHub
GitHub - sebastian-sz/heapq.mojo: Python's heapq module rewritten i...
Python's heapq module rewritten in Mojo. Contribute to sebastian-sz/heapq.mojo development by creating an account on GitHub.
Discord
Discord - A New Way to Chat with Friends & Communities
Discord is the easiest way to communicate over voice, video, and text. Chat, hang out, and stay close with your friends and communities.
2 Replies
bunny
bunny4mo ago
If you'd like more learning, I'd love help making more in toybox. ❤️
sebastian-sz
sebastian-sz4mo ago
Thank you @bunny! I am very time limited recently, but if possibility arises I will be sure to reach out!
Want results from more Discord servers?
Add your server