2020-06-20 06:06:17 +02:00
|
|
|
What is Rhai
|
|
|
|
============
|
|
|
|
|
2020-06-29 17:55:28 +02:00
|
|
|
{{#include ../links.md}}
|
2020-06-20 06:06:17 +02:00
|
|
|
|
2020-09-30 18:11:45 +02:00
|
|
|
![Rhai Logo]({{rootUrl}}/images/rhai_logo.png)
|
2020-09-30 17:02:01 +02:00
|
|
|
|
2020-06-20 06:06:17 +02:00
|
|
|
Rhai is an embedded scripting language and evaluation engine for Rust that gives a safe and easy way
|
|
|
|
to add scripting to any application.
|
2020-07-01 17:14:11 +02:00
|
|
|
|
|
|
|
|
2020-07-26 04:07:40 +02:00
|
|
|
Versions
|
|
|
|
--------
|
|
|
|
|
|
|
|
This Book is for version **{{version}}** of Rhai.
|
2020-07-01 17:14:11 +02:00
|
|
|
|
|
|
|
For the latest development version, see [here]({{rootUrl}}/vnext/).
|
2020-09-30 17:02:01 +02:00
|
|
|
|
|
|
|
|
|
|
|
Etymology of the name "Rhai"
|
|
|
|
---------------------------
|
|
|
|
|
|
|
|
### As per Rhai's author Johnathan Turner
|
|
|
|
|
|
|
|
In the beginning there was [ChaiScript](http://chaiscript.com),
|
|
|
|
which is an embedded scripting language for C++.
|
|
|
|
Originally it was intended to be a scripting language similar to **JavaScript**.
|
|
|
|
|
|
|
|
With java being a kind of hot beverage, the new language was named after
|
|
|
|
another hot beverage - **Chai**, which is the word for "tea" in many world languages
|
|
|
|
and, in particular, a popular kind of milk tea consumed in India.
|
|
|
|
|
|
|
|
Later, when the novel implementation technique behind ChaiScript was ported from C++ to Rust,
|
|
|
|
logically the `C` was changed to an `R` to make it "RhaiScript", or just "Rhai".
|
|
|
|
|
|
|
|
### On the origin of the temporary Rhai logo
|
|
|
|
|
|
|
|
One of Rhai's maintainers, Stephen Chung, was thinking about a logo when he accidentally
|
|
|
|
came across a copy of _Catcher in the Rye_ in a restaurant. The rest was history.
|
|
|
|
|
|
|
|
It is temporary until it becomes official, that is...
|