Re: [SO] question on trivial function inlining

2009-07-10 Thread bearophile
BCS: > > But I'd also like to show that answer of mine to D developers, > done here > :) Do D devs take a look at this D.learn newsgroup, once in a while? :-) Anyway, just to be sure I have done four more little tests, that show an ideal situation. Real world situations are probably worse. vers

Re: [SO] question on trivial function inlining

2009-07-10 Thread BCS
Reply to bearophile, BCS: OK, if you want you can copy it on the StackOverflow done there But I'd also like to show that answer of mine to D developers, done here :)

Re: [SO] question on trivial function inlining

2009-07-10 Thread bearophile
BCS: > Mind if I echo that back to SO? OK, if you want you can copy it on the StackOverflow site (even if it's bad advertising for the D language and even if there are some small grammar errors in what I have written, I have written it quickly, and English isn't my first language) :-) But I'd

Re: [SO] question on trivial function inlining

2009-07-10 Thread BCS
Reply to bearophile, Benjamin Shropshire: Anyone care to add more details? http://stackoverflow.com/questions/1109995/do-getters-and-setters-imp act-performance-in-c-d-java/1110324#1110324 [...] Bye, bearophile Mind if I echo that back to SO?

Re: [SO] question on trivial function inlining

2009-07-10 Thread bearophile
Benjamin Shropshire: > Anyone care to add more details? > http://stackoverflow.com/questions/1109995/do-getters-and-setters-impact-performance-in-c-d-java/1110324#1110324 I think DMD is currently unable to de-virtualize virtual getters and setters. Virtual calls are a bit slower by itself, but th

Re: Regex

2009-07-10 Thread BLS
Robert Fraser wrote: BLS wrote: Vladimir Voinkov wrote: std.regex can't be used in compile time function call. It's quite frustrating... see dsource.org .. afaik there is a compile time regex project. hth http://www.dsource.org/projects/scregexp But the generated functions aren't CTFE-comp

[SO] question on trivial function inlining

2009-07-10 Thread Benjamin Shropshire
Anyone care to add more details? http://stackoverflow.com/questions/1109995/do-getters-and-setters-impact-performance-in-c-d-java/1110324#1110324

Release binary

2009-07-10 Thread Vladimir Voinkov
I've noticed that constant strings are still presented in release bynary: static invariant string Abc0 = "abcdefg"; static const string Abc1 = "abcdefg"; A source compiles with -O -release and the strings are not referenced. Is linked able to optimize them out?

DSSS on linux: Failed to determine DSSS installed prefix

2009-07-10 Thread Trass3r
I've setup dsss exactly how it is described and added it to the PATH, but it always states: "Failed to determine DSSS' installed prefix". It's the same problem as here: http://www.mail-archive.com/digitalmars-d-learn@puremagic.com/msg00291.html but the solution doesn't work for me. ./dsss --pre