awesome-cosmo icon indicating copy to clipboard operation
awesome-cosmo copied to clipboard

awesome-cosmo

logo

This is a curated list of apps compiled for Cosmopolitan Libc:

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.

The List

Redbean

Redbean: single-file distributable web server

Direct Download 1.4

All you need to do is download the redbean.com program below, change the filename to .zip, add your content in a zip editing tool, and then change the extension back to .com.

redbean can serve 1 million+ gzip encoded responses per second on a cheap personal computer.

It embeds the Lua programming language which lets you write dynamic pages.

It embeds Sqlite 3.35.5.

All in 1.1mb. not gb. mb. 1,149,201 bytes.

features:

  • HTTP v0.9
  • HTTP v1.0
  • HTTP v1.1
  • Lua v5.4
  • SQLite 3.35.5
  • Pipelining
  • Monitoring
  • Accounting
  • Content-Encoding
  • Range / Content-Range
  • Last-Modified / If-Modified-Since

SQLite 3.35.5

SQLite is a C-language library that implements a small, fast, self-contained, high-reliability, full-featured, SQL database engine. SQLite is the most used database engine in the world.

SQLite3 Page

Direct Download from justine.lol

  • Compile directions here (requires linux environment): https://github.com/jart/cosmopolitan/pull/162
  • SQLite Home Page

Wasm3

The fastest WebAssembly interpreter, and the most universal runtime.

Wasm3 Github Page

Direct Download

Lua

Compiling Lua Comment

git clone [email protected]:jart/cosmopolitan.git
cd cosmopolitan
make -j8 o//third_party/lua/lua.com

Direct Download

QuickJS

QuickJS is a small and embeddable Javascript engine. It supports the ES2020 specification including modules, asynchronous generators, proxies and BigInt.

QuickJS Javascript Engine

Official Repo

Direct Download

Direct Zip Download

Python 2.7

This repo contains the source code of Python 2.7.18 customized to compile with Cosmopolitan libc. Meant for experimental purposes only.

Repo: Compiling Python2.7 with Cosmopolitan

Direct Zip Download

OCaml (4.13 & 4.14)

A tweaked OCaml compiler to compile OCaml code with Cosmopolitan libc. Meant for experimental purposes only.

Repo: Esperanto, when OCaml meets Cosmopolitan Brief presentation of Esperanto