KeyVa Lang - A New Programming Language Where Every Variable is an Associative Array!
BY wl2rt
July 7, 2025•
Public
Private
8028 views
Overview of Kea Lang
Introduction
A new experimental programming language called Kea Lang.
Key Difference: Every variable in Kea Lang is an associative array.
Attributes: Interpreted language, open source, free, easy to learn.
Features
Associative Arrays: Allows for unique possibilities in programming.
Variable Example:
Basic operations (e.g., I is equal to 1).
Assigning values using associative arrays (e.g., I["dog"] = 4 for the number of legs a dog has).
Handling Arrays: Full associative array requires specific rules to prevent ambiguity.
Control Structures
If Statements: Operate as expected using conditions.
Loops:
For Loops: Iterate over associative arrays.
While Loops: Execute loops based on conditions.
Functions: Define functions including operations on associative arrays.
Example: Prime Number Detection
Uses associative arrays to implement the Sieve method for finding prime numbers.
Technical Details
Implemented as an alpha interpreter using C.
Components:
Tokenizer
Parser
Execution Engine: Manages the abstract syntax tree.
Extensibility: Can be enhanced in both main code and standard library.
Standard Functions: Includes operations like length, key, mod.
Challenges & Limitations
Missing Features: Lack of support for negative numbers, and relational operators like AND and OR.
Areas for Improvement: Memory management, buffer sizes, multi-dimensional arrays.
JSON Compatibility: Potential area for future development, leveraging associative arrays.
Community and Future
Open source nature invites contribution and support from the community.
Future development dependent on interest and collaboration.
Encourages feedback and thoughts on the project's direction.
Conclusion
An experimental programming language with potential.
Developed by Gary Sims from Gary Explained with opportunities for community engagement.
Feedback and interest are welcome to determine its trajectory.
Note: The information is based on the video presentation by Gary Sims on Kea Lang. Feedback and discussion are encouraged in the original video comments section.
KeyVa Lang - A New Programming Language Where Every Variable is an Associative Array!