{"id":51188788,"url":"https://github.com/gummyniki/techlang","last_synced_at":"2026-06-27T13:01:36.770Z","repository":{"id":367565194,"uuid":"1273644074","full_name":"gummyniki/techlang","owner":"gummyniki","description":null,"archived":false,"fork":false,"pushed_at":"2026-06-26T14:48:33.000Z","size":10593,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-06-26T15:13:00.708Z","etag":null,"topics":["compiler","llvm","programming-language","systems-programming"],"latest_commit_sha":null,"homepage":"","language":"Makefile","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/gummyniki.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,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-06-18T18:17:56.000Z","updated_at":"2026-06-26T14:48:37.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/gummyniki/techlang","commit_stats":null,"previous_names":["gummyniki/techlang"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/gummyniki/techlang","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gummyniki%2Ftechlang","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gummyniki%2Ftechlang/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gummyniki%2Ftechlang/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gummyniki%2Ftechlang/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gummyniki","download_url":"https://codeload.github.com/gummyniki/techlang/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gummyniki%2Ftechlang/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34829463,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-26T02:00:06.560Z","response_time":106,"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":["compiler","llvm","programming-language","systems-programming"],"created_at":"2026-06-27T13:01:35.941Z","updated_at":"2026-06-27T13:01:36.731Z","avatar_url":"https://github.com/gummyniki.png","language":"Makefile","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Techlang 🔧\n\n[![Release](https://img.shields.io/github/v/release/gummyniki/techlang?include_prereleases)](https://github.com/gummyniki/techlang/releases)\n\nA compiled, statically typed programming language with familiar C-like syntax\nand modern features. Techlang compiles directly to native binaries via LLVM.\n\n\u003e ⚠️ Techlang is currently in **alpha**. Expect bugs and missing features.\n\u003e Contributions and feedback are welcome!\n\n## Why Techlang?\n\n- **Familiar syntax** — if you know C, C++, or Java you'll feel right at home\n- **Statically typed** — catch errors at compile time, not at runtime\n- **Fast** — compiles to native binaries via LLVM with full optimization support\n- **Modern features** — structs, enums, pointers, imports, and more\n- **Simple module system** — split code across files with `!import`\n- **Coming soon** — a GPU compute companion language for parallel workloads\n\n## Quick Example\n\n```techlang\n!import(std.tec) as std;\n\nstruct person = {\n    int age;\n    string name;\n}\n\nfunction greet(person p) returns none {\n    std.print_string(\"Hello, \");\n    std.print_string(p.name);\n}\n\nfunction main() returns none {\n    person p;\n    p.age = 25;\n    p.name = \"Alice\";\n    greet(p);\n}\n```\n\nOutput:\n   Hello, Alice\n\n\n\n## Installation\n\n**Quick install (Linux x64):**\n```bash\nwget https://github.com/gummyniki/techlang/releases/download/v0.1.0-alpha/techlang-linux-x64.tar.gz\ntar -xzf techlang-linux-x64.tar.gz\ncd techlang-linux-x64 \u0026\u0026 ./install.sh\n```\n\n### Requirements\n- LLVM 17+\n- GCC\n- CMake 3.20+\n- A Linux or macOS system\n\n### Build from Source\n\n```bash\ngit clone https://github.com/gummyniki/techlang\ncd techlang\nmkdir build \u0026\u0026 cd build\ncmake ..\nmake\n```\n\nThe compiler binary will be at `build/techlang`.\n\nOptionally add it to your PATH:\n```bash\nexport PATH=$PATH:/path/to/techlang/build\n```\n\n### Compile a Techlang File\n\n```bash\n./build/techlang hello.tec\n./hello\n```\n\n## Examples\n\nThe `examples/` directory contains several programs demonstrating Techlang's\nfeatures:\n\n| Example | Description |\n|---|---|\n| `hello.tec` | Hello World |\n| `fibonacci.tec` | Recursive fibonacci sequence |\n| `structs.tec` | Structs and methods |\n| `enums.tec` | Enums and control flow |\n| `pointers.tec` | Pointer usage and pass by reference |\n| `arrays.tec` | Arrays and iteration |\n| `imports/` | Multi-file programs with imports |\n\nRun all examples:\n```bash\nchmod +x run_tests.sh\n./run_tests.sh\n```\n\n## Language Reference\n\nSee [LANGUAGE.md](docs/LANGUAGE.md) for the full syntax reference.\n\n## Standard Library\n\nTechlang comes with a standard library imported with:\n```\nimport(std.tec) as std; // the std file has to actually exist in your current directory, you can copy it from examples/\n```\n\n| Function | Description |\n|---|---|\n| `std.print()` | Print to the standard output |\n| `std.print_newline()` | Print a newline |\n| `std.read_int()` | Read an integer from stdin |\n| `std.read_float()` | Read a float from stdin |\n| `std.sqrt(float x)` | Square root |\n| `std.exit(int code)` | Exit the program |\n| `std.concat(string a, string b)` | Concatenate two strings |\n| `std.string_length(string s)` | Get string length |\n| `std.string_equals(string a, string b)` | Compare strings (returns 1 if equal) |\n| `std.string_substring(string s, int start, int end)` | Extract substring |\n\n\n\n## Editor Support\n\n| Editor | Plugin | Status |\n|---|---|---|\n| VS Code | [techlang-vscode](https://open-vsx.org/extension/gummyniki/techlang) | ✅ Available |\n| Neovim | [techlang-nvim](https://github.com/gummyniki/techlang-nvim) | ✅ Available |\n\n## Roadmap\n\n- [x] Basic types (int, float, double, char, string, bool)\n- [x] Arrays\n- [x] Pointers\n- [x] Structs\n- [x] Enums\n- [x] Functions\n- [x] If/else, while, for loops\n- [x] File imports\n- [x] Standard library\n- [x] Compiles to native binary\n- [x] Helpful error messages\n- [ ] `[fixed]` arrays\n- [ ] More standard library functions\n- [ ] VS Code syntax highlighting\n- [ ] Language Server Protocol (LSP)\n- [ ] Package manager\n- [ ] GPU compute companion language *(coming soon)*\n\n## Contributing\n\nContributions are very welcome! If you find a bug or want to add a feature:\n\n1. Fork the repository\n2. Create a branch: `git checkout -b my-feature`\n3. Make your changes\n4. Run the test suite: `./run_tests.sh`\n5. Open a pull request\n\nPlease open an issue first for large changes so we can discuss the approach.\n\n## License\n\nMIT — see [LICENSE](LICENSE) for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgummyniki%2Ftechlang","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgummyniki%2Ftechlang","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgummyniki%2Ftechlang/lists"}