Live data from Hacker News

Web Applications Should Be Compiled

ediblepet.net

41–50 of 177 posts

Re: Web Applications Should Be Compiled

#41
post #4

Ranting aside, this seems like a valid complaint. Scaling and performance seem to be reasonably important in web applications, so why not write them in C? If the only complaint is the lack of good tools, why not build those tools? Disclaimer: I don't actually work on web apps, and therefore have no experience with these things.

The usual performance bottleneck in a website is the database, which is usually written in either C or C++ anyway. Other parts of a web application are less likely to cause performance issues, and can usually be scaled horizontally by adding more servers.

Re: Web Applications Should Be Compiled

#43
post #22
post #4

Ranting aside, this seems like a valid complaint. Scaling and performance seem to be reasonably important in web applications, so why not write them in C? If the only complaint is the lack of good tools, why not build those tools? Disclaimer: I don't actually work on web apps, and therefore have no experience with these things.

Because most scaling problems in web apps are ultimately architectural. Yes, you may need to buy a second server sooner rather than later if you run Ruby instead of finely tuned C or C++, but for most apps you're going to need to worry about a second database server and replication before that, and long before reaching either you will have enough traffic that you'll need to prepare to handle front-end scaling properl…

> As for developer availability - good luck to him finding good C programmers

Are you saying it's difficult in general to find good C devs? Because it would seem that's the case for C++, but not for C.

Re: Web Applications Should Be Compiled

#44
"I predict in the future all the good web engineers will be moving to compiled languages, and all the academic idiots programming social networking applications, ajax widget home pages, and projects to better improve our democracy will be staying behind coding in the latest and greatest slow language, going to circle jerk conferences to hear some scumbag just oozing hubris from every pore tell them to get in shape and learn to fly a kite."

+1 for "academic idiots"

+1 for "improve our democracy"

+1 for "circle jerk conferences"

+2 for "scumbag just oozing hubris"

I just hope his c isn't as poetic as his prose.

Re: Web Applications Should Be Compiled

#49
Sweet merciful lord. Is this guy channelling Zed Shaw or what?

Apart from all the hand-waving and generalizations, this guy doesn't sound like he's ever really a webapp under serious load.

I'm not a Ruby guy, so I don't know how things fly with that, but I've never once had a problem with a webapp being slow because of the language it was written in. Bad database queries, unnecessary assets being loaded, definitely. But CPU-bound limitations caused purely because of the cost of interpretation of a scripting language? Not so much...

Re: Web Applications Should Be Compiled

#50
I don't see how it's possible to make a good framework in C. It lacks the necessary abstractions. It lacks even basic vital things like namespaces. Why on earth would someone attempt this in C rather than C++?

You could come pretty close to simply rewriting a scripting framework in C++. I don't know what you can get done in C. It will be so dependent on programmer conventions it will be hideous.

People actually have made some damn good C++ frameworks. See asio. What are the C ones? Any complex C system devolves into a mess of macros, casts, and naming conventions.

Post reply on HN