digitalmars.D - How can D Forum load so fast?
- Anon (4/4) Mar 09 2017 The whole webpage https://forum.dlang.org/ has only 300KB in
- Stefan Koch (2/6) Mar 10 2017 By not using tons of java-script libraries.
- Era Scarecrow (7/10) Mar 10 2017 Not having it bogged down certainly makes a huge difference. I
- CasparKielwein (6/17) Mar 10 2017 The Forum is actually written in D. As far as I know the author
- Era Scarecrow (3/8) Mar 10 2017 I was actually referring in general for the majority of the web,
- Chris (9/16) Mar 10 2017 I use vibe.d and very little JS (mainly my own) for new projects.
- Ola Fosheim =?UTF-8?B?R3LDuHN0YWQ=?= (3/7) Mar 10 2017 Depends on your location, it loads in 253ms for me, which is
- Shachar Shemesh (3/7) Mar 10 2017 Maybe, but the NNTP interface routinely has "connection refused" problem...
- Walter Bright (3/6) Mar 10 2017 It doesn't have popup ads, autorun videos, trackers, large jpegs, Web 2....
- Vasudev Ram (10/14) Mar 10 2017 I think (not verified scientifically) that it is due to the forum
- Vasudev Ram (5/13) Mar 10 2017 Just remembered - the "About this forum" link at the bottom of D
- bachmeier (6/10) Mar 10 2017 This is how Vladimir answered before:
The whole webpage https://forum.dlang.org/ has only 300KB in size. It not only supports mobile devices, but also loads much faster than general modern web pages. How can they achieve such result?
Mar 09 2017
On Friday, 10 March 2017 at 07:51:30 UTC, Anon wrote:The whole webpage https://forum.dlang.org/ has only 300KB in size. It not only supports mobile devices, but also loads much faster than general modern web pages. How can they achieve such result?By not using tons of java-script libraries.
Mar 10 2017
On Friday, 10 March 2017 at 08:05:27 UTC, Stefan Koch wrote:On Friday, 10 March 2017 at 07:51:30 UTC, Anon wrote:Not having it bogged down certainly makes a huge difference. I can't stand that websites want to be 2Mb per page to view it, and then have a bunch of JS in the background to do very little beneficial work. I'd rather we backtrack to more basic Apache/PHP/MySQL and minimal JS without cross scripting or the like.How can they achieve such result?By not using tons of java-script libraries.
Mar 10 2017
On Friday, 10 March 2017 at 09:00:15 UTC, Era Scarecrow wrote:On Friday, 10 March 2017 at 08:05:27 UTC, Stefan Koch wrote:The Forum is actually written in D. As far as I know the author is Vladimir Panteleev. I could only find an old post on Hackernews about it, where someone noted its performance. ( https://news.ycombinator.com/item?id=3592769 )On Friday, 10 March 2017 at 07:51:30 UTC, Anon wrote:Not having it bogged down certainly makes a huge difference. I can't stand that websites want to be 2Mb per page to view it, and then have a bunch of JS in the background to do very little beneficial work. I'd rather we backtrack to more basic Apache/PHP/MySQL and minimal JS without cross scripting or the like.How can they achieve such result?By not using tons of java-script libraries.
Mar 10 2017
On Friday, 10 March 2017 at 09:08:16 UTC, CasparKielwein wrote:On Friday, 10 March 2017 at 09:00:15 UTC, Era Scarecrow wrote:I was actually referring in general for the majority of the web, not for the D Forums.I'd rather we backtrack to more basic Apache/PHP/MySQL and minimal JS without cross scripting or the like.The Forum is actually written in D. As far as I know the author is Vladimir Panteleev.
Mar 10 2017
On Friday, 10 March 2017 at 08:05:27 UTC, Stefan Koch wrote:On Friday, 10 March 2017 at 07:51:30 UTC, Anon wrote:I use vibe.d and very little JS (mainly my own) for new projects. If I do something with vibe.d instead of JS it's infinitely more elegant and efficient. But you cannot do without JS. Sometimes it's handy, sometimes it's easier to change things on the fly, you can include things with a simple reference to a script etc. But heavy reliance on JS is a recipe for disaster. Not only does your code become unmaintainable, you always have issues with different browsers (mobile vs. desktop etc.)The whole webpage https://forum.dlang.org/ has only 300KB in size. It not only supports mobile devices, but also loads much faster than general modern web pages. How can they achieve such result?By not using tons of java-script libraries.
Mar 10 2017
On Friday, 10 March 2017 at 07:51:30 UTC, Anon wrote:The whole webpage https://forum.dlang.org/ has only 300KB in size. It not only supports mobile devices, but also loads much faster than general modern web pages. How can they achieve such result?Depends on your location, it loads in 253ms for me, which is typical for a page without graphics.
Mar 10 2017
On 10/03/17 09:51, Anon wrote:The whole webpage https://forum.dlang.org/ has only 300KB in size. It not only supports mobile devices, but also loads much faster than general modern web pages. How can they achieve such result?Maybe, but the NNTP interface routinely has "connection refused" problems. Shachar
Mar 10 2017
On 3/9/2017 11:51 PM, Anon wrote:The whole webpage https://forum.dlang.org/ has only 300KB in size. It not only supports mobile devices, but also loads much faster than general modern web pages. How can they achieve such result?It doesn't have popup ads, autorun videos, trackers, large jpegs, Web 2.0 crap, spyware, or a web design team that has to justify their $$$$$ bill.
Mar 10 2017
On Friday, 10 March 2017 at 07:51:30 UTC, Anon wrote:The whole webpage https://forum.dlang.org/ has only 300KB in size. It not only supports mobile devices, but also loads much faster than general modern web pages. How can they achieve such result?I think (not verified scientifically) that it is due to the forum software (DFeed) being written in D and hence compiled, vs. a lot of other forum software that may be written in interpreted languages. I too have noticed its speed. Plus of course, all the points that others have said about a lot of extra stuff on other sites, like 2 MB pages, JS, video, ads, trackers, etc. I also read somewhere that DFeed is open source, so anyone who wants to study it, can do so. If I ever setup a forum, I'll try using DFeed for it.
Mar 10 2017
On Friday, 10 March 2017 at 13:57:06 UTC, Vasudev Ram wrote:On Friday, 10 March 2017 at 07:51:30 UTC, Anon wrote:Just remembered - the "About this forum" link at the bottom of D forum pages (like this one) is where I read what I said in my previous post. https://forum.dlang.org/help#aboutThe whole webpage https://forum.dlang.org/ has only 300KB in size. It not only supports mobile devices, but also loads much faster than general modern web pages. How can they achieve such result?I think (not verified scientifically) that it is due to the forum software (DFeed) being written in D and hence compiled,
Mar 10 2017
On Friday, 10 March 2017 at 07:51:30 UTC, Anon wrote:The whole webpage https://forum.dlang.org/ has only 300KB in size. It not only supports mobile devices, but also loads much faster than general modern web pages. How can they achieve such result?This is how Vladimir answered before: "No rocket science here, just general optimization common sense. Look at what CPU and web profilers (e.g. Google PageSpeed) say and optimize accordingly, rinse and repeat." http://forum.dlang.org/post/mgehxkddgybngulpmmqh forum.dlang.org
Mar 10 2017