#REDIRECT [[Jonathan Blow#JAI language]]
{{short description|highe performance programming language for games}}
== Introduction ==
{{Infobox programming language
| name = JAI
}}
JAI is a programming language that is intended to replace C++ for development of high performance video games and complexgame simulationsprograming. The language is being developed by [[Jonathan Blow]] and members of his company Thekla inc. The language is not available to the general public yet. The authorBlow sometimesoften live streams development of the language and the game he his company is currently working on which is being implemented in the new language.
The actual pronunciation of "JAI" is up for debate, thewith authorJon seeming to ignore any questions about the name or it's pronunciation. It is not clear if it is the name that isJon intendedintends to be useduse for the language or if it is just the file extension, with the name of the language itself being something different.
==Overview==
JAI is a statically typed, strictlycompiled procedural,language compiledjust like the language similarit is intended to C/C++replace. The similarities with C++ mostly stop there however. At the beginning theThe design of JAI has been purposely restricted in scope in order to reduce the complexity of the language. Some of theIt's more notable features include, type inference, no header files, and arbitrary compile time code execution for [[metaprogramming]].
Among the language goals are fast compilation, highly optimized machineperformant code production, and programmer enjoyment. These requirements come from authorsBlow's experience writing games in C++. He has stated that he is far more productive when programming is enjoyable.
At the beginning, inIn order to minimize compilation time during development, the compiler has the ability to emit poorly optimized x64 assembly code very quickly. When maximum performance of generated code is desired the [[LLVM]] back end is used to produce optimized code.
==History==
The earliest history available about the language come from a video post by the authorJon on YouTube entitled "[https://www.youtube.com/watch?v=TH9VCN6UkyQ Ideas about a new programming language for games.]", posted on September 19, 2014. At thethis time it seemedappears onlythat anJon open discussion, withouthad no intentions of actually implementing a new language. A few weeks later the authorJon presented a demo of the language. At this stage the language was being implemented by first generating C source code that was then itself compiled, much the same as early C++ compilers operated. Even at this early date, key features of the language were present, such as compile time code execution.
Till then the authorJonathon continued to develop the language, hosting twitch streams and and posting progress reports on YouTube. He has kept the language and source restricted to his company during development, with plans to release it to the wider public once the compiler had been moved into a more robust state.
In a tweet posted on November 1, 2019 it wasJon announced that thehe currenthad compilerreleased wasthe releasedcompiler to aan businessunknown partnernumber forof evaluationpeople purposes.outside Maybe athe company interested in writing some editor, debugger or other RAD tools for the language.
==Syntax==
The authorBlow has stated during his Twitch streams that the syntax has not been finalized and is open to altering it in the future. The syntax of JAI is broadly derived from C++ and therefore C syntax. Blocks are delineated by curly brackets, and semicolons are required to terminated a statement.
'''Variable Declaration'''
|