5 ms·
The cool thing about D's forums/feed is how amazingly fast they are. I wish more web apps were designed like this, with a fast backend framework. Instead, it'
by jnbiche 11y ago
The cool thing about D's forums/feed is how amazingly fast they are. I wish more web apps were designed like this, with a fast backend framework.
Instead, it's all either slow, slow backend frameworks like Ruby, or even worse, these SPA applications that require extensive client-side JS processing before they show you the goods.
Node is a step in the right direction for both problems: for the first, Node-based backend applications are faster than Ruby and Python, and for the client-side rendering problem, because Node can pre-render these SPA apps (which everyone should do for a serious production app that uses a framework/library like AngularJS or React for major client-side rendering).
But a server application based on D or Rust, or even Go, is an even better solution to the slow backend framework issue. Unfortunately, no one has yet created a full-service framework like Rails or Django for any of those languages.
- GrinningFool 11y ago> Instead, it's all either slow, slow backend frameworks like Ruby, or even Usually this is a matter of bad coding or overprovisioning of whatever is being used to host the site and the DB. Most maintained languages running on modern hardware can sustain reasonable loads without any significant performance issues. While client-side bad-performing frameworks abound, the last I looked into it, Ruby+Rails isn't that much worse or better than any other.
- merb 11y agoIt depends heavily on what you are doing. Most CPU intensive Tasks are fast on everything. However on Memory intensive Applications Ruby and Python are really really aweful slow.
- vortico 11y agoI don't know what you mean by fast, but https://www.ruby-forum.com/ https://www.ruby-forum.com/ seems to load pages faster than most websites, and as fast as D's forums.
- shanemhansen 11y agoAccording to a quick check the forum.dlang.org initial page view takes 200ms. ruby-forum takes 738ms. If you want to talk RUM/page load metrics forum.dlang.org takes 800ms for the load event to fire, the ruby forum takes 1.6s.
- osxrand 11y agoThe individual posts load really quickly, but the main page doesn't (well not as fast as the other one mentioned). Either way, both are fast and I wish more websites were like this, not just forums!
- scient 11y agoI don't think you know what you are talking about sadly.
- jnbiche 11y agoDo tell, please.
- 83457 11y agomost slowness you are talking about is usually database and/or caching related
- 83457 11y agowith that said, that forum is certainly blazing fast for page views
- pmilot 11y agoThe language used for a server backend is far from a guarantee of efficiency and performance. It's very easy to write a D or Rust backend that doesn't optimize queries and handles caching badly; you'll get just as terrible response times from those as you would on the "typical" slow websites that you refer to.
- z3t4 11y agoTo be fair, the content of that forum could probably fit inside the RAM. And it's not doing anything fancy like sorting, etc.