Re: New malloc() for win32 that should produce faster DMD's and faster D code that uses malloc()

2013-08-06 Thread dennis luehring
Am 05.08.2013 19:52, schrieb Walter Bright: On 8/5/2013 4:01 AM, Richard Webb wrote: Using the latest DMD and this snn.lib, i'm seeing it take about 11.5 seconds to compile the algorithm unit tests (when i tried it last week, it was taking closer to 17 seconds). For comparison, the MSVC build

Re: Emacs D Mode version 2.0.6 released

2013-08-06 Thread Russel Winder
On Sat, 2013-08-03 at 14:38 +0200, finalpatch wrote: […] I have opened a pull request on github. The changes are: * Fix auto/immutable variable face * Move 'template' to c-class-decl-kwds * Add imenu support * Fix fontification of the first declariation after a protection level label

Re: glad OpenGL loader generator

2013-08-06 Thread Russel Winder
On Tue, 2013-08-06 at 02:00 +0200, David wrote: Am 06.08.2013 01:11, schrieb Land: I really like the sound of this. I'll try it out tomorrow. glad to hear that ;) (to join w0rp with glad jokes) I guess you will just have to play Cream's I'm so glad as a theme tune. -- Russel.

Re: New malloc() for win32 that should produce faster DMD's and faster D code that uses malloc()

2013-08-06 Thread Richard Webb
On 05/08/2013 18:52, Walter Bright wrote: This is hardly the first time the culprit was a library routine It's possible that other library routines are causing some of the remaining difference from the MSVC build (e.g. the profiler suggests that the DMC build spends somewhat more time

The Power of Interoperability: Why Objects Are Inevitable

2013-08-06 Thread qznc
I just discovered this essay of Jonathan Aldrich on the Lambda the Ultimate forum. It tries to identify the essence of object-oriented programming. He provides a (technical) hypothesis why OOP was so successful. http://www.cs.cmu.edu/~aldrich/papers/objects-essay.pdf Interesting read for

Article: D Exceptions and C Callbacks

2013-08-06 Thread Mike Parker
Shows how I like to deal with throwing exceptions from C callbacks in D. Target audience is beginner-level. Uses GLFW to demonstrate. http://www.gamedev.net/page/resources/_/technical/general-programming/d-exceptions-and-c-callbacks-r3323

Re: D reaches 1000 questions on stackoverflow

2013-08-06 Thread Atila Neves
On Tuesday, 6 August 2013 at 01:22:29 UTC, Andre Artus wrote: Andrei Alexandrescu wrote: http://stackoverflow.com/questions/tagged/d Andrei Perhaps we can get it to 1000 answers? I'm looking through it now to see if I can find something I can answer. I think the lack of answers is due to

Re: glad OpenGL loader generator

2013-08-06 Thread David
Am 06.08.2013 16:32, schrieb David: I posted it also on reddit, maybe it draws some attention: http://www.reddit.com/r/programming/comments/1jt9m5/multilanguage_opengl_loader_generator_based_on/ Interesting it seems like it was deleted, but I don't know why? ... Ok

Re: New malloc() for win32 that should produce faster DMD's and faster D code that uses malloc()

2013-08-06 Thread Walter Bright
On 8/6/2013 5:13 AM, Richard Webb wrote: It's possible that other library routines are causing some of the remaining difference from the MSVC build (e.g. the profiler suggests that the DMC build spends somewhat more time inside memcpy than the MSVC build). Not sure if it's down to

Re: Article: D Exceptions and C Callbacks

2013-08-06 Thread QAston
On Tuesday, 6 August 2013 at 15:05:22 UTC, Mike Parker wrote: Shows how I like to deal with throwing exceptions from C callbacks in D. Target audience is beginner-level. Uses GLFW to demonstrate.

Re: New malloc() for win32 that should produce faster DMD's and faster D code that uses malloc()

2013-08-06 Thread Kiith-Sa
On Tuesday, 6 August 2013 at 17:48:57 UTC, Walter Bright wrote: On 8/6/2013 5:13 AM, Richard Webb wrote: It's possible that other library routines are causing some of the remaining difference from the MSVC build (e.g. the profiler suggests that the DMC build spends somewhat more time inside

Re: New malloc() for win32 that should produce faster DMD's and faster D code that uses malloc()

2013-08-06 Thread Kiith-Sa
On Tuesday, 6 August 2013 at 18:38:43 UTC, Kiith-Sa wrote: On Tuesday, 6 August 2013 at 17:48:57 UTC, Walter Bright wrote: On 8/6/2013 5:13 AM, Richard Webb wrote: It's possible that other library routines are causing some of the remaining difference from the MSVC build (e.g. the profiler

Component programming with ranges

2013-08-06 Thread Andrei Alexandrescu
Vote up! http://www.reddit.com/r/programming/comments/1jtzez/component_programming_with_ranges/ Andrei

Re: Component programming with ranges

2013-08-06 Thread bearophile
Andrei Alexandrescu: http://www.reddit.com/r/programming/comments/1jtzez/component_programming_with_ranges/ It's an interesting article, but I wrote some comments. Not even some answers before posting that to Reddit?

Re: Article: D Exceptions and C Callbacks

2013-08-06 Thread Mike Parker
On Tuesday, 6 August 2013 at 17:54:34 UTC, QAston wrote: There's one thing though. You say than relying on coder's discipline is error prone and I totally agree with that. But your sollution requires coder to remember to wrap those callbacks in try-catches. Programming always requires a

Re: glad OpenGL loader generator

2013-08-06 Thread Mike Parker
On Tuesday, 6 August 2013 at 16:47:52 UTC, David wrote: Am 06.08.2013 16:32, schrieb David: I posted it also on reddit, maybe it draws some attention: http://www.reddit.com/r/programming/comments/1jt9m5/multilanguage_opengl_loader_generator_based_on/ Interesting it seems like it was deleted,

Re: Component programming with ranges

2013-08-06 Thread Ali Çehreli
On 08/06/2013 12:56 PM, Andrei Alexandrescu wrote: Vote up! http://www.reddit.com/r/programming/comments/1jtzez/component_programming_with_ranges/ Andrei This article is excellent. Some notes: 1) More recent versions of std.datetime makes it possible to write 1.days instead of