www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - RosettaCode-D

reply Andrew Edwards <edwards.ac gmail.com> writes:
In efforts to actively maintain the D code on RosettaCode and provide 
additional code for beta testing, I've thrown together 
https://github.com/AndrewEdwards/RosettaCode-D. All of the code was 
copied form https://github.com/acmeism/RosettaCodeData but as one may 
guess it does not all compile with the current stable DMD compiler 
(2.070.0).

I am asking the community's assistance to improve the quality of this 
repo and prepare for use in nightly testing of the D compiler.

Andrew
Feb 26 2016
next sibling parent reply cym13 <cpicard openmailbox.org> writes:
On Saturday, 27 February 2016 at 02:48:16 UTC, Andrew Edwards 
wrote:
 In efforts to actively maintain the D code on RosettaCode and 
 provide additional code for beta testing, I've thrown together 
 https://github.com/AndrewEdwards/RosettaCode-D. All of the code 
 was copied form https://github.com/acmeism/RosettaCodeData but 
 as one may guess it does not all compile with the current 
 stable DMD compiler (2.070.0).

 I am asking the community's assistance to improve the quality 
 of this repo and prepare for use in nightly testing of the D 
 compiler.

 Andrew
I think the first thing to do would be to get automated testing of those programs, maybe based on the C versions (download, compile, compare outputs?) as the language never gets old.
Feb 26 2016
parent cym13 <cpicard openmailbox.org> writes:
On Saturday, 27 February 2016 at 02:54:00 UTC, cym13 wrote:
 On Saturday, 27 February 2016 at 02:48:16 UTC, Andrew Edwards 
 wrote:
 In efforts to actively maintain the D code on RosettaCode and 
 provide additional code for beta testing, I've thrown together 
 https://github.com/AndrewEdwards/RosettaCode-D. All of the 
 code was copied form 
 https://github.com/acmeism/RosettaCodeData but as one may 
 guess it does not all compile with the current stable DMD 
 compiler (2.070.0).

 I am asking the community's assistance to improve the quality 
 of this repo and prepare for use in nightly testing of the D 
 compiler.

 Andrew
I think the first thing to do would be to get automated testing of those programs, maybe based on the C versions (download, compile, compare outputs?) as the language never gets old.
Sorry, just noticed that it's exactly what you're asking for in the first place. I'm going to catch some sleep.
Feb 26 2016
prev sibling parent reply BBasile <b2.temp gmx.com> writes:
On Saturday, 27 February 2016 at 02:48:16 UTC, Andrew Edwards 
wrote:
 In efforts to actively maintain the D code on RosettaCode and 
 provide additional code for beta testing, I've thrown together 
 https://github.com/AndrewEdwards/RosettaCode-D. All of the code 
 was copied form https://github.com/acmeism/RosettaCodeData but 
 as one may guess it does not all compile with the current 
 stable DMD compiler (2.070.0).

 I am asking the community's assistance to improve the quality 
 of this repo and prepare for use in nightly testing of the D 
 compiler.

 Andrew
what about - travis-CI ? - a shell script or a rdmd script to test locally, currently I see nothing to build
Feb 26 2016
parent reply BBasile <b2.temp gmx.com> writes:
On Saturday, 27 February 2016 at 04:19:06 UTC, BBasile wrote:
 On Saturday, 27 February 2016 at 02:48:16 UTC, Andrew Edwards
 I am asking the community's assistance to improve the quality 
 of this repo and prepare for use in nightly testing of the D 
 compiler.

 Andrew
what about - travis-CI ? - a shell script or a rdmd script to test locally, currently I see nothing to build
I can propose a dmd script that get executed by travis-CI (example output https://travis-ci.org/BBasile/RosettaCode-D) But now I realize that you probably want to put the project as part of the D organization, right ? Anyway, lot of work to fix them all. There 's even some code that rely on Tango!
Feb 26 2016
parent Andrew Edwards <edwards.ac gmail.com> writes:
On 2/27/16 3:02 PM, BBasile wrote:
 On Saturday, 27 February 2016 at 04:19:06 UTC, BBasile wrote:
 On Saturday, 27 February 2016 at 02:48:16 UTC, Andrew Edwards
 I am asking the community's assistance to improve the quality of this
 repo and prepare for use in nightly testing of the D compiler.

 Andrew
what about - travis-CI ?
This would be ideal but Travis-CI presently only supports osx and linux. We can start off with this but eventually need a solution that touches the four major platforms (FLOW).
 - a shell script or a rdmd script to test locally, currently I see
 nothing to build
None was included because I needed to figure out how to make this into a cohesive dub project while independently specifying dependencies for each task implementation. Some of these tasks depend on implementations of other tasks (e.g., Zebra-puzzle depends on Permutations), some depend on other DUB repos (e.g. DerelictSDL2), others depend on miscellaneous code in the wild that can or cannot be located (e.g., XML-Input & kxml , Window-creation & fltk4d), while others (those used as libraries) require specific version switches.
 I can propose a dmd script that get executed by travis-CI
 (example output https://travis-ci.org/BBasile/RosettaCode-D)

 But now I realize that you probably want to put the project as part of
 the D organization, right ?
Not necessary, just needs to be actively maintained and referenced by Martin's D Project Tester.
 Anyway, lot of work to fix them all. There 's even some code that rely
 on Tango!
Yeah, this is the main reason I'm asking the community to come together to improve them. These are the kinds of code that neophytes like myself run into in the wild, become frustrated and dismiss the language as worthless or overly complicated because we cannot get them to compile.
Feb 27 2016