90s – an async C++23 web server with templating engine
90s – an async C++23 web server with templating engine
Hi HN, I'd like to share with you a proof of concept of a project I've been recently working on in C++. C++ got support for coroutines this year, so I played with that idea that it might fun try it out and build a C++ layer on top of my previous C based project (which currently has a fully working Lua layer for reaching the same objectives). As for templating, the basic idea is to kinda resemble PHP, that is two core parts: live reloading can be achieved by hot swapping .so/.dll files (similar to hot-swapping .php files), <? ... ?> alike syntax for embedding the code. All embedded code can also leverage the co_await syntax, therefore making the webpages implemented this way simple and easily scalable. It's still a proof of concept, so the current state might not be final, but it's not expected to change way too drastically besides adding support for MySQL etc in near future.
Share cardActual performance
Launch Intel predictions
Analyze your own launch →Correct prediction on native model
Similar products
Pushing a naive C++ web server implementation to 9k req/SEC
Servasm – Literate web server in x86 assembler
Jael, a Powerful Server-Side Templating Engine for Dart
C on the Web with This C to WASM Build Server and CDN
bashttp - a very (very) simple web server in Bash
C# WebServer - Simple abstracted web server
A Simple Web Server in Lisp (Gisp) in Go
Qpackt – web server that can serve two versions of your website
Grace - graceful server restarting (not just web)
Easy-to-configure Web Server in Go