Draft:Alusus (programming language)



Alusus
ParadigmMulti-paradigm: procedural, object-oriented, functional
Designed bySarmad Khalid Abdullah
DeveloperAlusus Software Ltd.
Typing disciplineStatic, strong
LicenseAlusus Public License
Filename extensions.alusus
Websitealusus.org
Major implementations
Alusus Compiler
Dialects
English, Arabic

Alusus is an open-source, general-purpose programming language designed for high extensibility. Developed by Alusus Software Ltd, it aims to unify low-level programming (similar to C and C++) with high-level programming (similar to Python) within a single language framework.

The language is notable for its "horizontally and vertically" expandable architecture, which allows users to add new language features, syntax, and programming paradigms via libraries without modifying the core compiler.

Key Features

Extensibility and Dialects

The defining feature of Alusus is its ability to be dynamically extended at compile-time. Unlike traditional languages with fixed grammar, Alusus allows:

  • Dynamic Grammar: Users can define new grammar rules and syntax during the compilation process.
  • Compiler Interoperability: Programs can communicate with the compiler to modify its data or generate new code programmatically.
  • Multilingual Support: Because the syntax is not hard-coded, the language supports multiple dialects based on spoken languages. Currently, Alusus officially supports both English and Arabic dialects.

Performance and Compilation

Alusus is designed to bridge the gap between interpreted flexibility and compiled efficiency:

  • JIT and AOT Compilation: By default, Alusus utilizes Just-In-Time (JIT) compilation via LLVM, but it also supports Ahead-of-Time (AOT) compilation for generating standalone executables.
  • Low-Level Control: It provides direct access to pointers, manual memory management, and static typing, making it suitable for performance-critical tasks.

Syntax

Alusus uses a procedural syntax that emphasizes clarity. Below is a basic "Hello World" example in the English dialect:

import "Srl/Console";
use Srl.Console;

function main () {
    print("Hello, World!\n");
}

main();

Ecosystem

The Alusus ecosystem includes several specialized libraries for modern development:

  • WebPlatform: A framework for building web applications using WebAssembly.
  • Rows: An Object-Relational Mapping (ORM) library for database management.
  • Srl (Standard Runtime Library): Provides standard functions for I/O, string manipulation, and system interaction.

License

Alusus is released under the Alusus Public License, an open-source license designed to maintain the integrity of the language core while allowing community contributions and library development.

References

Category:Programming languages Category:Multi-paradigm programming languages

Content Disclaimer

Informasi ini disarikan dari Wikipedia dan disajikan kembali untuk tujuan edukasi. Konten tersedia di bawah lisensi CC BY-SA 3.0. Kami tidak bertanggung jawab atas ketidakakuratan data yang bersumber dari kontribusi publik tersebut.

  1. The information displayed on this website is sourced in part or in whole from Wikipedia and has been adapted for the purpose of restating it. We strive to provide accurate and relevant information, however:
  2. There is no guarantee of absolute accuracy. Wikipedia is an open, collaborative project that can be edited by anyone, so information is subject to change.
  3. It is not intended to constitute professional advice. The content displayed is for informational and educational purposes only. For important decisions (e.g., medical, legal, or financial), please consult a professional.
  4. Content copyright. Wikipedia is licensed under the Creative Commons Attribution-ShareAlike License (CC BY-SA). This means that content may be reused with appropriate attribution and shared under a similar license.
  5. Responsible use. Any risk arising from the use of information from this website is entirely the responsibility of the user.