5 ms·
Building a web backend with C++ is a very dangerous and complex ordeal, you're extremely likely to expose memory based vulnerabilities to the entire world.
by ric2b 3y ago
Building a web backend with C++ is a very dangerous and complex ordeal, you're extremely likely to expose memory based vulnerabilities to the entire world.
- pdimitar 3y agoI agree but people are doing it anyway. So technically Ruby on Rails and C++ are competitors in the web backend space.
- Alifatisk 3y agoRoR and whatever C++ based web backend there is count as a valid comparison in my book. But comparing the languages itself is maybe a bit off. On a side note, you can actually compare their performance here if you’re really curious. But take it with a grain of salt since these are synthetic benchmarks. https://www.techempower.com/benchmarks https://www.techempower.com/benchmarks
- hello_moto 3y agoWho builds web backend in C++?
- jupp0r 3y agoGoogle, Facebook, Amazon and Twitter beg to differ (not completely C++, but for services where it makes sense). Also nginx, passenger and other parts of your Ruby app.
- hello_moto 3y agoshrug the companies you mentioned do not use C++ for web-app. Amazon is a huge Java shop. Twitter used to be huge Rails app with Java/Scala services. NGINX and Passenger are infrastructure pieces just like Memcached so I think you need to understand the context here...
- jupp0r 3y agoShrug, you have no idea what you are talking about [1]. Also nginx and passenger are webservers and claiming they are not part of your web app is a pretty wild claim when they literally send http responses to browsers (unlike memcached). [1] https://en.m.wikipedia.org/wiki/Programming_languages_used_in_most_popular_websites https://en.m.wikipedia.org/wiki/Programming_languages_used_i...
- hello_moto 3y agoI think you're the one who got confused with the context here. We're talking about web-app, not microservices. We're talking about CRUD with DB migration, sessions, caching, etc. I recalled Google's dl.google.com was implemented in C++ and Brad F rewrote it with Golang. We're not talking about microservice that serves file here. We're talking about the main web application that serves wikipedia, youtube original version (they might had revamped it sometime post acquisition with web gateway and bajillion microservices), Google Search (was Java servlet), Facebook original web-app (was PHP, became HVVM/H4CK. So yes, I _know_ what I'm talking about in terms of the context of a web-application here. Do you?
- pdimitar 3y agoYes, but I haven't argued that. Let's not shift goal posts.