LinuxCommandLibrary

luajit

just-In-Time compiler for Lua

TLDR

Start interactive interpreter

$ luajit
copy
Run script
$ luajit [script.lua]
copy
Execute code
$ luajit -e "[print('Hello')]"
copy
Run with arguments
$ luajit [script.lua] [arg1] [arg2]
copy
Compile to bytecode
$ luajit -b [script.lua] [script.out]
copy
Interactive after script
$ luajit -i [script.lua]
copy

SYNOPSIS

luajit [options] [script] [args]

DESCRIPTION

luajit is a Just-In-Time compiler for Lua. It provides significantly faster execution than standard Lua.
The tool is Lua 5.1 compatible with extensions. Widely used for high-performance Lua applications.

PARAMETERS

SCRIPT

Lua script file.
ARGS
Script arguments.
-e CODE
Execute string.
-b
Compile to bytecode.
-i
Interactive mode.
-j CMD
JIT control command.
--help
Display help information.

CAVEATS

Lua 5.1 compatible only. FFI requires native code knowledge. Platform-specific optimizations.

HISTORY

LuaJIT was created by Mike Pall to provide a high-performance Lua implementation with JIT compilation.

SEE ALSO

lua(1), luac(1)

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community