digitalmars.D.announce - DasBetterC: Converting make.c to D
- Mike Parker (8/8) Jun 11 2018 Walter's latest post on -betterC is now on the blog. Here, he
- Andrea Fontana (4/12) Jun 11 2018 Link to "completed conversion" doesn't work.
- Mike Parker (2/5) Jun 11 2018 Fixed. Thanks!
- Andrea Fontana (4/12) Jun 11 2018 It seems that blog page is returned correctly by server but
- bauss (2/16) Jun 11 2018 I noticed that too
- Steven Schveighoffer (4/14) Jun 11 2018 "static if can replace cmany uses of #if"
- rikki cattermole (3/20) Jun 11 2018 "(See the dcoumentation"
- Bastiaan Veelo (4/25) Jun 11 2018 "The #include files are replaced" font includes too many
- Walter Bright (3/13) Jun 11 2018 It's on the second page of Hacker News too.
- Walter Bright (2/2) Jun 12 2018 Direct link:
- biocyberman (4/6) Jun 12 2018 I tried compiling 'make' for fun, but failed. Is the source on
- Walter Bright (2/11) Jun 12 2018 See followup there.
- Kagamin (12/12) Jun 12 2018 What I had with actually modern C:
- Joakim (4/12) Jun 12 2018 The example for replacing grouping together multiple pointer
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: https://www.reddit.com/r/programming/comments/8q9u5t/dasbetterc_converting_makec_to_d/
Jun 11 2018
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: https://dlang.org/blog/2018/06/11/dasbetterc-converting-make-c-to-d/ Reddit: https://www.reddit.com/r/programming/comments/8q9u5t/dasbetterc_converting_makec_to_d/Link to "completed conversion" doesn't work. https://github.com/DigitalMars/Compiler/blob/master/dm/src/make/make.c Andrea
Jun 11 2018
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 AndreaFixed. Thanks!
Jun 11 2018
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: https://dlang.org/blog/2018/06/11/dasbetterc-converting-make-c-to-d/ Reddit: https://www.reddit.com/r/programming/comments/8q9u5t/dasbetterc_converting_makec_to_d/It seems that blog page is returned correctly by server but status is 404. Andrea
Jun 11 2018
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:I noticed that tooWalter'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: https://www.reddit.com/r/programming/comments/8q9u5t/dasbetterc_converting_makec_to_d/It seems that blog page is returned correctly by server but status is 404. Andrea
Jun 11 2018
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: https://dlang.org/blog/2018/06/11/dasbetterc-converting-make-c-to-d/ Reddit: https://www.reddit.com/r/programming/comments/8q9u5t/dasbetterc_co verting_makec_to_d/"static if can replace cmany uses of #if" cmany => many -Steve
Jun 11 2018
On 12/06/2018 2:57 AM, Steven Schveighoffer wrote:On 6/11/18 10:21 AM, Mike Parker wrote:"(See the dcoumentation" "make manual pagewhen"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: https://www.reddit.com/r/programming/comments/8q9u5t/dasbetterc_co verting_makec_to_d/"static if can replace cmany uses of #if" cmany => many -Steve
Jun 11 2018
On Monday, 11 June 2018 at 15:44:47 UTC, rikki cattermole wrote:On 12/06/2018 2:57 AM, Steven Schveighoffer wrote:"The #include files are replaced" <tt> font includes too many words. Nice read, I see translating to D is trending.On 6/11/18 10:21 AM, Mike Parker wrote:"(See the dcoumentation" "make manual pagewhen"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: https://www.reddit.com/r/programming/comments/8q9u5t/dasbetterc_converting_makec_to_d/"static if can replace cmany uses of #if" cmany => many -Steve
Jun 11 2018
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: https://dlang.org/blog/2018/06/11/dasbetterc-converting-make-c-to-d/ Reddit: https://www.reddit.com/r/programming/comments/8q9u5t/dasbetterc_co verting_makec_to_d/It's on the second page of Hacker News too. https://news.ycombinator.com
Jun 11 2018
Direct link: https://news.ycombinator.com/item?id=17284350\
Jun 12 2018
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
Jun 12 2018
On 6/12/2018 3:35 AM, biocyberman wrote:On Tuesday, 12 June 2018 at 08:42:51 UTC, Walter Bright wrote:See followup there.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
Jun 12 2018
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 glaring example TLS usage in C, glibc even tunes TLS model for it; AFAIK, C++ stores current exception in some sort of static storage and provides a function to retrieve it from there, a similar approach can be used for C target, though betterc shouldn't use exceptions.
Jun 12 2018
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: https://dlang.org/blog/2018/06/11/dasbetterc-converting-make-c-to-d/ Reddit: https://www.reddit.com/r/programming/comments/8q9u5t/dasbetterc_converting_makec_to_d/The example for replacing grouping together multiple pointer declarations has some raw HTML leaked into it, at least for me in Chrome.
Jun 12 2018