Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
hadashiA authored Sep 21, 2024
1 parent 2f55e5d commit be761a4
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -964,13 +964,15 @@ Ruby has very little syntax noise and is excellent at creating DSLs (Domain Spec
Its influence can still be seen in modern languages (like Rust and Kotlin, etc).

mruby is a lightweight Ruby interpreter for embedded use, implemented by the original author of Ruby himself.
- mruby operates with a memory usage of about 100KB.
- Moreover, it is possible to custom-build `libmruby` as a single library by selecting only the necessary features.

Maybe, one of the most popular embedded scripting languages for games is Lua.
Comparing lua and mruby,
- mruby can write DSLs that more closely resemble natural language.
- lua has smaller functions and smaller library size. But mruby would be small enough.
- The size of mruby minimum shared library less than 700KB.
- mruby operates with a memory usage of about 100KB.
- Moreover, it is possible to custom-build `libmruby` as a single library by selecting only the necessary features.


> [!NOTE]
> An example of a game that uses mruby is "NieR:Automata"
Expand Down

0 comments on commit be761a4

Please sign in to comment.