cosmopolitan/third_party/python/Objects
Justine Tunney 80b211e314 Add raw memory visualization tool to redbean
This change introduces a `-W /dev/pts/1` flag to redbean. What it does
is use the mincore() system call to create a dual-screen terminal
display that lets you troubleshoot the virtual address space. This is
useful since page faults are an important thing to consider when using a
forking web server. Now we have a colorful visualization of which pages
are going to fault and which ones are resident in memory.

The memory monitor, if enabled, spawns as a thread that just outputs
ANSI codes to the second terminal in a loop. In order to make this
happen using the new clone() polyfill, stdio is now thread safe.

This change also introduces some new demo pages to redbean. It also
polishes the demos we already have, to look a bit nicer and more
presentable for the upcoming release, with better explanations too.
2022-05-14 04:33:58 -07:00
..
clinic Python 3.7 METH_FASTCALL backport (#406) 2022-05-13 05:05:12 -07:00
stringlib Make numerous improvements 2021-09-28 01:52:34 -07:00
abstract.c Python 3.7 METH_FASTCALL backport (#406) 2022-05-13 05:05:12 -07:00
accu.c Make whitespace changes 2021-08-13 03:20:45 -07:00
boolobject.c Make whitespace changes 2021-08-13 03:20:45 -07:00
bytearrayobject.c Make whitespace changes 2021-08-13 03:20:45 -07:00
bytes_methods.c Make numerous improvements 2021-09-28 01:52:34 -07:00
bytesobject.c Make fixes, improvements, and chibicc python bindings 2021-10-08 08:41:57 -07:00
call.c Python 3.7 METH_FASTCALL backport (#406) 2022-05-13 05:05:12 -07:00
capsule.c Make whitespace changes 2021-08-13 03:20:45 -07:00
cellobject.c Make whitespace changes 2021-08-13 03:20:45 -07:00
classobject.c Make whitespace changes 2021-08-13 03:20:45 -07:00
codeobject.c Make whitespace changes 2021-08-13 03:20:45 -07:00
complexobject.c Make whitespace changes 2021-08-13 03:20:45 -07:00
descrobject.c Python 3.7 METH_FASTCALL backport (#406) 2022-05-13 05:05:12 -07:00
dict-common.h Make numerous improvements 2021-09-28 01:52:34 -07:00
dictobject.c Python 3.7 METH_FASTCALL backport (#406) 2022-05-13 05:05:12 -07:00
enumobject.c Make whitespace changes 2021-08-13 03:20:45 -07:00
exceptions.c Make whitespace changes 2021-08-13 03:20:45 -07:00
fileobject.c Add raw memory visualization tool to redbean 2022-05-14 04:33:58 -07:00
floatobject.c Python 3.7 METH_FASTCALL backport (#406) 2022-05-13 05:05:12 -07:00
frameobject.c Python 3.7 METH_FASTCALL backport (#406) 2022-05-13 05:05:12 -07:00
fromfd.c Implement tree-shaking for Python sources 2021-09-05 01:20:03 -07:00
funcobject.c Make whitespace changes 2021-08-13 03:20:45 -07:00
genobject.c Make whitespace changes 2021-08-13 03:20:45 -07:00
iterobject.c Make whitespace changes 2021-08-13 03:20:45 -07:00
listobject.c Python 3.7 METH_FASTCALL backport (#406) 2022-05-13 05:05:12 -07:00
longobject.c Python 3.7 METH_FASTCALL backport (#406) 2022-05-13 05:05:12 -07:00
memoryobject.c Implement tree-shaking for Python sources 2021-09-05 01:20:03 -07:00
methodobject.c Python 3.7 METH_FASTCALL backport (#406) 2022-05-13 05:05:12 -07:00
moduleobject.c Make whitespace changes 2021-08-13 03:20:45 -07:00
namespaceobject.c Make whitespace changes 2021-08-13 03:20:45 -07:00
object.c Python 3.7 METH_FASTCALL backport (#406) 2022-05-13 05:05:12 -07:00
obmalloc.c Improve synchronization 2022-04-15 15:31:55 -07:00
odictobject.c Python 3.7 METH_FASTCALL backport (#406) 2022-05-13 05:05:12 -07:00
rangeobject.c Make whitespace changes 2021-08-13 03:20:45 -07:00
README python-3.6.zip added from Github 2021-08-09 05:39:42 -07:00
setobject.c Make whitespace changes 2021-08-13 03:20:45 -07:00
sliceobject.c Make whitespace changes 2021-08-13 03:20:45 -07:00
structseq.c Make whitespace changes 2021-08-13 03:20:45 -07:00
tupleobject.c Add error checks to Python objectifier (#281) 2021-10-02 06:17:17 -07:00
typeobject.c Python 3.7 METH_FASTCALL backport (#406) 2022-05-13 05:05:12 -07:00
typeslots.inc Perform build and magnum tuning 2021-08-10 10:26:13 -07:00
typeslots.py python-3.6.zip added from Github 2021-08-09 05:39:42 -07:00
unicodectype.c Make numerous improvements 2021-09-28 01:52:34 -07:00
unicodeobject-deadcode.c Make fixes, improvements, and chibicc python bindings 2021-10-08 08:41:57 -07:00
unicodeobject.c Add MODE=optlinux build mode (#141) 2021-10-14 19:36:49 -07:00
weakrefobject.c Make whitespace changes 2021-08-13 03:20:45 -07:00

Source files for various builtin objects