HackerTube
HomeLongsLikedHistoryWatch laterCategoriesPlaylistsSettings

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

Feross1 HN recommender · recommended in 1 month, 2021-2023
YouTube
18K views · 5 years ago · talk · dated

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.

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

Operating systems & kernelsNetworking & internet infrastructureC, C++, Rust, Go & systems languages#redbean#cosmopolitan#webserver#lua#justinetunney

6 comments from Hacker News

@adolph2023 · in “LiteSync – Easy synchronization of SQLite databases”

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 ▶ this video

CitesView on HN
@TimTheTinker2022 · in “Unix didn't use to support '#!', a brief history”

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: ▶ this 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

RecommendsView on HN
@jart2021 · in “Show HN: Lisp with GC in 436 Bytes”

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 ▶ this 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.

CitesView on HN
@jart2021 · in “Developers fix multitude of vulnerabilities in Apache HTTP Server”

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 of the commons. ▶ this video

CitesView on HN
@jart2021 · in “Show HN: Micro HTTP server in 22 lines of C”

Messages per second, latency, footprint, name it. Particularly if it's gzip encoded. See ▶ this 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.

CitesView on HN
@jart2021 · in ““Great resignation” wave coming for companies”

Data control and privacy are two of the most important things. I wrote a popular open source project where I've sought to improve that. Would you be interested in taking a quick look and offering candid feedback? See link and discussion thread link and interview ▶ this video and polyglot executable format link Someone like you could help me know if I'm doing it in the best possible way, since studying the influence of groups like cygnus was what helped me learn the hacking stunts that allowed me to pull it off in the first place.

CitesView on HN
introducing copyparty, the FOSS file server15:39

introducing copyparty, the FOSS file server

tripflag
613K views • 1 year ago
"I See What You Mean" by Peter Alvaro52:29

"I See What You Mean" by Peter Alvaro

Strange Loop Conference
59K views • 11 years ago
Capsicum: Practical Capabilities for UNIX34:51

Capsicum: Practical Capabilities for UNIX

USENIX
11K views • 16 years ago
Keynote - JSON Graph: Reactive REST at Netflix54:58

Keynote - JSON Graph: Reactive REST at Netflix

Association for Computing Machinery (ACM)
41K views • 11 years ago
CheerpX: a WebAssembly-based x86 virtual machine in the browser, Yuri Iozzelli37:11

CheerpX: a WebAssembly-based x86 virtual machine in the browser, Yuri Iozzelli

WebAssembly NA
7K views • 6 years ago
Servo Architecture: Safety and Performance45:05

Servo Architecture: Safety and Performance

linux conf au 2017 - Hobart, Australia
12K views • 9 years ago
High Performance Web Sites and YSlow1:00:34

High Performance Web Sites and YSlow

Google TechTalks
90K views • 18 years ago
Rick Reed - WhatsApp: Half a billion unsuspecting FreeBSD users54:14

Rick Reed - WhatsApp: Half a billion unsuspecting FreeBSD users

iX
31K views • 11 years ago
Tech Talk: Linus Torvalds on git1:10:15

Tech Talk: Linus Torvalds on git

Google
4.1M views • 19 years ago
Cory Benfield - Building Protocol Libraries The Right Way - PyCon 201631:38

Cory Benfield - Building Protocol Libraries The Right Way - PyCon 2016

PyCon 2016
15K views • 10 years ago
The Truth about Rust/WebAssembly Performance29:47

The Truth about Rust/WebAssembly Performance

Greg Johnston
218K views • 3 years ago
[Linux.conf.au 2013] - The real story behind Wayland and X45:35

[Linux.conf.au 2013] - The real story behind Wayland and X

HackersOnBoard
35K views • 13 years ago
Servo: Building a Parallel Browser43:29

Servo: Building a Parallel Browser

Linux.conf.au 2015 -- Auckland, New Zealand
23K views • 11 years ago
GigCityElixir23 - Bryan Hunter1:01:46

GigCityElixir23 - Bryan Hunter

Groxio
10K views • 3 years ago
A walk through of installing Synapse+Riot+Jitsi from scratch on Debian24:09

A walk through of installing Synapse+Riot+Jitsi from scratch on Debian

Matrixdotorg
61K views • 6 years ago
Implementing (part of) a BitTorrent client in Rust4:09:16

Implementing (part of) a BitTorrent client in Rust

Jon Gjengset
115K views • 3 years ago
Stanford Seminar - The Soul of a New Machine: Rethinking the Computer1:26:02

Stanford Seminar - The Soul of a New Machine: Rethinking the Computer

Stanford Online
76K views • 6 years ago
Aalto Talk with Linus Torvalds [Full-length]1:03:56

Aalto Talk with Linus Torvalds [Full-length]

aaltouniversityace
2M views • 14 years ago
Hacker Way: Rethinking Web App Development at Facebook44:36

Hacker Way: Rethinking Web App Development at Facebook

Meta Developers
900K views • 12 years ago
Erlang Factory SF 2016 Keynote  Phoenix and Elm – Making the Web Functional55:28

Erlang Factory SF 2016 Keynote Phoenix and Elm – Making the Web Functional

Erlang Solutions
23K views • 10 years ago