{"id":13763425,"url":"https://github.com/VMois/mojo-gym","last_synced_at":"2025-05-10T17:30:33.196Z","repository":{"id":198600759,"uuid":"700896573","full_name":"VMois/mojo-gym","owner":"VMois","description":"Lean Mojo programming language via small interactive exercises. WIP","archived":false,"fork":false,"pushed_at":"2024-02-10T10:51:17.000Z","size":21,"stargazers_count":26,"open_issues_count":0,"forks_count":4,"subscribers_count":3,"default_branch":"main","last_synced_at":"2024-02-11T22:46:50.482Z","etag":null,"topics":["learning-by-doing","mojo","python","rustlings"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/VMois.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2023-10-05T14:02:58.000Z","updated_at":"2024-01-20T18:52:44.000Z","dependencies_parsed_at":"2023-10-12T22:15:13.575Z","dependency_job_id":"ded542e4-e3fe-4ebc-be2d-d97e4e95e5c1","html_url":"https://github.com/VMois/mojo-gym","commit_stats":null,"previous_names":["vmois/mojo-gym"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VMois%2Fmojo-gym","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VMois%2Fmojo-gym/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VMois%2Fmojo-gym/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VMois%2Fmojo-gym/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/VMois","download_url":"https://codeload.github.com/VMois/mojo-gym/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253453145,"owners_count":21911049,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["learning-by-doing","mojo","python","rustlings"],"created_at":"2024-08-03T15:00:44.873Z","updated_at":"2025-05-10T17:30:32.958Z","avatar_url":"https://github.com/VMois.png","language":"Python","funding_links":[],"categories":["📚 Resources\u003ca id='resources'\u003e\u003c/a\u003e"],"sub_categories":["Tutorials"],"readme":"# Mojo Gym\n\nSmall hands-on exercises to practice the basics of the Mojo programming language.\nIdeal for developers who are new to Mojo but know basics of Python.\n\nInspired by [Rustlings](https://github.com/rust-lang/rustlings) project that has a similar approach to teach Rust.\n\n## Getting started\n\n1. [Install Mojo](https://docs.modular.com/mojo/manual/get-started/)\n2. Clone this repository or better yet, fork it and clone your fork.\n3. Install necessary Python packages to run the exercises:\n    ```bash\n    pip3 install -r requirements.txt\n    ```\n    Feel free to use virtualenv or any other tool to manage your Python packages.\n4. Run the exercises:\n    ```bash\n    python mojo_gym.py\n    ```\n5. Follow the instructions and have fun!\n\n## Learning approach\n\nThis is an optional reading if you are interested in how mojo-gym structures the learning material.\n\nBecause Mojo is very similar to Python, we omit some of the basic concepts that are shared between the two languages, for example, control flow statements. We focus on the concepts that are unique to Mojo.\n\nWe start with variables, functions, and value ownership (+ mutability). This is a bit different from what Mojo documentation has. The reason is we try to avoid introducing new concepts and we also want to build new knowledlge on top of the previous exercises.\n\nWhen you are familiar with the previous topics, we move to structs, value lifecycle, metaprogramming and traits.\n\nWe finish the learning with exercises on Python integration and modules/packages in Mojo.\n\nHopefully, you will find this project useful and fun!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FVMois%2Fmojo-gym","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FVMois%2Fmojo-gym","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FVMois%2Fmojo-gym/lists"}