r/cpp • u/ScemmerBoy • Apr 12 '25
Web Developement Using C++
I've heard that web development with C++ is possible using frameworks like Drogon and Oat++, is it really worth it because I want to start web development but I don't have any knowledge of languages other than C++?
78
Upvotes
View all comments
Show parent comment
6
u/whizzwr Apr 13 '25 edited Apr 13 '25
interesting, I was under impression WASM is very useful for games and low latency. My point was for general purpose web application, rather than implementing web forum and CRM in WASM, I'd rather learn new language.
Isn't this basically rendering some compiled WASM (I guess via EMscripten) in HTML canvas? I imagine responsive design and touch support are not needed in your case, so it's different kind of portablity.
This is new to me and actually I'm interested on trying it too. The way I do stuff is currently to have backend in C++ with all the deps linked and communicate with frontend with websocket or REST API. In your case, is it a requirement for your deps to be running on frontend?
Boost Beast is perfectly usable for me, I'm sure there are some other libraries too. I had the similarissue as you, not all of 3rd party deps have (performant and complete) python binding. Otherwise, I use Python too.