GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - MickaelDP/Custom_HTTP_Stack-Symbolic_NLP_Middleware: A from-scratch HTTP server and Symbolic NLP engine (ELIZA) implemented in Common Lisp. Features custom middleware for session management and stateful conversation memory.

BranchesTags
Open more actions menu

Latest commit

 

History

3 Commits
3 Commits

Folders and files

NameName
Last commit message
Last commit date
Assets
Assets
 
 
Eliza_mac.lisp
Eliza_mac.lisp
 
 
Erules.lisp
Erules.lisp
 
 
LICENSE
LICENSE
 
 
Readme.md
Readme.md
 
 
handlerweb_final.lisp
handlerweb_final.lisp
 
 
handlerwebv2.lisp
handlerwebv2.lisp
 
 
serveur.lisp
serveur.lisp
 
 

Repository files navigation

Custom HTTP Stack & Symbolic NLP Middleware

A from-scratch Web Infrastructure and Pattern-Matching Engine in Common Lisp

Paris 8 University (Bachelor Legacy) 2020 Original Development

2026 Refactored for English documentation translation


📌 Project Overview

This project explores the "Intermediary Converter" (Middleware) problem: how to bridge a stateless, text-based network protocol (HTTP) with a stateful, symbolic logic environment (Common Lisp).

Originally developed in 2020 (Paris 8 University) and refactored in 2026 for international documentation, this stack implements a complete pipeline bridging 1960s Symbolic AI with web technologies. It features a custom-built Web Server serving an advanced ELIZA-style chatbot, capable of managing persistent session memory and dynamic HTML generation without any external frameworks.

🏗 Architectural Components & Logic Flow

  1. Low-Level HTTP Engine (Backend Engineering Inspired by Land of Lisp).
  • Socket Management: Developed a fully functional HTTP server from scratch, handling raw network streams and socket listeners.
  • The Conversion Problem: Implemented a custom decoder to translate "Escape Codes" (URL Encoding) into Lisp-compatible symbols, solving the data translation layer between browser and engine.
  • Protocol Handling: Specialized parsing of content-length in POST headers to manage raw data buffers effectively.
  1. Symbolic NLP Middleware (Language Engineering)
  • Pattern-Matching Engine: A recursive symbolic processing engine designed to interpret natural language through a specialized rule database (Erules.lisp).

  • Joker System: Support for advanced matching logic:

      * : Greedy multi-word matching.
    
      !! : Member-of-list verification.
    
      ? : Conditional binding to variables (e.g., proper name detection).
    
      *? : Sequence recording for contextual substitution.
    
  1. Stateful Session Management (System Architecture)

To overcome the stateless nature of HTTP, the final implementation features a dedicated persistence layer:

  • User Identification: Tracking individual sessions via unique IDs (generated via gensym) passed through hidden HTML form fields.
  • Contextual Memory: A sliding window history (Conversation Memory) stored in association lists, allowing the bot to maintain state across multiple requests.
  • Dynamic Templating: Real-time generation of UI/HTML components directly from Lisp logic.

Mutiple users

🚀 Key Technical Value

  • Full-Stack Ownership: From socket management to the frontend, every layer is built in Lisp. Every layer, from low-level socket management to the frontend UI, is implemented in pure Common Lisp.
  • Middleware Design: Solving the "Conversion Problem" between stateless HTTP and stateful symbolic processes. Demonstrates mastery in synchronizing stateless/stateful environments—a core challenge in distributed systems.
  • Symbolic Paradigm: Advanced use of recursion, list processing, and high-order functions. Showcases advanced functional programming foundations, including recursion, homoiconicity (data as code), and high-order functions.

💻 Setup & Usage

Requirement: A Common Lisp environment (SBCL/CLISP) and usocket library.

Launch:
Lisp (load "handlerweb_final.lisp")
(serve #'handler)

Access via browser: http://127.0.0.1:2020/eliza

About

A from-scratch HTTP server and Symbolic NLP engine (ELIZA) implemented in Common Lisp. Features custom middleware for session management and stateful conversation memory.

Topics

common-lispelizafunctional-programminghttp-servermiddlewarenlpsymbolic-ai

Resources

Readme
MIT license
Activity

Stars

0 stars

Watchers

0 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.