D game development: a call to action

Manu via Digitalmars-d digitalmars-d at puremagic.com
Tue Dec 16 23:53:25 PST 2014


On 17 December 2014 at 11:44, Joseph Rushton Wakeling via
Digitalmars-d <digitalmars-d at puremagic.com> wrote:
> On Tuesday, 16 December 2014 at 12:56:48 UTC, Manu via Digitalmars-d wrote:
>>
>> D will work on most of those platforms just fine if you abandon the GC and
>> exception handler.
>
>
> I'm out of date on the progress in getting @nogc and @nothrow rolled out as
> widely as possible across the codebase, but doesn't "no GC and no
> exceptions" still rule out quite a large chunk of Phobos? :-(
>
> Also, what about Errors?  Is use of assert() OK?

Phobos only has limited use in realtime code anyway.

Errors should be fine... I imagine assert is an intrinsic defined by
the backends(?).
In Fuji, I register an assert handler (core.exception.assertHandler =
myAssert) which is implemented by Fuji and is portable.

Oh yeah, TLS, that's another one that tends to require special treatment.

Basically, the language will produce working code for all platforms
I've tried if you avoid: exceptions, TLS, GC.
I'm fine with this, that's how I write code anyway. In the case of
Fuji, there are Fuji API's to do most of the low-level druntime/phobos
stuff that might not be supported (threads, synchronisation,
allocation, etc).


More information about the Digitalmars-d mailing list