mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-01-31 11:37:35 +00:00
281a0f2730
You can now call functions like fork() from Lua and it'll work across all supported platforms, including Windows. This gives you a level of control of the system that Lua traditionally hasn't been able to have due to its focus on old portable stdio rather modern POSIX APIs. Demo code has been added to redbean-demo.com to show how it works. This change also modifies Lua so that integer literals with a leading zero will be interpreted as octal. That should help avoid shooting in the foot with POSIX APIs that frequently use octal mode bits. This change fixes a bug in opendir(".") on New Technology. Lastly, redbean will now serve crash reports to private network IPs. This is consistent with other frameworks. However that isn't served to public IPs unless the -E flag is passed to redbean at startup.
28 lines
962 B
Text
28 lines
962 B
Text
DESCRIPTION
|
|
|
|
Lua is a language designed for embedded use in native applications. It
|
|
has an impossibly elegant C API and the Lua language itself feels more
|
|
like Python compared to alternatives like Tcl except it's a great deal
|
|
faster and doesn't have strong opinions about character encoding.
|
|
|
|
PROVENANCE
|
|
|
|
https://github.com/lua/lua/
|
|
|
|
commit e7803f7dbcdc966ab1f9db143424ee811ab1a398
|
|
Author: Roberto Ierusalimschy <roberto@inf.puc-rio.br>
|
|
Date: Wed Mar 3 09:44:20 2021 -0300
|
|
|
|
New release number (5.4.3)
|
|
|
|
luac.c needed to be sourced from:
|
|
https://www.lua.org/ftp/lua-5.4.3.tar.gz
|
|
|
|
LOCAL MODIFICATIONS
|
|
|
|
Integer literals such as `033` will now be interpreted as octal.
|
|
|
|
The `\e` string literal escape sequence has been added, which is
|
|
equivalent to `\27` (the Lua version of `\033`) or the ASCII ESC
|
|
character. It may be used for teletypewriter control like having
|
|
bold text, which can be encoded elegantly as `\e[1mHELLO\e[0m`.
|