{"id":13823281,"url":"https://github.com/tkwa/Sledgehammer","last_synced_at":"2025-07-08T17:33:19.761Z","repository":{"id":156964467,"uuid":"164151022","full_name":"tkwa/Sledgehammer","owner":"tkwa","description":"A code-golf language written in Mathematica","archived":false,"fork":false,"pushed_at":"2020-06-01T21:55:59.000Z","size":4925,"stargazers_count":21,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-08-05T09:11:47.646Z","etag":null,"topics":["code-golf","golfing-language","mathematica"],"latest_commit_sha":null,"homepage":null,"language":"Mathematica","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/tkwa.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}},"created_at":"2019-01-04T20:18:34.000Z","updated_at":"2024-02-05T04:43:49.000Z","dependencies_parsed_at":"2024-01-18T04:55:37.148Z","dependency_job_id":"effc3133-6233-4a4d-ab58-2f54ffa7e88a","html_url":"https://github.com/tkwa/Sledgehammer","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tkwa%2FSledgehammer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tkwa%2FSledgehammer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tkwa%2FSledgehammer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tkwa%2FSledgehammer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tkwa","download_url":"https://codeload.github.com/tkwa/Sledgehammer/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225453300,"owners_count":17476699,"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":["code-golf","golfing-language","mathematica"],"created_at":"2024-08-04T09:00:27.834Z","updated_at":"2024-11-20T01:30:25.250Z","avatar_url":"https://github.com/tkwa.png","language":"Mathematica","funding_links":[],"categories":["Scripting"],"sub_categories":[],"readme":"# Sledgehammer\n\nSledgehammer is a stack-based code-golf language written in, and based on, Wolfram Language. Its goal is to minimize size of compressed source. Sledgehammer consists of two parts:\n\n* A compressor/decompressor for Wolfram Language expressions\n* A code-golf library (not yet implemented as of 0.5.1)\n\n### Prior art\n\nWhile [Mthmtca](https://github.com/LegionMammal978/Mthmtca) compresses each Mathematica token into 4 bytes, Sledgehammer achieves an average compression ratio of 1 to 1.3 bytes per token. Optimized Sledgehammer code size should be comparable to that of other golfing languages.\n\n### Instructions for use\n\nFor all non-reference purposes, use the interactive app.\n\nTo use Sledgehammer from the command line (on Windows), run a program like\n\n    wolframscript -script hammer.wls w codeFile.hmr\n\nTo take input from a file, use\n\n    wolframscript -script hammer.wls b codeFile.txt inputFile.txt\n\nArguments in an input file should be separated by newlines.\n\nFlags:\n\n    w    Run Wolfram Language code from file, and check compression/decompression.\n    c    Run compressed code from file. Default for code-golf scoring purposes.\n    b    Run UTF-8 encoded Braille source code from file.\n    d    Print debug information to stdout and compressed/uncompressed form to files.\n    n    Do not execute the code (but still check compression).\n\nUnimplemented flags:\n\n    l    Print information about Sledgehammer builtins.\n    s\t   Format the code as a Stack Exchange Code Golf submission.\n    x    Print explanation of code from Mathematica or Sledgehammer docs.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftkwa%2FSledgehammer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftkwa%2FSledgehammer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftkwa%2FSledgehammer/lists"}