Add QuantaLang language support#7913
Closed
HarperZ9 wants to merge 1 commit into
Closed
Conversation
QuantaLang is an effects-oriented systems language with a multi-backend compiler written in Rust. It compiles .quanta source to C (primary), HLSL, GLSL, SPIR-V, LLVM IR, WebAssembly, x86-64, and ARM64. Language features: - Classical systems keywords (fn, struct, enum, trait, impl, let, mut, etc.) - First-class effect system (with, effect, handle, resume, perform) - AI/neural primitives (ai, neural, infer) - Rust-adjacent syntax, unique .quanta file extension Submitted alongside: - Grammar: https://github.com/HarperZ9/quantalang-tmLanguage - Language repo: https://github.com/HarperZ9/quantalang - VS Code extension: https://github.com/HarperZ9/quantalang-vscode - Ecosystem: https://github.com/HarperZ9/quanta-universe (43 modules written in QuantaLang) Samples provided cover the AI primitives, effect system, closures, struct constants, graphics pipeline, and standard library patterns.
Member
|
This PR is invalid. You have not followed the instructions in the CONTRIBUTING.md file and have not used our PR template. We also have minimum usage requirements as detailed in the |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Describe the language
QuantaLang is an effects-oriented systems programming language with a multi-backend compiler written in Rust. It compiles
.quantasource to C (primary), HLSL, GLSL, SPIR-V, LLVM IR, WebAssembly, x86-64, and ARM64.Distinguishing features:
with,effect,handle,resume,performkeywords for algebraic effects and handlersai,neural,inferkeywordsfn,struct,enum,trait,impl,let,mut,unsafe, lifetimes, ownership (Rust-adjacent syntax family)62 keywords total, derived from the compiler lexer at HarperZ9/quantalang/compiler/src/lexer/token.rs.
Why it's being added
.rssource files, all 8 backends present in tree)Included in this PR
lib/linguist/languages.ymlQuantaLangentry, alphabetically placed between Qt Script and Quake. Color#4A7BE8, scopesource.quanta, ace moderust, uniquelanguage_id: 202604120.vendor/grammars/quantalang-tmLanguagesamples/QuantaLang/Resultstdlib pattern, struct constants.Metadata
.quanta(unique, no collisions — verified across currentlanguages.yml)quanta,quantalangsource.quanta#4A7BE8(unique across current palette)202604120(verified unique across all entries)Checklist
.quantais unique — no other entry claims itlanguage_idis unique (verified by iterating all ids inlanguages.yml)yaml.safe_load)tm_scope