{"id":21302077,"url":"https://github.com/thmxv/tx-lang-cxx","last_synced_at":"2025-07-11T20:31:31.353Z","repository":{"id":250048413,"uuid":"543953457","full_name":"thmxv/tx-lang-cxx","owner":"thmxv","description":"Lightweight, fast, modern and scripting language","archived":false,"fork":false,"pushed_at":"2023-03-27T22:53:26.000Z","size":536,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-06T08:41:57.847Z","etag":null,"topics":["compiler","cplusplus","cpp","cxx","fast","interpreter","language","light","lightweight","modern","programming-language","safe","single-pass","vm"],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/thmxv.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE-APACHE","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},"funding":{"github":"thmxv"}},"created_at":"2022-10-01T08:40:51.000Z","updated_at":"2024-01-12T18:39:49.000Z","dependencies_parsed_at":"2024-07-24T22:56:04.478Z","dependency_job_id":null,"html_url":"https://github.com/thmxv/tx-lang-cxx","commit_stats":null,"previous_names":["thmxv/tx-lang-cxx"],"tags_count":0,"template":false,"template_full_name":"cpp-best-practices/cmake_conan_boilerplate_template","purl":"pkg:github/thmxv/tx-lang-cxx","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thmxv%2Ftx-lang-cxx","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thmxv%2Ftx-lang-cxx/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thmxv%2Ftx-lang-cxx/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thmxv%2Ftx-lang-cxx/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/thmxv","download_url":"https://codeload.github.com/thmxv/tx-lang-cxx/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thmxv%2Ftx-lang-cxx/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264892270,"owners_count":23679262,"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":["compiler","cplusplus","cpp","cxx","fast","interpreter","language","light","lightweight","modern","programming-language","safe","single-pass","vm"],"created_at":"2024-11-21T15:54:32.928Z","updated_at":"2025-07-11T20:31:28.090Z","avatar_url":"https://github.com/thmxv.png","language":"C++","readme":"# The Tx programming language\n\n\u003c!-- [![ci](https://github.com/thmxv/tx-lang/actions/workflows/ci.yml/badge.svg)](https://github.com/thmxv/tx-lang) --\u003e\n\u003c!-- [![codecov](https://codecov.io/gh/thmxv/tx-lang/branch/main/graph/badge.svg)](https://codecov.io/gh/thmxv/tx-lang) --\u003e\n\u003c!-- [![Language grade: C++](https://img.shields.io/lgtm/grade/cpp/github/thmxv/tx-lang)](https://lgtm.com/projects/g/thmxv/tx-lang/context:cpp) --\u003e\n\u003c!-- [![CodeQL](https://github.com/thmxv/tx-lang/actions/workflows/codeql-analysis.yml/badge.svg)](https://github.com/thmxv/tx-lang/actions/workflows/codeql-analysis.yml) --\u003e\n\n## About Tx\n\nTx aims to be oriented towards safety, speed, power and minimalism.\n\nTx is inspired by Lua. The code and implementation is based on the \nbook [Crafting Interpreters](http://craftinginterpreters.com/) by \n[Robert Nystrom](https://github.com/munificent). The syntax and feature set\nare inspired by languages such as Python, Rust, Wren and Swift among others.\n\nThe code is written, as much as possible, in modern C++. Trying to be \nalmost completely constexpr.\n\n## Disclaimer\n\nTx is still very much a work in progress.\n\n## Documentation\n\n- [Main documentation page](./doc/index.md)\n\n## Backlog\n\n- Do not allow forward decl 2x the same var\n- Allow return as last statement of block that does not return nil\n- Replace gsl Expect macro to something less likely to collide\n- Maybe add option to error_token to mark the end of the token or the start in\n  error message hint\n- Tests for all the error_token() code paths\n- Multi-line entry in REPL\n- Fix error in REPL in entry that follows an error\n- Support expression result in REPL\n- Reserve keywords pub, with, type, Type, abstract, override, final\n- Better float formatting: 1.0e20 instead of 1.e20. Test print/parse loop\n- Check arity/signature of native fn\n- Fix TODOs in the code\n- Replace runtime errors by compile time (keep runtime error in degug)\n- Go over all the tests one more time (Some do not make much sense for tx\n  and some others do not test all code paths)\n\n### To consider\n\n- Sync GC and allocator, meaning the GC is always triggered\n  before the pool allocator falls-back to the upstream allocator.\n- Chapter 25 challenges\n- Chapter 26 challenges\n- Allow \"var a = a;\" in the case of shadowing and not assigning to self\n- Option to set maximum recursion level, starting stack and frame array size, \n  and minimum memory consumption (do not round to next power of 2)\n- Optimize instruction_prt access (chapter 24 challenge) + benchmark\n- Allow function overload with diff arities (if possible)\n- Universal Function Call (UFC)\n- Add OP CODES for common constant values (0,1,2,-1,\"\")\n- Clean up utf8 conv, utf8 lenght, resize once\n- Loop/block labels with support in break and continue\n- Allow to use break to break out of a block (using labels only)\n- Better const correctness for container elements\n- Use char8_t and u8string_view (needs libfmt support)\n\n## Roadmap\n\n### v0.1.0\n\n- [X] Bytecode array\n- [X] Interpret bytecode\n- [X] Scanning tokens\n- [X] Parsing/compiling expressions\n- [X] Value types\n- [X] String\n- [X] Hash table\n- [X] Global variables\n- [X] Local variables\n- [X] Jumping\n- [X] Functions and call\n- [X] Tests\n- [X] Closure\n- [X] Garbage collection\n- [ ] Backlog/FIXMEs/TODOs\n- [ ] CI, coverage, fuzzing, ...\n\n### v0.2.0\n\n- [X] Type checking\n- [ ] Documentation\n\n### v0.3.0\n\n- [ ] Struct and instances\n- [ ] Methods and initializer\n- [ ] Traits\n- [ ] Inheritance?\n- [ ] String concatenation\n- [ ] String interpolation\n- [ ] Array and Map values (generic types)\n- [ ] Tuples (need variadic generic types)\n- [ ] Range based for loop\n- [ ] Pattern matching\n- [ ] Documentation\n\n### v0.4.0\n\n- [ ] Modules\n- [ ] Optimizations\n- [ ] Documentation\n\n## Minimum target for realease candidate\n\n- [ ] Final syntax/grammar\n- [ ] Reserve all future keywords\n- [ ] Benchmarks\n- [ ] Editors support (LSP)\n- [ ] Modules for core and std\n- [ ] Type alias\n- [ ] Recursive types\n- [ ] Documentation\n\n## Later 1.0 versions\n\n- [ ] Syntax highlighting and completion in REPL\n- [ ] Fibers\n- [ ] Threads\n- [ ] Async and await\n- [ ] Add 'with' statement\n- [ ] Package/dependency manager\n- [ ] Tools (debugger, ...)\n- [ ] Virtual env\n\n## v2.0.0\n\n- [ ] Refactor instruction set/Switch to register based VM\n- [ ] Better GC\n\n## License\n\nLicensed under either of:\n\n * Apache License, Version 2.0, ([LICENSE-APACHE](LICENSE-APACHE) or \n   http://www.apache.org/licenses/LICENSE-2.0)\n * MIT license ([LICENSE-MIT](LICENSE-MIT) or \n   http://opensource.org/licenses/MIT)\n\nat your option.\n\n## Contribution\n\nUnless you explicitly state otherwise, any contribution intentionally submitted \nfor inclusion in the work by you, as defined in the Apache-2.0 license, shall \nbe dual licensed as above, without any additional terms or conditions.\n\n","funding_links":["https://github.com/sponsors/thmxv"],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthmxv%2Ftx-lang-cxx","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthmxv%2Ftx-lang-cxx","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthmxv%2Ftx-lang-cxx/lists"}