Ethos is a unique programming language designed to be conversational and English-like, transpiling directly to Python. It aims to make coding more accessible by using natural language syntax, where every statement ends with a period, eliminating the need for brackets or semicolons.
The project is made by me, a Class 9 student from India.
English Syntax: Utilizes natural language for control flow structures like if, while, repeat, and count loops, making code read like sentences.
Type Casting: Supports explicit type casting, for example, set age to "25" to number..
String Slicing: Allows for easy manipulation of strings with syntax like set piece to text from 0 to 5..
Functions: Enables the definition and execution of functions using intuitive commands such as how to greet with name. and run greet with "Aman"..
Imports: Facilitates the use of external libraries with commands like bring in math. followed by run math.sqrt with 16..
Hard Traits: Supports loading compiled C/C++/Rust binaries via ctypes for extended functionality.
Soft Traits: Allows for the installation of Python packages into ~/.ethos/traits/.
Installers are available for Windows and macOS. For Linux, refer to LINUX_INSTALL.md. Android users can install via Termux by adding the Ethos repository or downloading the .deb file.
Development on the initial Python version has been halted due to a lack of testers. A planned rewrite in Rust has also been stopped for the same reason. The project is seeking testers to help find bugs and gather feedback.
Contributions are welcome, particularly for Hard Trait SDK bindings in Go, Java, and Zig, as well as bug reports and fixes. Users are encouraged to open an issue before starting large feature implementations.
Comprehensive documentation is available in DOCS.md, along with build instructions in BUILDING.md and details on standard library shims in STDLIB_SHIMS.md.
Forge: The associated package manager.
Ethos Foundry: A collection of hard traits for Ethos.
Built with