Releases: jart/cosmopolitan
Cosmopolitan v3.4.0
Cosmopolitan Libc makes C a build-once run-anywhere language, like Java, except it doesn't need an interpreter or virtual machine. Instead, it reconfigures stock GCC and Clang to output a POSIX-approved polyglot format that runs natively on Linux + Mac + Windows + FreeBSD + OpenBSD + NetBSD + BIOS with the best possible performance and the tiniest footprint imaginable. For further details, read Cosmopolitan Third Edition, the Cosmo README, and the Cosmopolitan Toolchain README.
Improvements
This release makes dlmalloc scalable and zlib crc32 faster. Enterprise
server applications that employ many threads on many cores can now
look upon Cosmopolitan as a serious and viable option for their needs.
This release fixes some showstopper issues on Windows.
- e4d25d6 Drop support for Windows 8
- cd672e2 Improve crash signal reporting on Windows
- f31a98d Fix bug with realpath() on Windows
- 2816df5 Increase tinymalloc granularity
This release brings a more modern standard library for C++. It compiles
slower, but in certain cases that can be worked around since it defines
"breakout" headers for individual functions, e.g. std::move(). Since it
goes so slow, we're experimenting with creating our own STL replacement
- 8e68384 Upgrade to 2022-era LLVM libcxx
- 4937843 9906f29 Introduce Cosmopolitan Templates Library (CTL)
Our --ftrace
function call logger now demangles C++ symbols. This is
thanks to revisions we've made to our FreeBSD demangler that makes it
lockless and reentrant so it's safe to call from signal handlers. It's not as
good as the libcxxabi demangler, but that doesn't make it unimpressive.
For example, calling kprintf("%t", sym)
successfully demangles 90% of
the symbols in the llamafile codebase. Usually when it doesn't work, it's
because a symbol is very very long. Since it's run when nops are hooked
in function prologues, it has to be part of the privileged cosmo runtime,
which is highly constrained and can only use fixed size stack buffers.
Additional improvements:
- 7c8df05 Improve -march=native micro-architecture detection
- b74b974 Introduce #include <tinygetopt.h>
- 4c77acd Add LoadZipArgs() to <cosmo.h>
- fae1c32 Encode ±INFINITY as ±1e5000
Finally, this release sunsets the cosmopolitan amalgamation.
Cosmopolitan v3.3.10
Cosmopolitan v3.3.9
Cosmopolitan v3.3.8
- 1df4296 Fix stdio for character device regression
Cosmopolitan v3.3.7
- cf70a44 Support shebang on Windows
- ed93fc3 Fix fread() with 2gb+ sizes
- 5f61d27 Add hwap constants to sys/auxv.h
- 2f3c6e7 Revert "Remove zlib namespacing (#1142)"
- 65c9b28 Fix buffer overflow in Lua os.tmpname (#1180)
- bf3531d Make crash reports reliable in multithreaded case
- 13b9ecd Remove outdated restriction on -Werror on cosmocc
- 624119e Fix NT accept/connect not initializing with SO_UPDATE_*_CONTEXT (#1164)
- 0768807 Rename python -> python3 (closes #1144) (#1187)
- 4292348 Import libbsd readpassphrase (#1182)
- 42891e8 Fix #959 (typo in cosmocc --version)
- 0b59f01 Put confstr() in unistd.h
- f029375 Introduce MAP_HUGETLB
- 4718355 Fix sleb64 (#1179)
Cosmopolitan v3.3.6
Cosmopolitan v3.3.5
- b0df6c1 Implement proper time zone support
- 19c8186 Improve crash backtrace reliability
- 7d31fc3 Loaders rewrite argv[0] for old binaries (#1170)
- 57c0b06 Make old C++ demangler asynchronous signal safe
- a6ecbb7 Introduce libc/mem/tinymalloc.inc
- 3bf95ae Invent tool for renaming ELF object symbols
- 5fd7b07 Improve AVX512 feature detection
- 317c8bc Update MODE=tiny time zone list (#1167)
- d5ebb1f Add MapViewOfFile3 WIN32 API
- 06d916b Add VirtualAlloc2 WIN32 API
Cosmopolitan v3.3.4
- 5c6877b Introduce support for trapping math
- 403bc25 Make MXCSR editable by signal handlers on Windows
- 8f6bc9d Let signals interrupt fgets unless SA_RESTART set (#1152)
- deff138 recvfrom: don't convert address if addrsize is 0 (#1153)
- b6e40a3 Add /dev/(u)random on NT (#1163)
- 5488f0b Remove zlib namespacing (#1142)
- 181cd4c Add sysctlbyname() for MacOS
- 3bcd40b Fix regression in apeinstall.sh (#1161)
- fcfdd26 Fix wrong parameter type in redbean documentation (#1162)
- ff2b6fc Add munlock() and mlock2() to pledge
- 0eef971 Add much of C11 threads.h API
- 2bfd6b3 Various paginate improvements (#1148)
- 69db501 Fix fork locking on win32 (#1141)
- 6e6fc38 Apply clang-format update to repo (#1154)
- 342d0c8 vim spells the c++ filetype 'cpp'
- cec4c04 Remove .com logic from GetProgramExecutableName (#1134)
- f8c0186 Fix calling __dns_parse with potentially too large rlen
- 6992d8c Remove arbitrary limit from DNS result parsing
- 1a6b4ab Import mntent bug fixes from Musl Libc
- 223eb35 Import compiler warning fix from Musl
- ea3cc4e math: fix fma(x,y,0) when x*y rounds to -0
- 01267ea Update GetRemoteAddr documentation to clarify that it may return
nil
. (#1149) - bc6c183 Update .clang-format
- 06839ab Change loop bound on uuidv4 test (#1143)
- 39dde41 [Redbean] Add UuidV4 method (#1140)
- 3e16e59 Move store after __asan_unpoison in __zipos_alloc (#1135)
- b9d6e6e Standardize on -fsigned-char
- 49a3213 Upgrade the One True Awk
Cosmopolitan v3.3.3
- 9ff65cf Fix ZipOS extraction of ZIP64 assets
- bef2cb0 Fix AVX512_BF16
- 43885a7 Fix binary formatting for integers 2 and 3 (#1123)
- 74a8508 Support -S in cosmocross
- 045632a Make fixupobj work on Windows
- 9a10ada Remove .com from README
- 0c12c26 Update Emacs config
- 40b7da8 Speed up fmaf() on x86
- 6406689 Clarify MacOS supported versions
- 1c34088 Ignore -pie and -fpie in cosmocc
- bb92347 Add deprecated stubs for _bsf / _bsr
- 8bfd56b Rename _bsr/_bsf to bsr/bsf
- a6baba1 Stop using .com extension in monorepo
Cosmopolitan v3.3.2
This release fixes two issues with the recent 3.3.1 cosmocc release.
Please see the previous release for the latest cosmos and further details.