KIESEL(1)
π KIESEL(1) π
okay bestie, so kiesel is a whole thing β it's the manual page for the kiesel JavaScript engine, and I'm literally gonna walk you through every single flag so you don't have to guess. section one is the General Commands Manual, and yes, we're reading it together. π«Ά
β¨ NAME β¨
kiesel β a JavaScript engine written in Zig. no cap, from scratch. π
π¦ SYNOPSIS π¦
kiesel [-c, --command command] [-d, --debug] [--disable-gc]
[-m, --module] [--print-ast] [--print-bytecode] [--print-ir]
[--print-gc-warnings] [--print-promise-rejection-warnings]
[-p, --print-result] [-v, --version] [-h, --help] [file]
πΈ DESCRIPTION πΈ
so like, kiesel is a JavaScript engine that was written completely from scratch, and its eventual goal (manifesting it β¨) is full support for the latest ECMAScript standard. main character energy fr.
the command line options are as follows β and yes I'm listing all of them, because I would never do you like that:
-c,--commandcommand β runs command instead of reading from a file. like, you just hand it the code directly. iconic.-d,--debugβ enables debug mode, which gives you a more detailed output. it's giving "tell me everything" π--disable-gcβ disables garbage collection. heads up bestie: this results in memory leaks. like, that's literally what it does, it's not a bug it's the feature π-m,--moduleβ runs the code as a module instead of a script. vibe check: module mode.--print-astβ prints the parsed AST for file, or for every statement in the interactive input. and it still continues with normal execution afterwards. β¨--print-bytecodeβ prints the generated bytecode for file, or for every statement in the interactive input. also continues with normal execution afterwards. π--print-irβ prints the generated IR for file, or for every statement in the interactive input. yep, normal execution continues afterwards too. π--print-gc-warningsβ prints the warnings from the garbage collector, e.g. out-of-memory situations. lowkey useful ngl.--print-promise-rejection-warningsβ prints promise rejection warnings. so you actually know when a promise got rejected instead of suffering in silence π-p,--print-resultβ prints the evaluated result for file at the end of its execution. oh and btw, this behavior is the default when running in interactive mode. π«Ά-v,--versionβ prints the version and exits. quick lil peek. π¦-h,--helpβ prints a help text and exits. the classic. π
π EXIT STATUS π
the kiesel utility exits 0 on success, and >0 if an error occurs. periodt.
π EXAMPLES π
okay so place the following in a file named script.js:
const words = [ "meow :3", "awawawa", "uwu" ];
for (let i = 0; i < words.length: i++) {
console.log(words[i]);
}
(yes that's exactly how it's written in the manual, don't come for me π)
executing the following command:
kiesel script.js
will result in:
meow :3
awawawa
uwu
slay. it ate. π₯
π SEE ALSO π
porffor(1) β go say hi to the neighbors π
β STANDARDS β
Ecma International, ECMA-262, https://tc39.es/ecma262/. the sacred texts, iykyk πβ¨
π§ HISTORY π§
the kiesel JavaScript engine has been in development since mid-2023. so it's been grinding for a minute π«‘
π AUTHORS π
the kiesel JavaScript engine was written by Linus Groh <mail@linusgroh.de>. the manual page was written by Clara Engler <https://cve.cx>. legends, both of them π
π BUGS π
yes. awawawawa :3. that's the answer, that's the bug report.
the bug tracker is hosted on Codeberg: https://codeberg.org/kiesel-js/kiesel/issues β go drop your findings there bestie ππ
aaaand that's the whole page! this glorious thing came to you via Debian, dated August 19, 2024 β bookmark it, screenshot it, tattoo it, whatever. bye bestie, go write some Zig-adjacent JavaScript ππ β¨
π¦ where this page comes from
- alpine 3.24: kiesel-doc 0.2.0-r0 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms