Re: Comparing compilation time of random code in C++, D, Go, Pascal and Rust

2016-10-26 Thread Sebastien Alaiwan via Digitalmars-d-announce
On Wednesday, 19 October 2016 at 17:05:18 UTC, Gary Willoughby wrote: This was posted on twitter a while ago: Comparing compilation time of random code in C++, D, Go, Pascal and Rust http://imgur.com/a/jQUav Very interesting, thanks for sharing! From the article: Surprise: C++ without optim

Re: Silicon Valley D Meetup - October 27, 2016 - "D runtime infrastructure for your projects" by Ilya Yaroshenko

2016-10-26 Thread Ali Çehreli via Digitalmars-d-announce
Bump... Ali On 10/19/2016 03:07 PM, Ali Çehreli wrote: We're excited to have Ilya as our guest speaker this month! From Ilya: I will talk about the future D runtime infrastructure which is required for D ecosystem to be desirable for business in large scale. A concept I would like to discuss c

Re: Battle-plan for CTFE

2016-10-26 Thread Stefam Koch via Digitalmars-d-announce
On Wednesday, 26 October 2016 at 16:24:49 UTC, MakersF wrote: On Wednesday, 26 October 2016 at 15:02:28 UTC, Stefam Koch wrote: Who can guess what this code does ? char[] obfuscatedFn(string a, string b, uint aLength = 0, uint bLength = 0, uint cLength = 0, uint pos = 0, uint bPos = 0, char[

Re: Battle-plan for CTFE

2016-10-26 Thread MakersF via Digitalmars-d-announce
On Wednesday, 26 October 2016 at 15:02:28 UTC, Stefam Koch wrote: Who can guess what this code does ? char[] obfuscatedFn(string a, string b, uint aLength = 0, uint bLength = 0, uint cLength = 0, uint pos = 0, uint bPos = 0, char[] result = []) { aLength = cast(uint)a.length; bLength

Re: Battle-plan for CTFE

2016-10-26 Thread Stefam Koch via Digitalmars-d-announce
On Wednesday, 26 October 2016 at 15:38:30 UTC, Kagamin wrote: On Wednesday, 26 October 2016 at 15:02:28 UTC, Stefam Koch wrote: bLength = cast(uint)a.length; Reads past the end of b if b is shorter than a. you are right. Thanks for spotting it :)

Re: Battle-plan for CTFE

2016-10-26 Thread Kagamin via Digitalmars-d-announce
On Wednesday, 26 October 2016 at 15:02:28 UTC, Stefam Koch wrote: bLength = cast(uint)a.length; Reads past the end of b if b is shorter than a.

Re: Battle-plan for CTFE

2016-10-26 Thread Stefam Koch via Digitalmars-d-announce
Who can guess what this code does ? char[] obfuscatedFn(string a, string b, uint aLength = 0, uint bLength = 0, uint cLength = 0, uint pos = 0, uint bPos = 0, char[] result = []) { aLength = cast(uint)a.length; bLength = cast(uint)a.length; cLength = aLength + bLength; result.

Re: Battle-plan for CTFE

2016-10-26 Thread Stefan Koch via Digitalmars-d-announce
On Wednesday, 26 October 2016 at 08:19:46 UTC, Andrea Fontana wrote: On Wednesday, 26 October 2016 at 03:58:05 UTC, Stefam Koch wrote: On Tuesday, 25 October 2016 at 17:19:26 UTC, Jacob Carlborg wrote: Very impressive :) Thanks. I just got the following code to compile and execute correctly

Re: Battle-plan for CTFE

2016-10-26 Thread Andrea Fontana via Digitalmars-d-announce
On Wednesday, 26 October 2016 at 03:58:05 UTC, Stefam Koch wrote: On Tuesday, 25 October 2016 at 17:19:26 UTC, Jacob Carlborg wrote: Very impressive :) Thanks. I just got the following code to compile and execute correctly. bool strEq(string a, string b) { if (a.length != b.length)