Kiwi is a high-level, dynamically-typed language designed for efficiency and expressiveness across a variety of tasks.
Quickly experiment with Kiwi in a Docker container.
sudo docker build -t kiwi-lang .
sudo docker run -it -v $(pwd):/workspace kiwi-lang
Kiwi builds on Linux with GCC and Make. Use the commands below to install dependencies and build Kiwi.
sudo dnf update
sudo dnf install gcc-c++ make libffi-devel
sudo apt update
sudo apt-get install g++ make libffi-dev
After installing the dependencies, clone the repository and build Kiwi:
git clone https://github.com/fuseraft/kiwi.git
cd kiwi
make
To install Kiwi after building, run:
sudo make install
To uninstall Kiwi, use:
kiwi configure uninstall
To run Kiwi on Windows, use Windows Subsystem for Linux (WSL2), which provides a full Linux environment on Windows.
-
Install WSL2: Open PowerShell as Administrator and run:
wsl --install
This command installs WSL2 with a default Linux distribution (usually Ubuntu). Restart if prompted.
-
Install Development Tools: Open WSL and run:
sudo apt update sudo apt install g++ make libffi-dev
-
Clone and Build Kiwi: Inside WSL, clone the Kiwi repository and build it with
make
:git clone https://github.com/fuseraft/kiwi.git cd kiwi make
-
Run Kiwi: After building, you can run Kiwi directly in WSL:
./bin/kiwi
Note: WSL2 enables Kiwi to run natively without Windows-specific modifications.
For syntax highlighting and code snippets in Visual Studio Code, install the Kiwi language extension.
Open VS Code, launch Quick Open (Ctrl+P), paste the following command, and press Enter:
ext install fuseraft.kiwi-lang
The Kiwi Wiki provides comprehensive information on language features, usage, and standard library functions.
Explore Kiwi’s test suite for a variety of test cases. To run the test suite:
kiwi test
To build and run the test suite using Make:
make test
Find examples demonstrating Kiwi’s capabilities, including:
- Levenshtein distance
- MD5 hashing algorithm
- Sieve of Eratosthenes
- Conway's Game of Life
- Project Euler examples
Contributions are highly appreciated! Here’s how to get involved:
- Join the Discussion: Join the Kiwi community on Discord.
- Fork the Repository: Fork Kiwi on GitHub.
- Clone the Repository: Clone your forked copy to your machine.
- Set Up Your Environment: Follow the steps in "Getting Started."
- Make Changes: Implement new features or fix issues.
- Test Your Changes: Run all tests to ensure stability.
- Submit a Pull Request: Submit your changes for review.
For more details, please refer to CONTRIBUTING.md.
This project is licensed under the MIT License.