Glint is a lightweight programming language designed for simplicity and performance. It combines both interpreter and compiler capabilities to cater to diverse programming needs.
-
Interpreted and Compiled: Glint offers both interpreted and compiled modes. By using
use compiler
andstop use compiler
, developers can opt for a compiled approach where the syntax includes braces{}
, introduces typing, and addresses memory safety concerns—ideal for those requiring features typical of compiled languages. -
Error Handling: Glint provides robust error handling with clear feedback to aid debugging.
-
Simplicity: Glint features a straightforward syntax that promotes readability and ease of understanding.
-
Performance: Optimized for speed, Glint outperforms Python and competes closely with languages like JavaScript, Java, and Ruby in benchmarks.
-
Dynamic Typing: Supports dynamic typing for flexibility without explicit type annotations.
To begin using Glint:
-
Installation: Clone the repository and compile Glint using Rust's Cargo:
git clone https://github.com/your_username/glint.git cd glint cargo build --release
-
Run a Glint Program: Execute a Glint program by passing a
.glt
file as an argument:cargo run my_program.glt or Glint my_program.glt
Explore the Glint documentation here.
Discover the simplicity and power of Glint with these examples:
-
Hello World:
write "Hello, World!"
-
Simple Arithmetic:
a is 10 b is 20 sum is a + b write "Sum:", sum
Contributions to Glint are welcome! Fork the repository and submit pull requests.
Glint is licensed under the MIT License. See LICENSE for details.
Join us in making programming simpler and faster with Glint! 🚀