{"id":14995720,"url":"https://github.com/Brian-M-J/sicp_mojo","last_synced_at":"2025-09-25T15:31:19.266Z","repository":{"id":232050773,"uuid":"783015004","full_name":"Brian-M-J/sicp_mojo","owner":"Brian-M-J","description":"A port of Structure and Interpretation of Computer Programs to Mojo🔥","archived":false,"fork":false,"pushed_at":"2024-05-07T05:01:05.000Z","size":66,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-16T13:38:37.496Z","etag":null,"topics":["computer-science","mojo"],"latest_commit_sha":null,"homepage":"","language":"Mojo","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Brian-M-J.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","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,"publiccode":null,"codemeta":null}},"created_at":"2024-04-06T17:44:49.000Z","updated_at":"2024-05-07T08:13:59.000Z","dependencies_parsed_at":"2024-04-19T16:03:22.839Z","dependency_job_id":"22050b71-cd81-4161-bc3b-8fceca2c31d4","html_url":"https://github.com/Brian-M-J/sicp_mojo","commit_stats":null,"previous_names":["brian-m-j/sicp_mojo"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Brian-M-J/sicp_mojo","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Brian-M-J%2Fsicp_mojo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Brian-M-J%2Fsicp_mojo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Brian-M-J%2Fsicp_mojo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Brian-M-J%2Fsicp_mojo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Brian-M-J","download_url":"https://codeload.github.com/Brian-M-J/sicp_mojo/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Brian-M-J%2Fsicp_mojo/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":276940125,"owners_count":25732245,"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","status":"online","status_checked_at":"2025-09-25T02:00:09.612Z","response_time":80,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["computer-science","mojo"],"created_at":"2024-09-24T16:19:46.119Z","updated_at":"2025-09-25T15:31:18.969Z","avatar_url":"https://github.com/Brian-M-J.png","language":"Mojo","funding_links":[],"categories":["Summary"],"sub_categories":[],"readme":"# SICP Mojo🔥\nWelcome to SICP Mojo! This is my personal attempt to port all the code in the famous introductory computer science book [Structure and Interpretation of Computer Programs](https://mitpress.mit.edu/9780262543231/) to [Mojo](https://www.modular.com/max/mojo), using its JavaScript version as a reference.\n\n## But why?\nThis book was on my \"to read\" list anyways, so I thought I would practice the programs in it. I'm much more familiar with Python than JavaScript, so I'm using a programming language similar to Python to do it.\n\n## Why Mojo specifically?\nI sincerely believe Mojo is the future of the entire Python ecosystem, so I'm trying to learn it now, even though it's at a very early stage (as of 06-04-2024, Mojo is at version [24.2](https://docs.modular.com/mojo/changelog#v242-2024-03-28)).\n\nMojo also has some neat features that Python doesn't, like tail recursion optimization (see the \"Tail Call Optimization (TCO)\" section of [this](https://www.modular.com/blog/mojo-vs-rust-is-mojo-faster-than-rust) page).\n\nTODO: It's not yet clear whether Mojo only supports tail recursion optimization (tail calls to _the current_ function are replaced by jump instructions and reuse the stack frame) or full tail call optimization (tail calls to _any_ function are replaced by jump instructions and reuse the stack frame). I've [asked](https://discord.com/channels/1087530497313357884/1206995505700147254/1207363538943746119) about it but no answer yet.\n\n## How do I run this code?\n**Recommended**: Download Mojo through the Modular website. The guide for it is [here](https://docs.modular.com/mojo/manual/get-started/).\n\nYou can run the programs in the Mojo REPL if you prefer the instantaneous feedback (type `mojo`/`mojo repl` in your terminal to open the Mojo REPL (read-evaluate-print loop)) or put your scripts in a .mojo/.🔥 file and run them with `mojo \u003cfilename\u003e.mojo`/`mojo \u003cfilename\u003e.🔥`.\n\nAlternatively, you can directly use Mojo in the browser through the [Mojo playground](https://docs.modular.com/mojo/playground).\n\nTODO: Implement mojo_slang based on [js-slang](https://github.com/source-academy/js-slang) instead of copy-pasting the code directly.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FBrian-M-J%2Fsicp_mojo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FBrian-M-J%2Fsicp_mojo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FBrian-M-J%2Fsicp_mojo/lists"}