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

Channel:Feross · Length:1:00:40 · Published:2021-05-22 · Views:17561

Watch on YouTube

Summary

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.

Why HN recommends it

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

If you're interested in learning more, this talk from 2021 is fascinating — HN, 2022

C, C++, Rust, Go & systems languages · Operating systems & kernels · Networking & internet infrastructure

Subtitles (excerpt)

Hi everyone, welcome to Speak EasyJS, the meetup for mad science hacking and experiments. I'm Fas and I'll be your host this afternoon. Mad Science is about building things that make people say, "I didn't know that was possible." And today we're joined by Justine Tunny. Um, hey, how's it going? Hello. Thank you for having me. Yeah, of course. I'm super excited that you're here. Um I uh been an admirer of the stuff that you've been building for uh for I guess several months now. Um your projects have been taking I guess hacker news by storm. I've seen stuff on on the front page several times. So it's great to have you. Yeah, it's definitely been making a lot of people happy in that community. Um uh and uh thank you for noticing. I'm looking forward to presenting some of the work here um today. Yeah, totally. Um, so for those who don't know, Justine was uh formerly at Google for a bit and uh they ran occupywall street.org website and the Twitter handle for a while. And um if you check out the uh just you know your web page is is full of really cool projects that definitely are mad science and definitely the kind of stuff that we like to uh feature here at Speak Easy. So, um, yeah. So, I'm just again I'm thrilled that you that you said yes to, uh, to

On Hacker News

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 … — TimTheTinker, 2022-07
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] — adolph, 2023-01
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 secu… — jart, 2021-12
redbean is a pure fork() web server and according to ab it is much faster than nginx. I feel like we've come full circle with history. Apache started off with fork() since it offers the strongest security versus other i/o models. The problem is that code bloat makes fork() go slower so as Apache ballooned over the years there was this race to the bottom in terms of i/o models, caused by tragedy o… — jart, 2021-09
Messages per second, latency, footprint, name it. Particularly if it's gzip encoded. See [VIDEO] I'm working on giving redbean the fastest https serving too. Recently I've been helping to make the strongest elliptic curves go 3x faster. — jart, 2021-08

Related videos