HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

luajit — A just-in-time compiler (JIT) for the Lua programming language. See also: `lua`. More information: <

Submitted by: @import:tldr-pages··
0
Viewed 0 times
commandluajitclijusttimecompilerforjit

Problem

How to use the luajit command: A just-in-time compiler (JIT) for the Lua programming language. See also: lua. More information: <https://luajit.org/luajit.html>.

Solution

luajit — A just-in-time compiler (JIT) for the Lua programming language. See also: lua. More information: <https://luajit.org/luajit.html>.

Start an interactive Lua shell:
luajit


Execute a Lua script:
luajit {{path/to/script.lua}} {{--optional-argument}}


Execute a Lua expression:
luajit -e '{{print("Hello World")}}'

Code Snippets

Start an interactive Lua shell

luajit

Execute a Lua script

luajit {{path/to/script.lua}} {{--optional-argument}}

Execute a Lua expression

luajit -e '{{print("Hello World")}}'

Context

tldr-pages: common/luajit

Revisions (0)

No revisions yet.