{"id":13471400,"url":"https://github.com/susam/may4","last_synced_at":"2026-01-24T22:04:27.016Z","repository":{"id":146830861,"uuid":"364253769","full_name":"susam/may4","owner":"susam","description":"Celebrating Star Wars Day with some Forth code! May the Forth be with you!","archived":false,"fork":false,"pushed_at":"2023-05-04T08:01:32.000Z","size":13,"stargazers_count":40,"open_issues_count":0,"forks_count":3,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-26T13:39:03.440Z","etag":null,"topics":["forth","gforth","star-wars","yoda"],"latest_commit_sha":null,"homepage":"","language":"Forth","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/susam.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","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":"2021-05-04T12:47:46.000Z","updated_at":"2024-12-30T17:01:44.000Z","dependencies_parsed_at":null,"dependency_job_id":"e836c777-6192-4402-ab0d-889368cd3eee","html_url":"https://github.com/susam/may4","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/susam%2Fmay4","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/susam%2Fmay4/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/susam%2Fmay4/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/susam%2Fmay4/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/susam","download_url":"https://codeload.github.com/susam/may4/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254243314,"owners_count":22038048,"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":["forth","gforth","star-wars","yoda"],"created_at":"2024-07-31T16:00:44.382Z","updated_at":"2026-01-24T22:04:21.977Z","avatar_url":"https://github.com/susam.png","language":"Forth","readme":"May the Forth Be With You\n=========================\n\nThis project celebrates the [Star Wars Day] with the [Forth]\nprogramming language.\n\n[![View Source][Source SVG]](may4.fs)\n[![View Output][Output SVG]](may4.txt)\n[![MIT License][License SVG]](LICENSE.md)\n[![Mastodon][Mastodon SVG]][Mastodon URL]\n[![Twitter][Twitter SVG]][Twitter URL]\n\n[Source SVG]: https://img.shields.io/badge/view-source-brightgreen\n[Output SVG]: https://img.shields.io/badge/view-output-brightgreen\n[License SVG]: https://img.shields.io/badge/license-MIT-%233a3\n[Mastodon SVG]: https://img.shields.io/badge/mastodon-%40susam-%2355f\n[Mastodon URL]: https://mastodon.social/@susam\n[Twitter SVG]: https://img.shields.io/badge/twitter-%40susam-%2329e\n[Twitter URL]: https://twitter.com/susam\n\nMay 4 is the Star Wars Day. The date (May the fourth) is a pun on the\npopular Star Wars catchphrase, \"May the Force be with you.\" Forth, the\nprogramming language, is named so as a shortened form of the word\n\"Fourth\". The name stood for \"fourth generation\". Quoting from\n[Forth - The Early Years][HOPL]:\n\n\u003e The file holding the interpreter was labeled FORTH, for 4th (next)\n\u003e generation software - but the operating system restricted file names\n\u003e to 5 characters.\n\nSo this repository consisting of Forth source code to print a slightly\naltered Star Wars catchphrase using ASCII stars (asterisks) is like a\ndouble pun! Or is that a triple pun?\n\nAlso, if Yoda were a programmer, I think Forth would be his most\nfavourite programming language. Yoda would say, \"A Forth programmer I\nam. Hrmmm,\" and he would add two and two with, `2 2 +`. It just makes\na lot of sense to celebrate May the 4th with some Forth code.\n\n[Star Wars Day]: https://en.wikipedia.org/wiki/Star_Wars_Day\n[Forth]: https://en.wikipedia.org/wiki/Forth_(programming_language)\n[HOPL]: https://web.archive.org/web/20160409083846/http://www.colorforth.com/HOPL.html\n\n\nSource\n------\n\n[[may4.fs](may4.fs)]\n\n```forth\n: stars\n   0  do  [char] * emit  loop  ;\n\n: lines\n   0  do  cr  loop  ;\n\n: print\n   dup 40 \u003e if  40 - lines  else\n   dup 20 \u003e if  20 - spaces  else\n      stars\n   then then  ;\n\n: start\n   0  do  print  loop  ;\n\n                      41 11 37 11 36 5 28 41 5 27 5\n                     31 5 27 5 33 5 28 41 5 31 5 27\n                    5 31 5 31  5 28 41 5  33 5 25 5\n                   33 5 30 5 28 41 5 35 5 23 5 35 5\n                  29 5 28 41  5 35 5 23 5 35 5 27 9\n                 26 41 5 35  5 23 5 35  5 26 5 21 5\n                25 41 5 35 5 23 5 35 5 25 5 23 5 24\n               41 5 35 5 24 5 33  5 25 5 25 5 23 41\n              5 35 5  25 5 31 5   25 5 27 5 22 41 5\n             35 5 27 5 27 5 26    5 29 5 21 41 5 35\n            5 30 11 28 5 31 5     43 2 24 2 25 2 25\n           2  26 1 26 1 28 8      23 7 33 41 2 24 2\n          25 2 25 2 25 3 24       3 33 2  22 1 25 2\n         33 41 8 25 2 25 2        24 2 21 2 22 2 21\n        2 29 5 23 7 33 41         2 24 2  25 2 25 2\n       23 2 24 3 23 2 31          2 22 1 25 2 33 41\n      2 24 2  22 8 22 2           22 2 26 1 25 2 24\n     8 23 7 22 11 43 3            27 3 27 3 26 3 28\n    3 26 8  35 3 41 3             27 3 27 3 27 3 27\n   3  24 3 26 3 33 3              41 3 27 3 27 3 28\n  3 26 3 23 3  28 3               32 3 41 3 27 3 27\n 3 29 3  25 3 22 3                30 3 31  3  41 13\n27 3  29 11  22 3 30 3 25 9 41 13 27 3 27 13 22 3 30 3 25 9\n41 3 27 3 27 3 26 3 28 3  22 3 30 3 31 3  41 3 27 3 27 3 26\n3 28 3 23 3 28 3 32 3 41 3 27 3 22 13 22 13 24 4 25 3 23 13\n41 3 27 3 22 13 24 11  26 8 25 13 43 11 22 8 22 2 24 2 25 2\n30 2 23 2 25 2 22 2 23 1 23 2 41 2 22 2 24 2 25 2 30 2 24 7\n23 2 22 3 22 2 41 5 22 8 25 2 29 4 24 2 21 2 24 2 21 2 21 2\n                                  21  2 41 2  22  2\n                                  24 2 25 2 28 2 22\n                                  2 24 3 25 4 23  4\n                                  41  8 22 2  24  2\n                                  22 8 24 2 24 2 24\n                                  1  26 3 25  3 473\nstart\nbye\n```\n\n\nOutput\n------\n\n[[may4.txt](may4.txt)]\n\n```\n***     ***      *    **    **    ********  **    **  ********\n****   ****     ***    **  **        **     **    **  **\n** ** ** **    ** **    ****         **     ********  *****\n**  ***  **   *******    **          **     **    **  **\n**   *   **  **     **   **          **     **    **  ********  ***********\n\n\n*************     ********      ***********    *************  ***       ***\n*************   ***     ****    *************  *************  ***       ***\n***            ***        ***   ***        ***      ***       ***       ***\n***           ***          ***  ***        ***      ***       ***       ***\n*********     ***          ***  *************       ***       *************\n*********     ***          ***  ***********         ***       *************\n***           ***          ***  ***     ***         ***       ***       ***\n***            ***        ***   ***      ***        ***       ***       ***\n***             ***      ***    ***       ***       ***       ***       ***\n***               ********      ***        ***      ***       ***       ***\n\n\n***********  *******   ********    **     *      **  **  ********  **    **\n             **     *  **           **   ***    **   **     **     **    **\n             *******   *****         ** **  ** **    **     **     ********\n             **     *  **             ***    ***     **     **     **    **\n             *******   ********        *      *      **     **     **    **\n\n\n*****           *****        ***********          *****               *****\n *****         *****      *****       *****       *****               *****\n  *****       *****     *****           *****     *****               *****\n   *****     *****     *****             *****    *****               *****\n    *****   *****     *****               *****   *****               *****\n     ***** *****      *****               *****   *****               *****\n      *********       *****               *****   *****               *****\n        *****         *****               *****   *****               *****\n        *****          *****             *****     *****             *****\n        *****           *****           *****       *****           *****\n        *****             *****       *****           *****       *****\n        *****                ***********                 ***********\n```\n\n\nHow to Run\n----------\n\n 1. Install GForth.\n\n    On macOS, enter the following command if you have [Homebrew]:\n\n    ```sh\n    brew install gforth\n    ```\n\n    On Debian, Ubuntu, or another Debian-based Linux system, enter the\n    following command:\n\n    ```\n    sudo apt-get install gforth\n    ```\n\n    For other systems, see \u003chttps://gforth.org/\u003e.\n\n 2. Run the Forth program in this repository:\n\n    ```sh\n    gforth may4.fs\n    ```\n\n 3. Enjoy!\n\n[Homebrew]: https://brew.sh/\n\nYou can also run it online [on Replit here][Replit]:\n\n[Replit]: https://replit.com/@susam/MayTheForthBeWithYou\n\n\nThank You\n---------\n\nThank you for visiting this project. I hope this encourages you to\n[learn a little bit of Forth][Starting Forth].\n\n[Follow me on Mastodon][Mastodon URL].\n\n[Follow me on Twitter][Twitter URL].\n\n[Starting Forth]: https://www.forth.com/starting-forth/\n","funding_links":[],"categories":["Forth"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsusam%2Fmay4","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsusam%2Fmay4","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsusam%2Fmay4/lists"}