Re: DasBetterC: Converting make.c to D

2018-06-12 Thread Joakim via Digitalmars-d-announce
On Monday, 11 June 2018 at 14:21:20 UTC, Mike Parker wrote: Walter's latest post on -betterC is now on the blog. Here, he shows step-by-step an example of using -betterC to convert a real-world program, one small enough to describe in a blog post, from C to D. The blog:

Re: DasBetterC: Converting make.c to D

2018-06-12 Thread Walter Bright via Digitalmars-d-announce
On 6/12/2018 3:35 AM, biocyberman wrote: On Tuesday, 12 June 2018 at 08:42:51 UTC, Walter Bright wrote: Direct link: https://news.ycombinator.com/item?id=17284350\ I tried compiling 'make' for fun, but failed. Is the source on github outdated? You can see the errors here:

Re: DasBetterC: Converting make.c to D

2018-06-12 Thread Kagamin via Digitalmars-d-announce
What I had with actually modern C: 1) narrowing conversions 2) not only arrays decay to pointers, C happily allows the opposite too, eww 3) looks like C code loves to have function arguments named `in` and `out` Also difficulties with transpiling to C don't look that big: errno is the first

Re: DasBetterC: Converting make.c to D

2018-06-12 Thread biocyberman via Digitalmars-d-announce
On Tuesday, 12 June 2018 at 08:42:51 UTC, Walter Bright wrote: Direct link: https://news.ycombinator.com/item?id=17284350\ I tried compiling 'make' for fun, but failed. Is the source on github outdated? You can see the errors here: https://github.com/DigitalMars/Compiler/issues/5

Re: DasBetterC: Converting make.c to D

2018-06-12 Thread Walter Bright via Digitalmars-d-announce
Direct link: https://news.ycombinator.com/item?id=17284350\

Re: DasBetterC: Converting make.c to D

2018-06-11 Thread Walter Bright via Digitalmars-d-announce
On 6/11/2018 7:21 AM, Mike Parker wrote: Walter's latest post on -betterC is now on the blog. Here, he shows step-by-step an example of using -betterC to convert a real-world program, one small enough to describe in a blog post, from C to D. The blog:

Re: DasBetterC: Converting make.c to D

2018-06-11 Thread Bastiaan Veelo via Digitalmars-d-announce
On Monday, 11 June 2018 at 15:44:47 UTC, rikki cattermole wrote: On 12/06/2018 2:57 AM, Steven Schveighoffer wrote: On 6/11/18 10:21 AM, Mike Parker wrote: Walter's latest post on -betterC is now on the blog. Here, he shows step-by-step an example of using -betterC to convert a real-world

Re: DasBetterC: Converting make.c to D

2018-06-11 Thread bauss via Digitalmars-d-announce
On Monday, 11 June 2018 at 14:52:13 UTC, Andrea Fontana wrote: On Monday, 11 June 2018 at 14:21:20 UTC, Mike Parker wrote: Walter's latest post on -betterC is now on the blog. Here, he shows step-by-step an example of using -betterC to convert a real-world program, one small enough to describe

Re: DasBetterC: Converting make.c to D

2018-06-11 Thread rikki cattermole via Digitalmars-d-announce
On 12/06/2018 2:57 AM, Steven Schveighoffer wrote: On 6/11/18 10:21 AM, Mike Parker wrote: Walter's latest post on -betterC is now on the blog. Here, he shows step-by-step an example of using -betterC to convert a real-world program, one small enough to describe in a blog post, from C to D.

Re: DasBetterC: Converting make.c to D

2018-06-11 Thread Steven Schveighoffer via Digitalmars-d-announce
On 6/11/18 10:21 AM, Mike Parker wrote: Walter's latest post on -betterC is now on the blog. Here, he shows step-by-step an example of using -betterC to convert a real-world program, one small enough to describe in a blog post, from C to D. The blog:

Re: DasBetterC: Converting make.c to D

2018-06-11 Thread Andrea Fontana via Digitalmars-d-announce
On Monday, 11 June 2018 at 14:21:20 UTC, Mike Parker wrote: Walter's latest post on -betterC is now on the blog. Here, he shows step-by-step an example of using -betterC to convert a real-world program, one small enough to describe in a blog post, from C to D. The blog:

Re: DasBetterC: Converting make.c to D

2018-06-11 Thread Mike Parker via Digitalmars-d-announce
On Monday, 11 June 2018 at 14:33:00 UTC, Andrea Fontana wrote: Link to "completed conversion" doesn't work. https://github.com/DigitalMars/Compiler/blob/master/dm/src/make/make.c Andrea Fixed. Thanks!

Re: DasBetterC: Converting make.c to D

2018-06-11 Thread Andrea Fontana via Digitalmars-d-announce
On Monday, 11 June 2018 at 14:21:20 UTC, Mike Parker wrote: Walter's latest post on -betterC is now on the blog. Here, he shows step-by-step an example of using -betterC to convert a real-world program, one small enough to describe in a blog post, from C to D. The blog:

DasBetterC: Converting make.c to D

2018-06-11 Thread Mike Parker via Digitalmars-d-announce
Walter's latest post on -betterC is now on the blog. Here, he shows step-by-step an example of using -betterC to convert a real-world program, one small enough to describe in a blog post, from C to D. The blog: https://dlang.org/blog/2018/06/11/dasbetterc-converting-make-c-to-d/ Reddit: