Re: Octree D realization

2012-08-05 Thread Scorn
On Wednesday, 1 August 2012 at 15:11:37 UTC, Alexandr Druzhinin wrote: Hello all! I'd like to use octree in my D project. May be someone has the realization or knows where can I get it? Thanks in advance. Hi! For which purpose do you need an octree implementation in d ? Collision detectio

Re: Is there a way to get a list of functions that get inlined by

2010-02-09 Thread Scorn
bearophile schrieb: >> (while LDC doesn't do it, so I have to report this to the ldc devs and not >> to Walter).< > > larsivi and Deew have told me that compiling with -inline -singleobj solves > the problem with ldc, and my test shows it's true. > > Bye, > bearophile Should that not be a defa

Re: Is there a way to get a list of functions that get inlined by

2010-02-09 Thread Scorn
bearophile schrieb: > Scorn: > >> But D as a system-programming language with the ambition to be an >> alternative to C / C++ has, at least in the long term, to compete with C / >> C++ regarding these things.< > > I understand. The problem is that D is a ne

Re: Is there a way to get a list of functions that get inlined by

2010-02-09 Thread Scorn
> Scorn: > >> double min(double a, double b, double c) >> { >> return a < b && a < c ? a : b < c ? b : c; >> } > > Don't write code like that, add some parenthesys like this: > > return (a < b && a < c) ? a :

Re: Is there a way to get a list of functions that get inlined by dmd?

2010-02-09 Thread Scorn
Don schrieb: > Trass3r wrote: >>> But a big problem is that inlining seems to be done only inside one >>> module and not across modules which makes modules with something like >>> small helper or math functions which are used across different modules >>> senseless. >>> >> >> Yeah, I think so as wel

Re: Is there a way to get a list of functions that get inlined by dmd?

2010-02-09 Thread Scorn
Trass3r schrieb: > Am 08.02.2010, 16:33 Uhr, schrieb Scorn : > >> Trass3r schrieb: >>> Would be interesting. >> >> >> Yes, this would be very interesting indeed. A list of the rules which >> dmd uses internally for inlining functions and methods would

Re: Is there a way to get a list of functions that get inlined by

2010-02-09 Thread Scorn
> Scorn: > >> Hi bearophile. Thanks for your advice (i might try out ldc in the future >> but now i need phobos and not tango as standard library). > > I like DMD for some of the D2 features, for its speed, for allowing > exceptions to be used on Windows too, for its

Re: Is there a way to get a list of functions that get inlined by

2010-02-08 Thread Scorn
>>> Use LDC (D1), you will note a significant improvement over DMD. >>> >> Unless you're on windows. >> > > Yep, second big problem. And unless you're using CodeBlocks (like me at the moment) for development ...

Re: Is there a way to get a list of functions that get inlined by

2010-02-08 Thread Scorn
bearophile schrieb: > Scorn: >> The only things i figured out so far is that functions across modules do >> not seem to get inlined (i don't know if this is the case in general) >> which would be really bad. Another thing which i believe is that >> functions / meth

Re: Is there a way to get a list of functions that get inlined by dmd?

2010-02-08 Thread Scorn
Trass3r schrieb: > Would be interesting. Yes, this would be very interesting indeed. A list of the rules which dmd uses internally for inlining functions and methods similiar to this (which is for .NET) http://blogs.msdn.com/ericgu/archive/2004/01/29/64717.aspx would be really nice. Sure you ca