Next C compiler is a D compiler: Introducing DMD's ImportC
11–20 of 89 posts
Re: Next C compiler is a D compiler: Introducing DMD's ImportC
#12Walter, since you're here: what's your position regarding bootstrapping and Ken Thompson's "Reflections on Trusting Trust"?
Re: Next C compiler is a D compiler: Introducing DMD's ImportC
#13Re: Next C compiler is a D compiler: Introducing DMD's ImportC
#14This is just like Zig's C compiler
ImportC is basically a C frontend for the D compiler, semantics are close enough but there are some changes to be made still.
Re: Next C compiler is a D compiler: Introducing DMD's ImportC
#15Walter, since you're here: what's your position regarding bootstrapping and Ken Thompson's "Reflections on Trusting Trust"?
your daily edition of WalterBrightFacts™
Re: Next C compiler is a D compiler: Introducing DMD's ImportC
#16More broadly, are there plans to support C extensions that are available in GCC and clang?
Re: Next C compiler is a D compiler: Introducing DMD's ImportC
#17> Error: C designator-list not supported yet I guess only a subset of C11 is supported? Is there all of C89?
https://github.com/floooh/sokol#sokol_gfxh
I couldn't live without it
https://dlang.org/spec/struct.html#static_struct_init
D support it, what's blocking it?
Re: Next C compiler is a D compiler: Introducing DMD's ImportC
#18The article's title is "Your next C compiler is a D compiler", which makes sense, though it's a bit clickbaity. The HN submission title is "Next C compiler is a D compiler", which barely makes grammatical sense, and to the extent that it does make sense, it sounds like there's a C compiler called "Next C compiler" which is also a D compiler.
Re: Next C compiler is a D compiler: Introducing DMD's ImportC
#19Does ImportC support extensions like attribute cleanup yet? It is basically the same thing as D's scope(exit). More broadly, are there plans to support C extensions that are available in GCC and clang?
Re: Next C compiler is a D compiler: Introducing DMD's ImportC
#20This is just like Zig's C compiler
Zig doesn't have a C compiler yet, it bundles clang. Someone in the community was working towards a C compiler in Zig though. ImportC is basically a C frontend for the D compiler, semantics are close enough but there are some changes to be made still.