Re: Very short article with with manual memory management in C++ and D.

2013-02-07 Thread Paulo Pinto
On Wednesday, 6 February 2013 at 21:35:12 UTC, MattCoder wrote: On Wednesday, 6 February 2013 at 13:16:45 UTC, Paulo Pinto wrote: I just wanted to show that the pointer tricks for memory management are not an exclusivity from C and C++. I get it! Just one more note, would you have done any ben

Re: Very short article with with manual memory management in C++ and D.

2013-02-06 Thread MattCoder
On Wednesday, 6 February 2013 at 13:16:45 UTC, Paulo Pinto wrote: I just wanted to show that the pointer tricks for memory management are not an exclusivity from C and C++. I get it! Just one more note, would you have done any benchmark test on between both versions?

Re: Very short article with with manual memory management in C++ and D.

2013-02-06 Thread Paulo Pinto
On Wednesday, 6 February 2013 at 10:13:49 UTC, MattCoder wrote: On Wednesday, 6 February 2013 at 09:36:32 UTC, Paulo Pinto wrote: Eventually I ported the solution to D, while keeping the code as close as possible to the original C++ version. Paulo, can you tell why you chose to keep the D code

Re: Very short article with with manual memory management in C++ and D.

2013-02-06 Thread MattCoder
On Wednesday, 6 February 2013 at 09:36:32 UTC, Paulo Pinto wrote: Eventually I ported the solution to D, while keeping the code as close as possible to the original C++ version. Paulo, can you tell why you chose to keep the D code much as the same the C++ version?

Very short article with with manual memory management in C++ and D.

2013-02-06 Thread Paulo Pinto
Hi, long time ago I wrote a short article about doing manual memory management from C++. http://www.progtools.org/compilers/tutorials/queue/article.html This was based on a job offer I saw in a games magazine. Eventually I ported the solution to D, while keeping the code as close as possibl