←back to thread

127 points warothia | 1 comments | | HN request time: 0.206s | source
Show context
gwbas1c ◴[] No.42166517[source]
Important question: Why would anyone develop a web application in C? Typically web applications lean heavily on garbage collection and memory safety, because their bottlenecks are very rarely CPU/memory issues. The ROI on manually managing memory just isn't there for a typical web application.
replies(10): >>42166611 #>>42166628 #>>42166883 #>>42167123 #>>42167520 #>>42167739 #>>42167933 #>>42168255 #>>42169645 #>>42173754 #
SvenL ◴[] No.42166628[source]
On the other hand memory management in web applications is quite easy. Most of the stuff is only required for the lifetime of a request. Some stuff needs to be available the whole application life time.
replies(1): >>42168057 #
smt88 ◴[] No.42168057[source]
You can do this with other languages (C# for example) as well. Memory is so cheap, though, that most companies should spend their money on increasing memory rather than on paying programmers to optimize memory usage.
replies(3): >>42168124 #>>42168203 #>>42168940 #
HexDecOctBin ◴[] No.42168124[source]
Cheap for whom? American programmers with FAANG salaries, or an under-funded third world NGO?
replies(1): >>42171416 #
1. kaba0 ◴[] No.42171416[source]
Both. My phone could easily serve thousands of concurrent users.