Using D without libphobos

A. Nicholi nich at caveoforig.in
Thu Apr 26 09:24:23 UTC 2018


On Thursday, 26 April 2018 at 06:32:14 UTC, Radu wrote:
>
> LDC allows specifying default libs, something like 
> `-defaultlib=phobos2-ldc,druntime-ldc`; you can remove phobos 
> from the list.

Alright, that sounds simple enough. Thanks!

On Thursday, 26 April 2018 at 06:32:14 UTC, Radu wrote:
> I think you can use any symbol that is compile time only from 
> phobos (like std.traits and std.meta), and you can take stuff 
> from phobos and adapt it to your own needs. I use the compiler 
> explorer (https://d.godbolt.org/) to check the generate code 
> for symbols added.

Didn’t know Godbolt supported D. Thanks for sharing :)

On Thursday, 26 April 2018 at 06:32:14 UTC, Radu wrote:
> Something to remember though, if you intend to commit to 
> serious commercial use, you should be prepared to dig in and 
> fix stuff that doesn't work, or add new functionality, or 
> sponsor the foundation for support. D and LDC are opensource 
> projects, and they have mostly good quality implementation, but 
> they are not commercial grade top of the line products.

Right. We’re prepared for working around that, especially since 
we’ll be targeting platforms and architectures that LDC boasts 
only fleeting support for.


More information about the Digitalmars-d mailing list