r/coolgithubprojects 3h ago

Ity: a tiny but powerful scripting language.

Post image

I made a programming language from scratch in C++ for the purpose of being small, heavily modular, multi-platform, & simple to use. There are a TON of example scripts to look at, including a full Conway's Game of Life simulation. The repo also includes in-depth documentation (markdown) on structure, syntax, types, operators, functions, & standard modules.

I/O, time, file-system, & math modules are all built-in. With additional script-based modules in development!

Ity can be used as a library in your project & provides convenient APIs for parsing & execution. Everything is state-based so you can keep multiple instances.

There is a lot of work to be done as this is still a new project, anybody is welcome to contribute!

https://github.com/phosxd/Ity

3 Upvotes

2 comments sorted by

1

u/Specific_Cream2815 3h ago

what is the target use, embedded scripting inside other apps or general purpose

1

u/PhosXD 3h ago

Both! I originally made this because embedding Python inside my app took 10MB which I found crazy for the simple tasks I'm having it do, and also the memory usage. But I think it's grown beyond what I originally needed it for, I still do plan on using it as the primary scripting language for a game / UI layout engine I wanna build.

Python is a lot better at general use cases since it has a lot of modules you can easily install for anything you can imagine, but that doesn't discourage me!