{"id":15496125,"url":"https://github.com/marc2332/ham","last_synced_at":"2025-04-22T21:25:23.608Z","repository":{"id":105072840,"uuid":"375740670","full_name":"marc2332/ham","owner":"marc2332","description":"🍖 ham, general purpose programming language","archived":false,"fork":false,"pushed_at":"2021-07-19T19:31:39.000Z","size":1416,"stargazers_count":22,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-10-19T13:17:46.500Z","etag":null,"topics":["interpreted","programming-language","rust"],"latest_commit_sha":null,"homepage":"","language":"Rust","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/marc2332.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-06-10T15:14:49.000Z","updated_at":"2024-03-18T21:56:51.000Z","dependencies_parsed_at":null,"dependency_job_id":"a3113a45-7bc6-4e87-ab24-8f1ae4125378","html_url":"https://github.com/marc2332/ham","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/marc2332%2Fham","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marc2332%2Fham/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marc2332%2Fham/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marc2332%2Fham/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/marc2332","download_url":"https://codeload.github.com/marc2332/ham/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250326491,"owners_count":21412264,"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":["interpreted","programming-language","rust"],"created_at":"2024-10-02T08:22:45.428Z","updated_at":"2025-04-22T21:25:23.602Z","avatar_url":"https://github.com/marc2332.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"🍖 ham, a programming language made in Rust \n\n**NOTE: I'm learning rust, I am still a noob**\n\nstatus: **alpha**\n\nYou can **download** it from [here](https://github.com/marc2332/ham/releases).\n\n### Goals\n- Speed\n- Security\n- Comfort\n\n### Language Ideas\n- Rust interoperability\n- Manifest file\n- Ability to import files from:\n  - Local file system\n  - HTTP urls\n  - By name (this would use some kind of remote registry to translate it to HTTP urls)\n- std library\n- Low-level (networking, file system...) APIs\n\n### Project ideas\n- CD integration to release a new version in each commit\n- More unit tests\n\n### Example\n\n```rust\n\nfn calc(value){\n    // If the value is 5 end the function\n    if value == 5 {\n        return 0\n    }\n    \n    // Add 1 \n    value.mut_sum(1)\n        \n    // Print it's value\n    println(format(\"Value is {}\", value))\n        \n    // Call the function again with the latest value    \n    return calc(value)\n}\n\n// This will print from `Value is 1` to `Value is 5`\nlet _ = calc(0)\n```\n\nThere are more examples in /examples.\n\n### About\nham is a general purpose language. It is heavily inspired by Rust and TypeScript.\n\n### Usage\n\nBuilt-in repl:\n```shell\nham repl\n```\n\nRun files:\n```shell\nham run examples/demo.ham\n```\n\nRun a project (This will run `1_project/src/main.ham` automatically):\n```shell\nham run examples/1_project\n```\n\n### Contribuding\n\nCompiling:\n```shell\ncargo build --release\n```\n\nLinting:\n```shell\ncargo clippy\n```\n\nFormatting:\n```shell\ncargo fmt\n```\n\nTesting:\n```shell\ncargo test\n```\n\nInstall mdbook:\n```shell\ncargo install mdbook\n```\n\nBuild the book:\n```shell\nmdbook build\n```\n\nWatch for changes on the book:\n```shell\nmdbook watch\n```\n\nRunning directly:\n```shell\ncargo run -- run examples/demo.ham\n```\n\nMade by Marc Espín Sanz\n\nMIT License","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarc2332%2Fham","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmarc2332%2Fham","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarc2332%2Fham/lists"}