Live data from Hacker News

Next C compiler is a D compiler: Introducing DMD's ImportC

briancallahan.net

71–80 of 89 posts

Re: Next C compiler is a D compiler: Introducing DMD's ImportC

#71

Earlier quoted context omitted.

D can do RAII.

via structs, right? As for classes you should not rely on it I recall.

You can stack allocate classes, and then they behave like structs.

https://dlang.org/blog/2017/07/07/go-your-own-way-part-one-t...

Re: Next C compiler is a D compiler: Introducing DMD's ImportC

#73
post #25

Earlier quoted context omitted.

Do you plan on giving Zig a try? (They seem to be doing a lot right.) Taking the opportunity here to point people to "Adding Modules to C in 10 Lines of Code" from NWCPP earlier this year: https://www.youtube.com/watch?v=2ImfbGm0fls > (The pitfalls you mention running into there wrt to different compiler instances is itself a decent case study in not relying on singletons http://www.object-oriented-security.org/lets-…

> Do you plan on giving Zig a try? (They seem to be doing a lot right.) All this Zig spam is getting very tiring.

Have you heard of Rust?

Re: Next C compiler is a D compiler: Introducing DMD's ImportC

#74
post #73

Earlier quoted context omitted.

> Do you plan on giving Zig a try? (They seem to be doing a lot right.) All this Zig spam is getting very tiring.

Have you heard of Rust?

If they've heard of zig, then they've almost certainly heard of Rust. I generally prefer Rust, but C interop is something that zig does significantly better.

Re: Next C compiler is a D compiler: Introducing DMD's ImportC

#75

Earlier quoted context omitted.

> In a conversation about languages with this kind of C interop It's not. It's a discussion about "the C compiler built into the Digital Mars D compiler". Please stop with all the Zig spam.

Instead of being petulant about it, you could ignore it and move on

> Instead of being petulant about it, you could ignore it and move o

Not wanting to see gratuitous self-promoting spam degrading the signal/noise ratio of an otherwise interesting discussion is hardly petulance. Replace any Zig reference shoe-horned into this discussion with, say, Java, and see if you have any point.

Re: Next C compiler is a D compiler: Introducing DMD's ImportC

#76

Earlier quoted context omitted.

Instead of being petulant about it, you could ignore it and move on

Hard to ignore it when it's always in your face: https://news.ycombinator.com/item?id=33331549 I don't mind languages getting hyped but seeing posts every week on the front page of HN about an unstable esoteric language with 0 adoption - yes, it's getting tiring.

Maybe you should appeal to the community and tell people to stop upvoting it, and explain why it’s wrong for them to think Zig is interesting.

Re: Next C compiler is a D compiler: Introducing DMD's ImportC

#77
post #64

Earlier quoted context omitted.

> Do you plan on giving Zig a try? (They seem to be doing a lot right.) All this Zig spam is getting very tiring.

It's not "Zig spam" to ask, in direct response to a compiler guy who has just stated that they have not tried it yet, whether they plan to. For further context, the video I linked to is Walter showing up to a C++ users group to present a talk about the D compiler infrastructure—again, at a C++ event, for a bunch of C++ programmers. Considering that, if what I've done here by asking the natural follow up question is a…

> It's not "Zig spam" to ask (...)

It is Zig spam, not because of the discussion or the question or the topic of the time of day. It's Zig spam because it's yet another Zig post among the barrage of Zig posts desperately shoe-horning offtopic gratuitous references to Zig. It's tiring and adds nothing to any discussion.

If you feel that strongly about the need to promote Zig, submit discussions. Please don't spam each and any top submission with these gratuitous references.

Re: Next C compiler is a D compiler: Introducing DMD's ImportC

#78

Earlier quoted context omitted.

Designator-list support has since been added. The multi-layer designators are still to be done, though (they're rarely used, so are a lower priority).

I think something along those lines (rarely used...) was also given by the C++ Committee as justification why so much of the C99 designated init feature set was left out of C++20, which is a bit of a shame. All C99 designated-init 'sub-features' complement each other nicely once you start using them. It's a great way for building 'data-centric' APIs. For instance check out this call to create a 3D-API pipeline-state-…

Sokol's API's are the most ergonomic C API's I've ever seen, for what it's worth.

Re: Next C compiler is a D compiler: Introducing DMD's ImportC

#79
post #64

Earlier quoted context omitted.

It's not "Zig spam" to ask, in direct response to a compiler guy who has just stated that they have not tried it yet, whether they plan to. For further context, the video I linked to is Walter showing up to a C++ users group to present a talk about the D compiler infrastructure—again, at a C++ event, for a bunch of C++ programmers. Considering that, if what I've done here by asking the natural follow up question is a…

> It's not "Zig spam" to ask (...) It is Zig spam, not because of the discussion or the question or the topic of the time of day. It's Zig spam because it's yet another Zig post among the barrage of Zig posts desperately shoe-horning offtopic gratuitous references to Zig. It's tiring and adds nothing to any discussion. If you feel that strongly about the need to promote Zig, submit discussions. Please don't spam each…

It's not off-topic though. D has the facility to compile C projects, as has Zig. OP asked a genuine question about whether Walter Bright was able to compare experiences.

Re: Next C compiler is a D compiler: Introducing DMD's ImportC

#80

Earlier quoted context omitted.

Instead of being petulant about it, you could ignore it and move on

Hard to ignore it when it's always in your face: https://news.ycombinator.com/item?id=33331549 I don't mind languages getting hyped but seeing posts every week on the front page of HN about an unstable esoteric language with 0 adoption - yes, it's getting tiring.

How come it's always accounts made a few days ago which seem too have this problem with other people's interests
Post reply on HN