Live data from Hacker News

D 2.096 and other news

dlang.org

81–86 of 86 posts

Re: D 2.096 and other news

#81
post #14

Earlier quoted context omitted.

Sounds like it’s perfectly suited for indie game development where everything plus the kitchen sink is a must and the more customizable the better.

That's an excellent point actually. I think as a language D could work well for indie games but even there... if you're an indie developer do you go with D or with Unity (which uses C#)? That said, in principle one could imagine a version of Unity that used D instead of C#, and I think that would be a pretty neat combination.

Funny, you say that: I just asked for D support for Unity a few days back on D's discord server...

Re: D 2.096 and other news

#83

Earlier quoted context omitted.

Imho, D's choice to be garbage collected has prevented wider adoption (that's the case for my usage at least). And as a compiled gc language, it competes squarely with golang, something that's likely hard to do, given the corporate (google) support golang has. Side note: I met the creater of D, Walter Bright (also of course famous for the digital mars compiler) at going native 2013 (now known as cppcon). Bright was t…

As just one anecdote, the mere presence of a GC made me stop looking at D more or less immediately. In terms of positioning, I think D would be better served focusing on a vertical.

> As just one anecdote, the mere presence of a GC made me stop looking at D more or less immediately.

That's a shame, because it is extremely easy to write GC-free code in D. One very important fact is that if you don't allocate using the GC (using "new", appending to a slice, etc.), *the GC will never run*. D provides you a ton of tools to make sure that you're not doing GC allocations, and if you are, where in your code they are happening (@nogc, -vgc and even -betterC).

Re: D 2.096 and other news

#85

Earlier quoted context omitted.

But BetterC doesnt have exceptions :(

Exceptions require more than the Standard C library.

I undersand. I didn't mean it as a criticism of BetterC :)

I'm just getting into D and I love it so far. I do wish there was a way to turn off GC and still have all of the standard library available.

Re: D 2.096 and other news

#86
post #81
post #14

Earlier quoted context omitted.

That's an excellent point actually. I think as a language D could work well for indie games but even there... if you're an indie developer do you go with D or with Unity (which uses C#)? That said, in principle one could imagine a version of Unity that used D instead of C#, and I think that would be a pretty neat combination.

Funny, you say that: I just asked for D support for Unity a few days back on D's discord server...

Are custom language bindings a thing for Unity now?
Post reply on HN