Run Command
The run command is used to run a script in the current environment.
Usage
zune run [script]Run from Standard Input
zune run -- Example
echo "print('Hello World!')" | zune run -
Flags
Profiler
A run flag that profiles the script and outputs a performance report.
The file can be found as profile.out in the current working directory.
Use this perfgraph.py python script by Luau to visualize the profile.
Profile with default frequency (~10000).
zune run --profile ...Profile with a custom frequency.
zune run --profile=100000 ...Optimization Level
zune run -O=0|1|2 ...Debug Level
zune run -g=0|1|2 ...Native
Enables native code generation by default. This is the default behavior.
zune run --native ...No-native
Stops zune from using native code generation by default. This does not remove the native code generation, checkout no-jit flag.
zune test --no-native ...No-jit
Disables native code generation entirely.
zune test --no-jit ...Limbo
Disables all of zune libraries.
zune run --limbo ...No-fmt
Disables print formatting
zune run --no-fmt ...Last updated on