HackerTube.dev

Speakeasy JS - Redbean: Actually Portable Executable Web Server (Justine Tunney)

Feross · 17.5K views · 2021-05-22 · 1:00:40

Open on YouTube ↗

If playback is restricted in your region, try opening the original video. Use Mark watched to add it to your marked videos.

Overview

Justine Tunney presents Redbean, a web server distributed as a single actually portable executable that runs on multiple operating systems. It embeds Lua, SQLite and MbedTLS in a fork-based server.

On Hacker News

The author and others link it as the definitive explanation of redbean and the APE toolchain, including its performance claims.

Recommended by 1 HN people across 1 months · HN mentions 2021–2023

Topics

Search by tags

What people said

TimTheTinker · 2022-07 · Recommendation

Justine Tunney's APE (actually portable executables) exploits, er, makes use of, the fact that a shebang isn't required to run a shell script. The single executable file generated by the Cosmopolitan linker creates an insane polyglot binary executable that runs on 6 operating systems as well as on bare metal (i.e. bootable as its own OS); in addition, it's a valid Zip archive, and you can modify files inside it using any zip utility... fascinating stuff. On Linux, it bootstraps execution initially as a shell script, but the shell script writes the "ELF" file header and executes it (I'm probably doing a horrible job of explaining though). [LINK] If you're interested in learning more, this talk from 2021 is fascinating: [VIDEO] . It covers Redbean, a portable, run-anywhere web server built with the APE toolchain; since then Redbean 2 has been released, which adds a lot more features. Here's a link to Redbean: [LINK]

Read the original HN comment ↗
adolph · 2023-01 · Reference

Like running redbean on someone else's computer? redbean embeds Lua, SQLite, and MbedTLS into a fork() driven application server that benchmarks at 1.1 million qps on a personal computer. [LINK] [VIDEO]

Read the original HN comment ↗
jart · 2021-12 · Reference

Author here. Thanks! The other projects I'm known for here on HN are: [LINK] Redbean (2011) is a single file distributable web server. Here's a video of me giving a talk about it [VIDEO] [LINK] αcτµαlly pδrταblε εxεcµταblε (2020) lets you build c/c++/fortran/etc. code so that it runs on seven operating systems [LINK] Operation Rosehub (2017) where I helped save a lot of people from an Apache security bug similar to Log4j issue today I like doing these projects because they all fit together so well into a consistent story. For example, a lot of these past projects were what helped to make SectorLISP better. Thanks to APE you now have a 20kb quickly deployable and embeddable LISP interpreter. Thanks to Redbean we're going to have an online pastebin service that'll let you publish SectorLISP gists in a few days, for example: [LINK] Thank you Hacker News community for being so supportive and encouraging.

Read the original HN comment ↗

Sources

Video by Feross, played through YouTube.

Data and selection notes

HN summaries and labels may contain AI errors. HN dates refer to discussions, not video publication.

HN Library: HackerTube export (2026-10-31) and open-index/hacker-news. Upstream summaries and classifications may contain AI errors.

Views, duration and playback status refresh separately from the published catalog. When an update fails, existing data remains visible.

Selection checks
  • SaaS & AI candidates: Topic keywords do not match
  • Editor-approved picks: Editorial review is required

Rule matches identify candidates. They do not guarantee video quality or financial results.

About the library and its sources