On Sun, 20 Oct 2019 at 17:27, Iain Buclaw <[email protected]> wrote: > > On Sun, 20 Oct 2019 at 08:10, TheGag96 via Digitalmars-d-announce > <[email protected]> wrote: > > > > Hi, all. I wanted to get into the world of 3DS homebrew, but I > > really didn't feel like coding in C or C++. So, through an effort > > of sheer will, I somehow got a hello world example written in D > > up and running, along with bindings for most of libctru and > > citro3d. > > > > https://github.com/TheGag96/3ds-hello-dlang > > > > Included are instructions on how to set this up (although it's > > pretty hacky). I imagine one could easily start writing Switch > > homebrew in D by following most of these steps as well. Once GCC > > 10 comes out with an updated GDC, it might become a pretty > > attractive alternative to C/++ for such projects if some work is > > put into bindings and stuff. > > > > Hope someone finds this interesting! > > Great stuff! Though I don't think you'll find much improvement in gdc > 10 regarding switching off D features. Backported patches to make gdc > on parity with dmd as of April 2019 was done prior to the gdc 9 > release. I'm not aware of much more being done regarding that other > than some extern(C) library functions being converted into templates, > and the C main function being moved to a common location in D runtime > (C main is not "compiled into" gdc unlike previous versions of dmd). >
For citation on betterC, this is the dmd-cxx PR: https://github.com/dlang/dmd/pull/9678 And the commit done to gcc trunk: https://github.com/gcc-mirror/gcc/commit/7ad41fff7142a495d030e55aa93ae4959b804494 -- Iain
