←back to thread

127 points warothia | 2 comments | | HN request time: 0s | 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 #
warothia ◴[] No.42166611[source]
I could say speed, but the main reason for me is because it is fun. And I like to see what I can make C do. :D
replies(2): >>42170880 #>>42171335 #
1. mst ◴[] No.42170880[source]
"Because I can" remains an entirely legitimate reason for a hobby project.

If anything, you've gone further along the "also (at least sort of) practical" scale than I expected.

Given as mentioned elsewhere a per-request arena + bump allocator system, it might actually be -genuinely- practical (to the extent that writing application logic in C is at all ;)

Bravo.

replies(1): >>42170903 #
2. warothia ◴[] No.42170903[source]
Thanks! Yes, an arena allocator for each request is on my todo list. Just didn’t get to implementing it yet. :D