April 14, 2008 Re: Core vs Library | ||||
|---|---|---|---|---|
| ||||
Jarrett Billingsley Wrote:
> "Walter Bright" <newshound1@digitalmars.com> wrote in message news:ftv48m$21m5$1@digitalmars.com...
> > http://reddit.com/info/6foi8/comments/
>
> 1: Yes, in .Net languages the core types are aliases to structs in System, not the other way around.
>
> 2: The article seems self-contradictory. First you say that an int as a struct is slow, possibly ugly, can't be optimized, etc. etc. But then you turn around and say that modern compilers can make a user-defined complex type efficient. Which is it? It doesn't feel like the article comes to any kind of conclusion. Is it that fundamental types like int and float should be builtin, while anything higher-level including complex can be done satisfactorily as a library?
>
>
the link time code generation is powerful. It can optimize it very well as fast as built-in. I guess it's what that article means.
| ||||
Copyright © 1999-2021 by the D Language Foundation
Permalink
Reply