www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 12210] New: dlang.org home page example - Run button does not work

reply d-bugmail puremagic.com writes:
https://d.puremagic.com/issues/show_bug.cgi?id=12210

           Summary: dlang.org home page example - Run button does not work
           Product: D
           Version: D2
          Platform: All
               URL: http://dlang.org
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: websites
        AssignedTo: nobody puremagic.com
        ReportedBy: gassa mail.ru


--- Comment #0 from Ivan Kazmenko <gassa mail.ru> 2014-02-19 21:36:08 PST ---
The example on the main page (http://dlang.org) has several buttons below. 
When I hit "Run", it gives "Compilation result: 9 (killed)" after a few
seconds.  Editing shows that the compilation works only if there are no
imports.  Still, the given example, and virtually every other useful one, needs
std.stdio to show something.

-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Feb 19 2014
parent d-bugmail puremagic.com writes:
https://d.puremagic.com/issues/show_bug.cgi?id=12210



--- Comment #2 from Ivan Kazmenko <gassa mail.ru> 2014-02-20 01:28:46 PST ---
Correction: it still does not work 100%.

New hypothesis: the compilation often times out for harder cases.

I've managed to run an empty program 10/10 times successfully:
-----
void main () {}
-----

But only 4/10 times for this example:
-----
import std.algorithm, std.bigint, std.range, std.stdio;
void main () {BigInt (123).repeat (321).reduce !((a, b) => a * b).writeln;}
-----

Obviously, it depends on the server load (and thus time of day) as well.

Still, having an unresponsive example snippet on the main page is, well, bad.

-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Feb 20 2014