News for hackers. Stuff that matters.
Re:Ask HN: Why and how is Hacker News so fast? by Trioxin on Sunday August 02, 2015 @01:12PM (#9991414)
To some of you who are testing with your browser: Observing load times in your browser is fine for just fun but latency is irrelevant when evaluating the speed we're talking about here. A loading time benchmark of server-side code should naturally be calculated server-side, a server-side measurement of how long it took to execute the backend code. Nobody can accurately benchmark D over the net using their browser. If D is also being used to code the web server, then a browser should be used to benchmark the code but not across the net unless you can somehow subtract your latency. If not, it should be done locally or over a LAN where latency is extremely consistent but probably locally. I always benchmark my sites in this way.

As for D being quite fast, the consensus is that yes, it is. From what I gather, you'd be hard-pressed to beat or match it using any other language not counting perhaps assembly. It also seems to have a relatively low memory footprint comparable to that of C and C++.

IMO, more people need to be using D. It seems to outperform every other language in every speed benchmark I've seen, is packed with modern features, and doesn't have a steep learning curve. I'm not someone who has a bias toward D either. I've only recently become interested in it and I come from a background of C, C++, and C# (As well as many scripting languages).

Try D, I am.

Re:Ask HN: Why and how is Hacker News so fast? by srean on Sunday August 02, 2015 @01:44PM (#9991523)
> It seems to outperform every other language in every speed benchmark I've seen

> It seems to outperform every other language in every speed benchmark I've seen

I like D. A lot. But please don't do this. It a) does not help D's popularity (if that is what you are trying to do , b) it makes you look like a troll or makes you look stupid (sorry)

Re:Ask HN: Why and how is Hacker News so fast? by Trioxin on Monday August 03, 2015 @03:23AM (#9994249)
I said that because when I lookup the benchmarks, that's what I see. I'm sure if I setup similar benchmarks of my own I'd probably get the same results (Unless the people who posted those that I've seen are lying and for some reason I doubt that).

You should think before calling someone a troll or saying that they sound stupid when they're citing information from an outside source. If I didn't think Dlang had a performance benefit I'd have a bit less incentive to use it. Are you saying such benchmarks are false? They seem legitimate to me. Search and view them yourself. If I were a troll I'd do something like you did, citing no evidence. Commenting in such a way without citing data makes YOU sound stupid (Sorry).

Re:Ask HN: Why and how is Hacker News so fast? by Trioxin on Monday August 03, 2015 @10:46AM (#9996218)
Re:Ask HN: Why and how is Hacker News so fast? by Trioxin on Monday August 03, 2015 @05:19AM (#9994623)
To be fair, I'll run my own benchmarks at some point. For now, I have to rely on what's out there.