digitalmars.D.announce - static foreach is now in github master
- Andrei Alexandrescu (5/5) Jul 17 2017 For those who want to play with our new static foreach feature and are
- John Colvin (3/9) Jul 17 2017 or for those using homebrew: `brew install dmd --HEAD`
- Martin Nowak (5/9) Jul 17 2017 Or just wait for the next nightly until tomorrow around 5AM UTC.
- Seb (3/12) Jul 18 2017 And thanks to dmd-nightly, also on run.dlang.io:
- Vladimir Panteleev (2/4) Jul 18 2017 This link doesn't work, looks like it cuts off at the first ; ...
- Seb (7/13) Jul 18 2017 Oh - seems like that was due to a different behavior between FF
- Jack Stouffer (3/12) Jul 20 2017 for me. Shouldn't it just be printing once?
- Steven Schveighoffer (6/21) Jul 20 2017 I think it's because it's using rdmd, and that runs dmd once to generate...
- Seb (7/19) Jul 20 2017 I bet you are using `rdmd`?
- Steven Schveighoffer (4/28) Jul 20 2017 I'm just clicking on the run button on the web page you linked to. How
- Seb (9/38) Jul 20 2017 Oh because I thought run.dlang.io wasn't using `rdmd`.
- Steven Schveighoffer (5/12) Jul 22 2017 Now:
- Seb (4/18) Jul 22 2017 Hmm, seems to be a temporary error. It works fine for me. Are you
- Steven Schveighoffer (4/22) Jul 22 2017 Just tried again, now working (and displaying only one list of numbers)
- Martin Tschierschke (2/21) Jul 18 2017 Cool! Thank you!
- Jacob Carlborg (5/10) Jul 17 2017 That was quick, and awesome :) Great work to Timon and everyone else
- Daniel N (3/12) Jul 17 2017 wow! Now, just how am I supposed to be able to work today (using
- Basile B. (4/10) Jul 24 2017 I cant find the matching dlang.org pull request. The one that
- Laeeth Isharc (12/18) Jul 26 2017 Maybe good subject for an AMA (though not many upvoted so far).
For those who want to play with our new static foreach feature and are willing to take the steps to building their own dmd, the feature is now merged in master: https://github.com/dlang/dmd/pull/6760 Happy hacking! Andrei
Jul 17 2017
On Monday, 17 July 2017 at 18:14:35 UTC, Andrei Alexandrescu wrote:For those who want to play with our new static foreach feature and are willing to take the steps to building their own dmd, the feature is now merged in master: https://github.com/dlang/dmd/pull/6760 Happy hacking! Andreior for those using homebrew: `brew install dmd --HEAD`
Jul 17 2017
On Monday, 17 July 2017 at 18:14:35 UTC, Andrei Alexandrescu wrote:For those who want to play with our new static foreach feature and are willing to take the steps to building their own dmd,Or just wait for the next nightly until tomorrow around 5AM UTC. curl -fsS https://dlang.org/install.sh | bash -s dmd-nightlythe feature is now merged in master: https://github.com/dlang/dmd/pull/6760Great news.
Jul 17 2017
On Monday, 17 July 2017 at 21:27:40 UTC, Martin Nowak wrote:On Monday, 17 July 2017 at 18:14:35 UTC, Andrei Alexandrescu wrote:And thanks to dmd-nightly, also on run.dlang.io: https://run.dlang.io/?compiler=dmd-nightly&source=void%20main(string%5B%5D%20args)%0A%7B%0A%20%20%20%20static%20foreach%20(i;%20%5B0,1,2,3%5D)%0A%09%7B%0A%20%20%20%20%09pragma(msg,%20i);%0A%09%7D%0A%7DFor those who want to play with our new static foreach feature and are willing to take the steps to building their own dmd,Or just wait for the next nightly until tomorrow around 5AM UTC. curl -fsS https://dlang.org/install.sh | bash -s dmd-nightlythe feature is now merged in master: https://github.com/dlang/dmd/pull/6760Great news.
Jul 18 2017
On Tuesday, 18 July 2017 at 10:02:10 UTC, Seb wrote:And thanks to dmd-nightly, also on run.dlang.io: https://run.dlang.io/?compiler=dmd-nightly&source=void%20main(string%5B%5D%20args)%0A%7B%0A%20%20%20%20static%20foreach%20(i;%20%5B0,1,2,3%5D)%0A%09%7B%0A%20%20%20%20%09pragma(msg,%20i);%0A%09%7D%0A%7DThis link doesn't work, looks like it cuts off at the first ; ...
Jul 18 2017
On Tuesday, 18 July 2017 at 10:06:33 UTC, Vladimir Panteleev wrote:On Tuesday, 18 July 2017 at 10:02:10 UTC, Seb wrote:Oh - seems like that was due to a different behavior between FF and Chrome :/ (Chrome unescapes the semi-colon by default). This has been fixed now, so the link above or this shortlink should work: https://is.gd/1TCQOhAnd thanks to dmd-nightly, also on run.dlang.io: https://run.dlang.io/?compiler=dmd-nightly&source=void%20main(string%5B%5D%20args)%0A%7B%0A%20%20%20%20static%20foreach%20(i;%20%5B0,1,2,3%5D)%0A%09%7B%0A%20%20%20%20%09pragma(msg,%20i);%0A%09%7D%0A%7DThis link doesn't work, looks like it cuts off at the first ; ...
Jul 18 2017
On Tuesday, 18 July 2017 at 15:46:04 UTC, Seb wrote:https://is.gd/1TCQOhHmmm, that code is printing0 1 2 3 0 1 2 3for me. Shouldn't it just be printing once?
Jul 20 2017
On 7/20/17 3:53 PM, Jack Stouffer wrote:On Tuesday, 18 July 2017 at 15:46:04 UTC, Seb wrote:I think it's because it's using rdmd, and that runs dmd once to generate dependencies, and one more time to compile. It's not specific to static foreach or the new compiler: https://is.gd/g6WPyv -Stevehttps://is.gd/1TCQOhHmmm, that code is printing0 1 2 3 0 1 2 3for me. Shouldn't it just be printing once?
Jul 20 2017
On Thursday, 20 July 2017 at 19:53:46 UTC, Jack Stouffer wrote:On Tuesday, 18 July 2017 at 15:46:04 UTC, Seb wrote:I bet you are using `rdmd`? It runs dmd twice on your main file ;-) See also: https://issues.dlang.org/process_bug.cgi https://github.com/dlang/tools/pull/191 https://github.com/dlang/tools/pull/194 (sadly this was reverted)https://is.gd/1TCQOhHmmm, that code is printing0 1 2 3 0 1 2 3for me. Shouldn't it just be printing once?
Jul 20 2017
On 7/20/17 4:08 PM, Seb wrote:On Thursday, 20 July 2017 at 19:53:46 UTC, Jack Stouffer wrote:I'm just clicking on the run button on the web page you linked to. How do I not run rdmd there? -SteveOn Tuesday, 18 July 2017 at 15:46:04 UTC, Seb wrote:I bet you are using `rdmd`? It runs dmd twice on your main file ;-) See also: https://issues.dlang.org/process_bug.cgi https://github.com/dlang/tools/pull/191 https://github.com/dlang/tools/pull/194 (sadly this was reverted)https://is.gd/1TCQOhHmmm, that code is printing0 1 2 3 0 1 2 3for me. Shouldn't it just be printing once?
Jul 20 2017
On Thursday, 20 July 2017 at 20:33:47 UTC, Steven Schveighoffer wrote:On 7/20/17 4:08 PM, Seb wrote:Oh because I thought run.dlang.io wasn't using `rdmd`. However, there was a minor glitch today when I added support for flags and stdin to the docker images [2]. The good news is that it has been fixed [2] & everything should behave as usual. Sorry for the inconvenience and continued happy hacking! [1] https://github.com/dlang-tour/core-exec/pull/2 [2] https://github.com/dlang-tour/core-exec/pull/4On Thursday, 20 July 2017 at 19:53:46 UTC, Jack Stouffer wrote:I'm just clicking on the run button on the web page you linked to. How do I not run rdmd there? -SteveOn Tuesday, 18 July 2017 at 15:46:04 UTC, Seb wrote:I bet you are using `rdmd`? It runs dmd twice on your main file ;-) See also: https://issues.dlang.org/process_bug.cgi https://github.com/dlang/tools/pull/191 https://github.com/dlang/tools/pull/194 (sadly this was reverted)https://is.gd/1TCQOhHmmm, that code is printing0 1 2 3 0 1 2 3for me. Shouldn't it just be printing once?
Jul 20 2017
On Thursday, 20 July 2017 at 21:02:20 UTC, Seb wrote:Oh because I thought run.dlang.io wasn't using `rdmd`. However, there was a minor glitch today when I added support for flags and stdin to the docker images [2]. The good news is that it has been fixed [2] & everything should behave as usual. Sorry for the inconvenience and continued happy hacking! [1] https://github.com/dlang-tour/core-exec/pull/2 [2] https://github.com/dlang-tour/core-exec/pull/4Now: Compilation or running program took longer than 25 seconds. Aborted! -Steve
Jul 22 2017
On Saturday, 22 July 2017 at 21:13:47 UTC, Steven Schveighoffer wrote:On Thursday, 20 July 2017 at 21:02:20 UTC, Seb wrote:Hmm, seems to be a temporary error. It works fine for me. Are you still experiencing this?Oh because I thought run.dlang.io wasn't using `rdmd`. However, there was a minor glitch today when I added support for flags and stdin to the docker images [2]. The good news is that it has been fixed [2] & everything should behave as usual. Sorry for the inconvenience and continued happy hacking! [1] https://github.com/dlang-tour/core-exec/pull/2 [2] https://github.com/dlang-tour/core-exec/pull/4Now: Compilation or running program took longer than 25 seconds. Aborted! -Steve
Jul 22 2017
On 7/22/17 5:26 PM, Seb wrote:On Saturday, 22 July 2017 at 21:13:47 UTC, Steven Schveighoffer wrote:Just tried again, now working (and displaying only one list of numbers) thanks. -SteveOn Thursday, 20 July 2017 at 21:02:20 UTC, Seb wrote:Hmm, seems to be a temporary error. It works fine for me. Are you still experiencing this?Oh because I thought run.dlang.io wasn't using `rdmd`. However, there was a minor glitch today when I added support for flags and stdin to the docker images [2]. The good news is that it has been fixed [2] & everything should behave as usual. Sorry for the inconvenience and continued happy hacking! [1] https://github.com/dlang-tour/core-exec/pull/2 [2] https://github.com/dlang-tour/core-exec/pull/4Now: Compilation or running program took longer than 25 seconds. Aborted!
Jul 22 2017
On Tuesday, 18 July 2017 at 10:02:10 UTC, Seb wrote:On Monday, 17 July 2017 at 21:27:40 UTC, Martin Nowak wrote:Cool! Thank you!On Monday, 17 July 2017 at 18:14:35 UTC, Andrei Alexandrescu wrote:And thanks to dmd-nightly, also on run.dlang.io: https://run.dlang.io/?compiler=dmd-nightly&source=void%20main(string%5B%5D%20args)%0A%7B%0A%20%20%20%20static%20foreach%20(i;%20%5B0,1,2,3%5D)%0A%09%7B%0A%20%20%20%20%09pragma(msg,%20i);%0A%09%7D%0A%7DFor those who want to play with our new static foreach feature and are willing to take the steps to building their own dmd,Or just wait for the next nightly until tomorrow around 5AM UTC. curl -fsS https://dlang.org/install.sh | bash -s dmd-nightlythe feature is now merged in master: https://github.com/dlang/dmd/pull/6760Great news.
Jul 18 2017
On 2017-07-17 20:14, Andrei Alexandrescu wrote:For those who want to play with our new static foreach feature and are willing to take the steps to building their own dmd, the feature is now merged in master: https://github.com/dlang/dmd/pull/6760 Happy hacking!That was quick, and awesome :) Great work to Timon and everyone else involved. -- /Jacob Carlborg
Jul 17 2017
On Tuesday, 18 July 2017 at 06:48:29 UTC, Jacob Carlborg wrote:On 2017-07-17 20:14, Andrei Alexandrescu wrote:wow! Now, just how am I supposed to be able to work today (using C) and not play with this pure awesomeness?!For those who want to play with our new static foreach feature and are willing to take the steps to building their own dmd, the feature is now merged in master: https://github.com/dlang/dmd/pull/6760 Happy hacking!That was quick, and awesome :) Great work to Timon and everyone else involved.
Jul 17 2017
On Monday, 17 July 2017 at 18:14:35 UTC, Andrei Alexandrescu wrote:For those who want to play with our new static foreach feature and are willing to take the steps to building their own dmd, the feature is now merged in master: https://github.com/dlang/dmd/pull/6760 Happy hacking! AndreiI cant find the matching dlang.org pull request. The one that specifies the changes applied to the grammar.
Jul 24 2017
On Monday, 17 July 2017 at 18:14:35 UTC, Andrei Alexandrescu wrote:For those who want to play with our new static foreach feature and are willing to take the steps to building their own dmd, the feature is now merged in master: https://github.com/dlang/dmd/pull/6760 Happy hacking! AndreiMaybe good subject for an AMA (though not many upvoted so far). It's pretty cool that it was added on an afternoon during the hackathon. https://www.reddit.com/r/programming/comments/6pn257/static_foreach_added_to_d_compiler_nightly/ Could someone post to Hacker News - I don't have enough rep there for stories to propagate. Can always post another story later on explaining the practical benefits of static foreach (good topic for a D blog post) - marketing is about repetition.
Jul 26 2017