Re: Compile-Time Sort in D

2017-06-09 Thread Stefan Koch via Digitalmars-d-announce
On Friday, 9 June 2017 at 16:50:15 UTC, H. S. Teoh wrote: Yes, please add ctfeWriteln(). ctfeWriteln has it's own set of problems. I resurrected a PR for it a while back. And somewhere along the lines it broke again. newCTFE's debugging facilities which will come later this year, will provide

Re: Compile-Time Sort in D

2017-06-09 Thread Stefan Koch via Digitalmars-d-announce
On Friday, 9 June 2017 at 15:16:56 UTC, Steven Schveighoffer wrote: On 6/9/17 10:49 AM, Stefan Koch wrote: If I'd had to worry about an interface to runtime code I'd be a little unhappy. I kind of remember you saying at dconf2016 "If only CTFE could write to the filesystem, I could fully sup

Re: Compile-Time Sort in D

2017-06-09 Thread H. S. Teoh via Digitalmars-d-announce
On Fri, Jun 09, 2017 at 06:30:54PM +0300, ketmar via Digitalmars-d-announce wrote: > Steven Schveighoffer wrote: > > > At least in terms of i/o printing to the console or whatnot, it > > would be cool to be able to do so at compile-time just directly with > > writeln. As of now, a CTFE function c

Re: Compile-Time Sort in D

2017-06-09 Thread ketmar via Digitalmars-d-announce
Steven Schveighoffer wrote: At least in terms of i/o printing to the console or whatnot, it would be cool to be able to do so at compile-time just directly with writeln. As of now, a CTFE function can't call writeln, and it also can't pragma(msg, ...) because it has to be written as a runtime

Re: Compile-Time Sort in D

2017-06-09 Thread Steven Schveighoffer via Digitalmars-d-announce
On 6/9/17 10:49 AM, Stefan Koch wrote: On Friday, 9 June 2017 at 12:15:50 UTC, Steven Schveighoffer wrote: [it] can use the *actual* i/o routines [at compile-time] you would use at runtime is pretty impressive. Stefan would have a field day with this power :) Infact I think this would scale

Re: Compile-Time Sort in D

2017-06-09 Thread Stefan Koch via Digitalmars-d-announce
On Friday, 9 June 2017 at 12:15:50 UTC, Steven Schveighoffer wrote: [it] can use the *actual* i/o routines [at compile-time] you would use at runtime is pretty impressive. Stefan would have a field day with this power :) -Steve Infact I think this would scale pretty badly. I do not want to

Re: Compile-Time Sort in D

2017-06-09 Thread jmh530 via Digitalmars-d-announce
On Friday, 9 June 2017 at 12:15:50 UTC, Steven Schveighoffer wrote: Stefan would have a field day with this power :) I think he would certainly appreciate an improved ability to debug CTFE code.

Re: Compile-Time Sort in D

2017-06-09 Thread Adrian Matoga via Digitalmars-d-announce
On Friday, 9 June 2017 at 12:15:50 UTC, Steven Schveighoffer wrote: On 6/7/17 5:47 PM, John Carter wrote: On Monday, 5 June 2017 at 14:23:34 UTC, Mike Parker wrote: https://dlang.org/blog/2017/06/05/compile-time-sort-in-d/ Seems like you have inspired people... http://blog.zdsmith.com/posts

Re: Compile-Time Sort in D

2017-06-09 Thread Steven Schveighoffer via Digitalmars-d-announce
On 6/7/17 5:47 PM, John Carter wrote: On Monday, 5 June 2017 at 14:23:34 UTC, Mike Parker wrote: https://dlang.org/blog/2017/06/05/compile-time-sort-in-d/ Seems like you have inspired people... http://blog.zdsmith.com/posts/compiletime-sort-in-nim.html That is kind of neat. While I can

Re: Compile-Time Sort in D

2017-06-09 Thread Cym13 via Digitalmars-d-announce
On Friday, 9 June 2017 at 01:34:14 UTC, Mike Parker wrote: On Thursday, 8 June 2017 at 19:07:50 UTC, cym13 wrote: Seeing that the one and only D example in the nim article is a broken one (using static instead of enum or static immutable for 'b') we should have started with a correct example

Re: Compile-Time Sort in D

2017-06-08 Thread Stefan Koch via Digitalmars-d-announce
On Friday, 9 June 2017 at 01:34:14 UTC, Mike Parker wrote: On Thursday, 8 June 2017 at 19:07:50 UTC, cym13 wrote: Seeing that the one and only D example in the nim article is a broken one (using static instead of enum or static immutable for 'b') we should have started with a correct example

Re: Compile-Time Sort in D

2017-06-08 Thread Mike Parker via Digitalmars-d-announce
On Thursday, 8 June 2017 at 19:07:50 UTC, cym13 wrote: Seeing that the one and only D example in the nim article is a broken one (using static instead of enum or static immutable for 'b') we should have started with a correct example before showing the broken one... Good to know for next tim

Re: Compile-Time Sort in D

2017-06-08 Thread ag0aep6g via Digitalmars-d-announce
On 06/08/2017 09:07 PM, cym13 wrote: Seeing that the one and only D example in the nim article is a broken one (using static instead of enum or static immutable for 'b') we should have started with a correct example before showing the broken one... Good to know for next time. Broken? It works

Re: Compile-Time Sort in D

2017-06-08 Thread cym13 via Digitalmars-d-announce
On Wednesday, 7 June 2017 at 21:47:58 UTC, John Carter wrote: On Monday, 5 June 2017 at 14:23:34 UTC, Mike Parker wrote: https://dlang.org/blog/2017/06/05/compile-time-sort-in-d/ Seems like you have inspired people... http://blog.zdsmith.com/posts/compiletime-sort-in-nim.html Seeing that

Re: Compile-Time Sort in D

2017-06-07 Thread MysticZach via Digitalmars-d-announce
On Tuesday, 6 June 2017 at 01:08:45 UTC, Mike Parker wrote: On Monday, 5 June 2017 at 17:54:05 UTC, Jon Degenhardt wrote: Very nice post! Thanks! If it gets half as many page views as yours did, I'll be happy. Yours is the most-viewed post on the blog -- over 1000 views more than #2 (my GC

Re: Compile-Time Sort in D

2017-06-07 Thread Jonathan M Davis via Digitalmars-d-announce
On Thursday, June 08, 2017 01:08:42 Jon Degenhardt via Digitalmars-d- announce wrote: > I was surprised as well, pleasantly of course. Using a simple > example may have helped. Personally, I'm not bothered by the > specific instances of negative feedback on Reddit. It's hard to > write a post that

Re: Compile-Time Sort in D

2017-06-07 Thread Jon Degenhardt via Digitalmars-d-announce
On Wednesday, 7 June 2017 at 20:59:50 UTC, Joakim wrote: On Tuesday, 6 June 2017 at 01:08:45 UTC, Mike Parker wrote: On Monday, 5 June 2017 at 17:54:05 UTC, Jon Degenhardt wrote: Very nice post! Thanks! If it gets half as many page views as yours did, I'll be happy. Yours is the most-viewe

Re: Compile-Time Sort in D

2017-06-07 Thread Stefan Koch via Digitalmars-d-announce
On Wednesday, 7 June 2017 at 21:47:58 UTC, John Carter wrote: On Monday, 5 June 2017 at 14:23:34 UTC, Mike Parker wrote: https://dlang.org/blog/2017/06/05/compile-time-sort-in-d/ Seems like you have inspired people... http://blog.zdsmith.com/posts/compiletime-sort-in-nim.html We should

Re: Compile-Time Sort in D

2017-06-07 Thread John Carter via Digitalmars-d-announce
On Monday, 5 June 2017 at 14:23:34 UTC, Mike Parker wrote: https://dlang.org/blog/2017/06/05/compile-time-sort-in-d/ Seems like you have inspired people... http://blog.zdsmith.com/posts/compiletime-sort-in-nim.html

Re: Compile-Time Sort in D

2017-06-07 Thread Joakim via Digitalmars-d-announce
On Tuesday, 6 June 2017 at 01:08:45 UTC, Mike Parker wrote: On Monday, 5 June 2017 at 17:54:05 UTC, Jon Degenhardt wrote: Very nice post! Thanks! If it gets half as many page views as yours did, I'll be happy. Yours is the most-viewed post on the blog -- over 1000 views more than #2 (my GC

Re: Compile-Time Sort in D

2017-06-06 Thread Joakim via Digitalmars-d-announce
On Monday, 5 June 2017 at 14:23:34 UTC, Mike Parker wrote: The crowd-edited (?) blog post exploring some of D's compile-time features is now live. Thanks again to everyone who helped out with it. The blog: https://dlang.org/blog/2017/06/05/compile-time-sort-in-d/ Reddit:

Re: Compile-Time Sort in D

2017-06-05 Thread Mike Parker via Digitalmars-d-announce
On Monday, 5 June 2017 at 21:35:54 UTC, Seb wrote: This is a great article, Mike! Thanks! At the end I expected a reference to D's great template constraints [1], maybe it's still worth adding sth. like this to show how amazingly useful CTFE is? It's a good idea! I don't think I'll and ch

Re: Compile-Time Sort in D

2017-06-05 Thread Mike Parker via Digitalmars-d-announce
On Monday, 5 June 2017 at 17:54:05 UTC, Jon Degenhardt wrote: Very nice post! Thanks! If it gets half as many page views as yours did, I'll be happy. Yours is the most-viewed post on the blog -- over 1000 views more than #2 (my GC post), and 5,000 more than #3 (A New Import Idiom).

Re: Compile-Time Sort in D

2017-06-05 Thread Stanislav Blinov via Digitalmars-d-announce
On Monday, 5 June 2017 at 14:23:34 UTC, Mike Parker wrote: The crowd-edited (?) blog post exploring some of D's compile-time features is now live. Thanks again to everyone who helped out with it. The blog: https://dlang.org/blog/2017/06/05/compile-time-sort-in-d/ Reddit:

Re: Compile-Time Sort in D

2017-06-05 Thread Seb via Digitalmars-d-announce
On Monday, 5 June 2017 at 14:23:34 UTC, Mike Parker wrote: The crowd-edited (?) blog post exploring some of D's compile-time features is now live. Thanks again to everyone who helped out with it. The blog: https://dlang.org/blog/2017/06/05/compile-time-sort-in-d/ Reddit:

Re: Compile-Time Sort in D

2017-06-05 Thread Walter Bright via Digitalmars-d-announce
mpile-time-sort-in-d/ Reddit: https://www.reddit.com/r/programming/comments/6fefdg/compiletime_sort_in_d/ Very nice post! It's also on Hacker News under "Compile-Time Sort in D".

Re: Compile-Time Sort in D

2017-06-05 Thread Jon Degenhardt via Digitalmars-d-announce
On Monday, 5 June 2017 at 14:23:34 UTC, Mike Parker wrote: The crowd-edited (?) blog post exploring some of D's compile-time features is now live. Thanks again to everyone who helped out with it. The blog: https://dlang.org/blog/2017/06/05/compile-time-sort-in-d/ Reddit:

Compile-Time Sort in D

2017-06-05 Thread Mike Parker via Digitalmars-d-announce
The crowd-edited (?) blog post exploring some of D's compile-time features is now live. Thanks again to everyone who helped out with it. The blog: https://dlang.org/blog/2017/06/05/compile-time-sort-in-d/ Reddit: https://www.reddit.com/r/programming/comments/6fefdg/compiletime_sort_in_d/