June 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


June 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.
June 12, 2018
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: https://github.com/DigitalMars/Compiler/issues/5
> 
> 

See followup there.
June 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.
1 2
Next ›   Last »