cosmopolitan/third_party/lua
Justine Tunney 8af197560e Improve Libc by making Python work even better
Actually Portable Python is now outperforming the Python binaries
that come bundled with Linux distros, at things like HTTP serving.
You can now have a fully featured Python install in just one .com
file that runs on six operating systems and is about 10mb in size.
With tuning, the tiniest is ~1mb. We've got most of the libraries
working, including pysqlite, and the repl now feels very pleasant.
The things you can't do quite yet are: threads and shared objects
but that can happen in the future, if the community falls in love
with this project and wants to see it developed further. Changes:

- Add siginterrupt()
- Add sqlite3 to Python
- Add issymlink() helper
- Make GetZipCdir() faster
- Add tgamma() and finite()
- Add legacy function lutimes()
- Add readlink() and realpath()
- Use heap allocations when appropriate
- Reorganize Python into two-stage build
- Save Lua / Python shell history to dotfile
- Integrate Python Lib embedding into linkage
- Make isregularfile() and isdirectory() go faster
- Make Python shell auto-completion work perfectly
- Make crash reports work better if changed directory
- Fix Python+NT open() / access() flag overflow error
- Disable Python tests relating to \N{LONG NAME} syntax
- Have Python REPL copyright() show all notice embeddings

The biggest technical challenge at the moment is working around
when Python tries to be too clever about filenames.
2021-08-18 22:16:23 -07:00
..
test Revert adding lua array per discussion in #222 (#229) 2021-08-07 15:20:33 -07:00
lapi.c Revert adding lua array per discussion in #222 (#229) 2021-08-07 15:20:33 -07:00
lapi.h Get Lua to build with all tests passing 2021-03-07 13:31:09 -08:00
lauxlib.c Add Lua compiler 2021-08-09 13:09:14 -07:00
lauxlib.h Upgrade Lua to 5.4.3 (#217) 2021-07-28 09:26:35 -07:00
lbaselib.c Revert adding lua array per discussion in #222 (#229) 2021-08-07 15:20:33 -07:00
lcode.c Upgrade Lua to 5.4.3 (#217) 2021-07-28 09:26:35 -07:00
lcode.h Get Lua to build with all tests passing 2021-03-07 13:31:09 -08:00
lcorolib.c Upgrade Lua to 5.4.3 (#217) 2021-07-28 09:26:35 -07:00
lctype.c Get Lua to build with all tests passing 2021-03-07 13:31:09 -08:00
lctype.h Get Lua to build with all tests passing 2021-03-07 13:31:09 -08:00
ldblib.c Upgrade Lua to 5.4.3 (#217) 2021-07-28 09:26:35 -07:00
ldebug.c Revert adding lua array per discussion in #222 (#229) 2021-08-07 15:20:33 -07:00
ldebug.h Get Lua to build with all tests passing 2021-03-07 13:31:09 -08:00
ldo.c Upgrade Lua to 5.4.3 (#217) 2021-07-28 09:26:35 -07:00
ldo.h Upgrade Lua to 5.4.3 (#217) 2021-07-28 09:26:35 -07:00
ldump.c Get Lua to build with all tests passing 2021-03-07 13:31:09 -08:00
lfunc.c Add Lua compiler 2021-08-09 13:09:14 -07:00
lfunc.h Get Lua to build with all tests passing 2021-03-07 13:31:09 -08:00
lgc.c Revert adding lua array per discussion in #222 (#229) 2021-08-07 15:20:33 -07:00
lgc.h Get Lua to build with all tests passing 2021-03-07 13:31:09 -08:00
linit.c Get Lua to build with all tests passing 2021-03-07 13:31:09 -08:00
liolib.c Upgrade Lua to 5.4.3 (#217) 2021-07-28 09:26:35 -07:00
ljumptab.inc Get Lua to build with all tests passing 2021-03-07 13:31:09 -08:00
llex.c Have redbean show zip listing as default / handler 2021-03-29 01:22:49 -07:00
llex.h Get Lua to build with all tests passing 2021-03-07 13:31:09 -08:00
llimits.h Upgrade Lua to 5.4.3 (#217) 2021-07-28 09:26:35 -07:00
lmathlib.c Upgrade Lua to 5.4.3 (#217) 2021-07-28 09:26:35 -07:00
lmem.c Upgrade Lua to 5.4.3 (#217) 2021-07-28 09:26:35 -07:00
lmem.h Get Lua to build with all tests passing 2021-03-07 13:31:09 -08:00
loadlib.c Fix bugs and make improvements to redbean 2021-08-06 14:18:34 -07:00
lobject.c Add Lua compiler 2021-08-09 13:09:14 -07:00
lobject.h Add Lua compiler 2021-08-09 13:09:14 -07:00
lopcodes.c Get Lua to build with all tests passing 2021-03-07 13:31:09 -08:00
lopcodes.h Upgrade Lua to 5.4.3 (#217) 2021-07-28 09:26:35 -07:00
lopnames.inc Get Lua to build with all tests passing 2021-03-07 13:31:09 -08:00
loslib.c Upgrade Lua to 5.4.3 (#217) 2021-07-28 09:26:35 -07:00
lparser.c Revert adding lua array per discussion in #222 (#229) 2021-08-07 15:20:33 -07:00
lparser.h Get Lua to build with all tests passing 2021-03-07 13:31:09 -08:00
lprefix.h Add Lua 2021-03-07 12:50:34 -08:00
lstate.c Upgrade Lua to 5.4.3 (#217) 2021-07-28 09:26:35 -07:00
lstate.h Add Lua compiler 2021-08-09 13:09:14 -07:00
lstring.c Upgrade Lua to 5.4.3 (#217) 2021-07-28 09:26:35 -07:00
lstring.h Get Lua to build with all tests passing 2021-03-07 13:31:09 -08:00
lstrlib.c Upgrade Lua to 5.4.3 (#217) 2021-07-28 09:26:35 -07:00
ltable.c Revert adding lua array per discussion in #222 (#229) 2021-08-07 15:20:33 -07:00
ltable.h Get Lua to build with all tests passing 2021-03-07 13:31:09 -08:00
ltablib.c Revert adding lua array per discussion in #222 (#229) 2021-08-07 15:20:33 -07:00
ltests.c Upgrade Lua to 5.4.3 (#217) 2021-07-28 09:26:35 -07:00
ltests.h Get Lua to build with all tests passing 2021-03-07 13:31:09 -08:00
ltm.c Revert adding lua array per discussion in #222 (#229) 2021-08-07 15:20:33 -07:00
ltm.h Add Lua compiler 2021-08-09 13:09:14 -07:00
lua.h Revert adding lua array per discussion in #222 (#229) 2021-08-07 15:20:33 -07:00
lua.main.c Improve Libc by making Python work even better 2021-08-18 22:16:23 -07:00
lua.mk Improve Libc by making Python work even better 2021-08-18 22:16:23 -07:00
luac.main.c Add Lua compiler 2021-08-09 13:09:14 -07:00
luaconf.h Ues linenoise in Lua, Python, and SQLite 2021-08-14 11:26:23 -07:00
lualib.h Get Lua to build with all tests passing 2021-03-07 13:31:09 -08:00
lundump.c Get Lua to build with all tests passing 2021-03-07 13:31:09 -08:00
lundump.h Get Lua to build with all tests passing 2021-03-07 13:31:09 -08:00
lutf8lib.c Get Lua to build with all tests passing 2021-03-07 13:31:09 -08:00
lvm.c Revert adding lua array per discussion in #222 (#229) 2021-08-07 15:20:33 -07:00
lvm.h Revert adding lua array per discussion in #222 (#229) 2021-08-07 15:20:33 -07:00
lzio.c Get Lua to build with all tests passing 2021-03-07 13:31:09 -08:00
lzio.h Get Lua to build with all tests passing 2021-03-07 13:31:09 -08:00
README.cosmo Add Lua compiler 2021-08-09 13:09:14 -07:00
tms.h Add Lua compiler 2021-08-09 13:09:14 -07:00

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

  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`.