What webserver did Reddit use when it was originally written in Lisp?

229 views Asked by At

I'm trying to read through the code of Reddit1.0 located here:

https://github.com/reddit-archive/reddit1.0

But it's difficult to understand how the architecture of the website works without an understanding of how the website is served. The reddit code here does not appear to contain any type of server, thus it must have been imported somewhere else and then run, with like Hunchentoot or something. Does anyone know the answer?

2

There are 2 answers

0
ignis volens On BEST ANSWER

It uses Hunchentoot, under its old name of 'TBNL'. You can see that by looking at the ASDF file, where it depends on a system named tbnl. Then if you look at the end of web.lisp you can see it set *dispatch-table* to glue itself into Hunchentoot / TBNL. I imagine it ran Hunchentoot behind some kind of front-end server.

0
Ehvince On

Here is an updated fork that upgraded TBNL to Hunchentoot as we use it today, and that added DB migrations for PostGres. So in theory this reddit1.0 fork is runnable:

https://github.com/tamurashingo/reddit1.0/

I have an issue when loading it though:

Component CLSQL-UFFI-SYSTEM::UFFI does not match version 2.0,
required by #<SYSTEM "clsql-uffi">

and I didn't investigate further.