#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 gamegames and complex simulation developmentsimulations. 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. BlowThe author oftensometimes 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, the author seeming to ignore any questions about the name or it's pronunciation. It is not clear if it is the name that is intended to be used 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, compiledstrictly languageprocedural, just like thecompiled language it is intendedsimilar to replaceC/C++. The similarities with C++ mostly stop there however. TheAt the beginning the design of JAI has been purposely restricted in scope in order to reduce the complexity of the language. Some of the 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 machine code production, and programmer enjoyment. These requirements come from authors's experience writing games in C++. He has stated that he is far more productive when programming is enjoyable.
InAt the beginning, in 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 bu the author on YouTube entitled "[https://www.youtube.com/watch?v=TH9VCN6UkyQ Ideas about a new programming language for games.]", posted on September 19, 2014. At the time it seemed only an open discussion , without no intentions of actually implementing a new language. A few weeks later the author 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 author 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 was announced announced that the current compiler was released to a business partner outside the company for evaluation purposes. Maybe a company interested in writing some editor, debugger or other RAD tools for the language.
==Syntax==
|