Is D production-ready?

Mike Parker via Digitalmars-d digitalmars-d at puremagic.com
Mon Jun 16 04:22:36 PDT 2014


On 6/16/2014 7:39 PM, Chris Cain wrote:
> On Monday, 16 June 2014 at 10:24:46 UTC, John Petal wrote:
>> Does D have a mature SFML or SDL binding?
>
> http://code.dlang.org/packages/derelict-sfml2
> and
> http://code.dlang.org/packages/derelict-sdl2
>
> Are available.
>
> I have personally used the SDL2 bindings on both Windows and Mac and
> they work perfectly so far. Just download the library bindings from
> libsdl.org and go! For both SFML2 and SDL2, it uses the C interface, so
> the tutorials using C are the ones you'll want to pay attention to.
>
> In addition, there's GFM: http://code.dlang.org/packages/gfm
>
> It wraps SDL2 in a bit of a nicer interface (I had trouble using gfm as
> a dependency since ~master references gfm:bgfx which doesn't exist in
> the dub registry yet ... but gfm:sdl2 works when used as the dependency,
> however, it's somewhat new and incomplete ... could use some
> contributions, I think)

Note that the DerelictSFML2 binding suffers from a long-standing DMD 
bug[1] on Linux, which makes it unusable when compiling as 64-bit. This 
is the reason Jeremy DeHaan created DSFML and DSFML-C in the first 
place, just to work around this bug. Looks like it may be partially 
fixed in the next release, though, so it's getting closer to no longer 
being a problem.

The SDL2 binding is mature and stable. It also includes bindings for 
SDL_mixer/net/ttf/image. Aside from these, you'll also find bindings for 
OpenAL, OpenGL, GLFW3, FreeImage, FreeType and more in the DerelictOrg 
github group[2], all of which are available via dub[3].


[1] https://issues.dlang.org/show_bug.cgi?id=5570
[2] https://github.com/DerelictOrg
[3] http://code.dlang.org/


---
This email is free from viruses and malware because avast! Antivirus protection is active.
http://www.avast.com



More information about the Digitalmars-d mailing list