{"id":23071539,"url":"https://github.com/lloydlobo/lumina-lang","last_synced_at":"2025-08-15T14:32:27.102Z","repository":{"id":196541665,"uuid":"695506446","full_name":"lloydlobo/lumina-lang","owner":"lloydlobo","description":"Compiler for Lumina powered by C and Assembly","archived":false,"fork":false,"pushed_at":"2023-10-22T12:07:12.000Z","size":221,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2023-10-23T10:23:22.034Z","etag":null,"topics":["assembly","c","compiler","programming-language"],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/lloydlobo.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2023-09-23T11:56:52.000Z","updated_at":"2023-10-23T10:23:22.034Z","dependencies_parsed_at":"2023-09-30T12:32:44.840Z","dependency_job_id":"277a63ab-69f4-48a1-b4fb-b79619c94b4b","html_url":"https://github.com/lloydlobo/lumina-lang","commit_stats":null,"previous_names":["lloydlobo/compiler-xo","lloydlobo/lumina","lloydlobo/lumina-lang"],"tags_count":0,"template":null,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lloydlobo%2Flumina-lang","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lloydlobo%2Flumina-lang/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lloydlobo%2Flumina-lang/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lloydlobo%2Flumina-lang/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lloydlobo","download_url":"https://codeload.github.com/lloydlobo/lumina-lang/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":229920912,"owners_count":18144863,"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":["assembly","c","compiler","programming-language"],"created_at":"2024-12-16T07:15:48.725Z","updated_at":"2024-12-16T07:15:49.692Z","avatar_url":"https://github.com/lloydlobo.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Lumina\n\nLumina is a spartan C inspired language.\n\n\"Lumina\" implies illumination and clarity, which can be associated with\nthe purpose of programming languages to make complex tasks more\nunderstandable and manageable.\n\n\u003e NOTE: The language is unstable and will have breaking changes.\n\n## Features\n\n- **Clarity and Readability:** Lumina prioritizes human-readable code, making\n  it an excellent choice for both beginners and experienced programmers.\n- **Efficiency:** While emphasizing readability, Lumina doesn't compromise\n  on performance. It's designed to be fast and efficient.\n- **Modern Syntax:** Enjoy a clean and modern syntax that reduces\n  boilerplate code and encourages best practices.\n- **Cross-Platform:** Lumina supports Linux for now.\n\n## Packages\n\n- luminafmt: Code Formatter for `.lum` source files.\n- lumina-vsc: VS Code syntax highlighting support for `.lum` source files.\n\n## Build\n\n### Using build script\n\n```shell\n./build_lumina.sh release\n```\n\n### Using `cmake`\n\n```shell\n$ cmake -S . -B build \u0026\u0026 cmake --build build    # Compile lumina executable\n$ cd build\n$ ./build/lumina main.lum                       # Compile .lum source file\n$ ./out                                         # Run your program\n```\n\n## Dev\n\n### Memory error detection with `valgrind`\n\n#### Using directly without building new binary\n\n```shell\nvalgrind --track-origins=yes ./lumina test.lum\n```\n\n#### Using with build script and `Makefile`\n\n```shell\n./build_lumina.sh debug \u0026\u0026 make valwip \u0026\u0026 ./out \u0026 echo $?\n```\n\n### Concepts\n\n#### Back-end\n\n##### Assemble to binary file and Linking to executable\n\n```shell\nnasm -felf64 test.asm\nld test.o -o test\n```\n\n- Assemble `source.asm` into a binary file `output_file`.\n  - If `output_file` is not passed, it is inferred as source.o.\n  - `-f` and `-elf64`. (x64 architecture)\n- Link a specific object file with no dependencies into an executable.\n  - `test` is the executable.\n\n\n```shell\n./test      # Run generated executable\necho $?     # See exit code\n```\n\n## Many Thanks to\n\n- [Hydrogen](https://github.com/orosmatthew/hydrogen-cpp) upon which, Lumina was initially built on.\n- [Jai](https://github.com/BSVino/JaiPrimer/blob/master/JaiPrimer.md) \u0026 [Odin](https://odin-lang.org/) for being a guiding compass for sane modern language development.\n- [Compis](https://github.com/rsms/compis), [laye](https://github.com/laye-lang/laye) for inspiration for builing compilers in C.\n- C, Go, Rust, Python and many more...\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flloydlobo%2Flumina-lang","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flloydlobo%2Flumina-lang","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flloydlobo%2Flumina-lang/lists"}