-
Notifications
You must be signed in to change notification settings - Fork 81
Brief Description
In short, Jai could be described as a data-oriented modern replacement for C alternative to C++ and the OOP culture.
All reserved words, symbols, and constructs are meant to get overall consistency and clarity of intent, even if using a simple and terse syntax.
Any function can run at compile time using special compiler directives (eg. #run
) This allows the programmer to build entire portions of the code during compilation, even in nested cycles of iteration getting rid of preprocessors and macro expansion.
All declarations can be made in any order, the compiler figures out the missing dependencies without the need of header files, even if portions of the code will be available after further cycles of metaprogramming generation.
The goal for the compiler performance is to get a throughput of 1,000,000 raw lines per second. This feature alone will reduce considerably the overall amount of time spent in code development, with several other benefits.
The compiler gives contextualized, clear, concise and accurate error messages and also hints and possibly suggestions, to help the programmer to fix the syntax errors easily.
The language syntax facilitates code evolution by making it easy to generalize the code via progressive refinement, moving it from function scope → to a local block → to a local "private" function → finally to a global "public" function that can be used everywhere.
No use of external or additional tools: the build process and its parameters are specified in the source code itself, via normal functions that the compiler understands.
The language is aimed toward efficient bulk data manipulation, and transformation of data streams, instead of focusing on data ownership abstractions, typical of so-called OOP languages.
Static type information for every data type is available at runtime and can be used conveniently by the programmer to implement features available in other dynamically typed languages.
Polymorphism at the function level allows the programmer to apply data manipulation algorithms to different data sets or data streams.
Total control over memory allocation, automatic ownership management, no automatic garbage collection, minimization of deallocation and heap fragmentation using efficient memory pool operations.
Explicit control over things like inlining, bounds checking, and initialization.
The compiler gives advanced code statistics using also a graphic representation of the produced machine code. This data can be used both by code editors, debuggers and profiler tools.
These documents were verified using Grammarly free browser plugin for Chrome. Please use some spell checker before submitting new content.
- Variables and assignments
- Language data types
- Simple user-defined data types
- Expressions and operators
- Type-casting
- Pointers
- Declarations
- Arguments / Parameters
- Return values
- Overloading / Polymorhism
- Advanced features
- Lambdas
- Arrays
- Strings
- Composition of Structs
- Metaprogramming
- Templates / Generics