Re: CWrap - higher abstraction level for calling C functions

2012-02-22 Thread Gour
On Tue, 21 Feb 2012 18:40:20 +0100 Jacob Carlborg d...@me.com wrote: DStep is currently used only for automatically generating bindings for C functions and Objective-C classes and methods. OK. Thank you. But it depends what code I output, I could change dstep to output code that uses CWrap.

Re: dmd 1.073 and 2.058 release

2012-02-22 Thread Stephan
On 15.02.2012 05:47, Walter Bright wrote: Anyone care to count up the number of bug fixes here? http://www.digitalmars.com/d/1.0/changelog.html http://ftp.digitalmars.com/dmd.1.073.zip http://www.digitalmars.com/d/2.0/changelog.html

Re: GoingNative 6: The D Episode with Walter Bright and Andrei Alexandrescu

2012-02-22 Thread Daniel Murphy
Walter Bright newshou...@digitalmars.com wrote in message news:ji1dfl$17ha$1...@digitalmars.com... http://channel9.msdn.com/Shows/C9-GoingNative/GoingNative-6-The-D-Episode-with-Walter-Bright-and-Andrei-Alexandrescu Sounds like I should finish my extern(C++) branch...

Re: GoingNative 6: The D Episode with Walter Bright and Andrei Alexandrescu

2012-02-22 Thread deadalnix
Le 22/02/2012 13:58, Daniel Murphy a écrit : Walter Brightnewshou...@digitalmars.com wrote in message news:ji1dfl$17ha$1...@digitalmars.com... http://channel9.msdn.com/Shows/C9-GoingNative/GoingNative-6-The-D-Episode-with-Walter-Bright-and-Andrei-Alexandrescu Sounds like I should finish my

Re: D forums now live!

2012-02-22 Thread Stewart Gordon
On 21/02/2012 00:53, James Miller wrote: snip There are a potentially infinite number of possible configurations, and sites need to be aimed at the lowest-common denominator. Doesn't look right with an enlarged font size? Tough. snip Try saying that in court when you're sued for disability

Re: D forums now live!

2012-02-22 Thread Stewart Gordon
On 21/02/2012 11:43, James Miller wrote: snip Its more, if you are using a font with a massive difference in size, then obviously things aren't going to look right. However, if a website require pixel-perfect rendering, then it isn't going to work anyway once it hits a platform that isn't the

Re: D forums now live!

2012-02-22 Thread Nick Sabalausky
Stewart Gordon smjg_1...@yahoo.com wrote in message news:ji31ut$172j$1...@digitalmars.com... On 21/02/2012 11:43, James Miller wrote: snip Its more, if you are using a font with a massive difference in size, then obviously things aren't going to look right. However, if a website require

Re: Programming in D book, Parallelism chapter

2012-02-22 Thread deadalnix
Le 20/02/2012 08:12, Ali Çehreli a écrit : I have continued working on the book. 1) Translated the Parallelism chapter: http://ddili.org/ders/d.en/parallelism.html 2) Translated more chapters from the beginning of the book: * Redirecting Standard Input and Output Streams * Files * auto and

Re: Programming in D book, Parallelism chapter

2012-02-22 Thread Ali Çehreli
On 02/22/2012 08:15 AM, deadalnix wrote: http://ddili.org/ders/d.en/index.html Kindle and Lulu versions will follow later. Ali This book is awesome ! I really think it. This is what D needs. Thank you very much for the kind words. I know where it needs more work and keep making it

Re: CWrap - higher abstraction level for calling C functions

2012-02-22 Thread Denis Shelomovskij
20.02.2012 19:34, Gour пишет: On Mon, 20 Feb 2012 18:02:49 +0400 Denis Shelomovskijverylonglogin@gmail.com wrote: Hello Denis, D has complete (IMHO) compiler support for calling C functions (using extern(C)). But there is a lack of library support. I'm glad you're working on (another)

Re: CWrap - higher abstraction level for calling C functions

2012-02-22 Thread Denis Shelomovskij
22.02.2012 13:41, Gour пишет: That would be nice and make the whole job of binding C functions and providing customized D API easier...and let's not forget about extra points for coordinating work. ;) I'm open for emails about using/changing/fixing CWrap.

Re: CWrap - higher abstraction level for calling C functions

2012-02-22 Thread Jacob Carlborg
On 2012-02-22 19:59, Denis Shelomovskij wrote: 22.02.2012 13:41, Gour пишет: That would be nice and make the whole job of binding C functions and providing customized D API easier...and let's not forget about extra points for coordinating work. ;) I'm open for emails about

Re: D forums now live!

2012-02-22 Thread Kagamin
On Wednesday, 22 February 2012 at 15:26:45 UTC, Stewart Gordon wrote: Try saying that in court when you're sued for disability discrimination. Tch... God damn America. On Wednesday, 22 February 2012 at 15:34:54 UTC, Stewart Gordon wrote:

D Conference 2012 - Sep 26-29 at the Banker's Suite and Ballroom in Astoria, Oregon

2012-02-22 Thread Walter Bright
Pricing isn't set yet, nor has a web site been set up yet, this is just a heads up to reserve the dates on your calendar, and start thinking about that presentation you want to do! The general idea is: Wed evening - meet greet at the Banker's Suite Thu-Fri - presentations at the Banker's

Re: D Conference 2012 - Sep 26-29 at the Banker's Suite and Ballroom in Astoria, Oregon

2012-02-22 Thread Masahiro Nakagawa
Good news! I plan to travel abroad :) Masahiro On Wednesday, 22 February 2012 at 22:07:26 UTC, Walter Bright wrote: Pricing isn't set yet, nor has a web site been set up yet, this is just a heads up to reserve the dates on your calendar, and start thinking about that presentation you want

Re: D forums now live!

2012-02-22 Thread XP1
On Tuesday, 14 February 2012 at 22:13:42 UTC, Vladimir Panteleev wrote: On Tuesday, 14 February 2012 at 22:00:06 UTC, Walter Bright wrote: http://forum.dlang.org/ This should replace the old miserable web interface to the forums. Thanks to Vladimir Panteleev for an awesome job writing this!

Re: D Conference 2012 - Sep 26-29 at the Banker's Suite and Ballroom in Astoria, Oregon

2012-02-22 Thread Walter Bright
On 2/22/2012 5:31 PM, Masahiro Nakagawa wrote: Good news! I plan to travel abroad :) It'll be great to see everyone in 3D land!

Re: GoingNative 6: The D Episode with Walter Bright and Andrei Alexandrescu

2012-02-22 Thread Jesse Phillips
On Wednesday, 22 February 2012 at 02:16:31 UTC, Caligo wrote: I thought GDC was going to be part of GCC 4.7, but Andrei in the video said 4.8. That's another year, :-( Didn`t have it ready for 4.7 so the work is planned for 4.8, but still not certain.

Re: The Right Approach to Exceptions

2012-02-22 Thread Jacob Carlborg
On 2012-02-22 08:33, Jonathan M Davis wrote: On Wednesday, February 22, 2012 08:22:21 Jacob Carlborg wrote: Now I'm completely lost. According to what I've read this is thread this is exactly what you want to do, put the formatting inside the exceptions. No. He wants to provide a way for an

Re: size_t + ptrdiff_t

2012-02-22 Thread Manu
On 22 February 2012 03:31, Juan Manuel Cabo juanmanuel.c...@gmail.comwrote: On 02/21/2012 10:13 PM, Sean Kelly wrote: I think this is actually a good thing, since working with unsigned integers is a pain. Yes, I would prefer that msb bit to be the sign too, but behavior might depend on it,

how to resolve object-relational impedance mismatch using D

2012-02-22 Thread Gour
Hello! We're considering what would be the optimal way way to resolve object-relational impedance mismatch problem in our application which we would like to write using D language. Considering it's planned to be multi-platform desktop GUI app and have extensive research capabilities available

Re: Towards a better conceptual model of exceptions (Was: Re: The Right Approach to Exceptions)

2012-02-22 Thread deadalnix
Le 22/02/2012 08:32, H. S. Teoh a écrit : On Tue, Feb 21, 2012 at 08:56:03PM +0100, deadalnix wrote: Le 21/02/2012 20:00, H. S. Teoh a écrit : [...] You're right, that would be unnecessary duplication, especially since an unhandled Condition becomes a thrown Exception anyway, and it's a very

Re: The Right Approach to Exceptions

2012-02-22 Thread deadalnix
Le 21/02/2012 20:01, H. S. Teoh a écrit : On Tue, Feb 21, 2012 at 07:57:37PM +0100, deadalnix wrote: Le 21/02/2012 03:33, Robert Jacques a écrit : [...] Aren't __traits and opDispatch fun? opDispatch is nice, but rather incomplete. It doesn't handle template methods for example. Does RTTI

Re: The Right Approach to Exceptions

2012-02-22 Thread deadalnix
Le 22/02/2012 06:47, H. S. Teoh a écrit : On Tue, Feb 21, 2012 at 07:43:32PM -0500, Jonathan M Davis wrote: On Tuesday, February 21, 2012 14:15:03 Andrei Alexandrescu wrote: I thought I was pushing the generics angle, and OO people explained it to me that that was wrong. I've changed my

[RFC] ini parser

2012-02-22 Thread bioinfornatics
I have wrote a ini parser it can use bidirectional range example of ini file able to parse: ___ [sectionA] param1=value1 param2=value2 [[subSectionA]] param1sub=value1sub [sectionB] param3=value3 ; I am a comment param4=value4

Re: Custom calling conventions

2012-02-22 Thread Michel Fortin
On 2012-02-22 07:41:21 +, Jacob Carlborg d...@me.com said: void foo (T) () {} void main () { foo!(int); foo!(char); } $ dmd -inline -O -release main.d $ nm main | grep foo 000112b8 T _D4main10__T3fooTaZ3fooFZv 000112b0 T _D4main10__T3fooTiZ3fooFZv Outputs two

Re: The Right Approach to Exceptions

2012-02-22 Thread Andrei Alexandrescu
On 2/22/12 1:22 AM, Jacob Carlborg wrote: Now I'm completely lost. According to what I've read this is thread this is exactly what you want to do, put the formatting inside the exceptions. No, just have exceptions inform an external formatter. Andrei

Re: new std.variant (was Re: The Right Approach to Exceptions)

2012-02-22 Thread Robert Jacques
On Tue, 21 Feb 2012 21:51:34 -0600, Andrei Alexandrescu seewebsiteforem...@erdani.org wrote: On 2/21/12 6:11 PM, Robert Jacques wrote: On Tue, 21 Feb 2012 09:12:57 -0600, Adam D. Ruppe destructiona...@gmail.com wrote: On Tuesday, 21 February 2012 at 02:33:15 UTC, Robert Jacques wrote: Nope.

Re: Ideas from Clang

2012-02-22 Thread deadalnix
Le 19/02/2012 21:19, bearophile a écrit : A belated comment on the GoingNative 2012 talk Defending C++ fom Murphy's Million Monkeys by Chandler Carruth: http://channel9.msdn.com/Events/GoingNative/GoingNative-2012/Clang-Defending-C-from-Murphy-s-Million-Monkeys The slides:

Re: The Right Approach to Exceptions

2012-02-22 Thread Jose Armando Garcia
On Tue, Feb 21, 2012 at 6:32 PM, deadalnix deadal...@gmail.com wrote: Le 21/02/2012 00:23, Andrei Alexandrescu a écrit : On 2/20/12 4:44 PM, Juan Manuel Cabo wrote: HAhaha, it sometimes feel as though people are afraid that the Variant[string] idea is to never use plain old variables and

Re: size_t + ptrdiff_t

2012-02-22 Thread Stewart Gordon
On 22/02/2012 02:23, Walter Bright wrote: snip The C99 Standard sez: The types are ptrdiff_t which is the signed integer type of the result of subtracting two pointers; size_t which is the unsigned integer type of the result of the sizeof operator; And what does it say about what type the

Re: [RFC] ini parser

2012-02-22 Thread bioinfornatics
update (minor) I have do a pull request here: https://github.com/D-Programming-Language/phobos/pull/449

Re: size_t + ptrdiff_t

2012-02-22 Thread Stewart Gordon
On 22/02/2012 07:24, Jacob Carlborg wrote: On 2012-02-22 06:24, Walter Bright wrote: On 2/21/2012 2:11 PM, Stewart Gordon wrote: snip Are we going to have c_long_long as well? Probably. Wouldn't that always be a long in D? Or is it the same as with long in C. long in D is 64 bits. long

Re: The Right Approach to Exceptions

2012-02-22 Thread H. S. Teoh
On Wed, Feb 22, 2012 at 11:18:13AM +0100, deadalnix wrote: Le 21/02/2012 20:01, H. S. Teoh a écrit : [...] Does RTTI handle template methods? I'm not aware of any language that have both template and RTTI. So I'm clueless about this. Doesn't C++ have RTTI? T -- The number you have

Re: Questions about windows support

2012-02-22 Thread H. S. Teoh
On Wed, Feb 22, 2012 at 08:53:06AM +0100, Paulo Pinto wrote: [...] This has been changing in the last years since Microsoft introduced Powershell and due to market pressure created headless versions of Windows. Wow. Headless Windows? Can it even be called Windows anymore? :) T -- IBM =

Re: Ideas from Clang

2012-02-22 Thread so
On Wednesday, 22 February 2012 at 14:27:18 UTC, deadalnix wrote: Le 19/02/2012 21:19, bearophile a écrit : A belated comment on the GoingNative 2012 talk Defending C++ fom Murphy's Million Monkeys by Chandler Carruth:

Re: size_t + ptrdiff_t

2012-02-22 Thread Don Clugston
On 22/02/12 06:16, Walter Bright wrote: On 2/21/2012 6:07 PM, Juan Manuel Cabo wrote: 16bit intel had 16bit segments and offsets, so memory was segmented and you couldn't address more than 64kb at a time. So you couldn't have grabbed^H^Hallocated more than 64kb in real mode in intel in a single

Re: size_t + ptrdiff_t

2012-02-22 Thread Manu
On 22 February 2012 17:16, Stewart Gordon smjg_1...@yahoo.com wrote: On 22/02/2012 07:24, Jacob Carlborg wrote: On 2012-02-22 06:24, Walter Bright wrote: On 2/21/2012 2:11 PM, Stewart Gordon wrote: snip Are we going to have c_long_long as well? Probably. Wouldn't that always be a

Re: size_t + ptrdiff_t

2012-02-22 Thread Manu
On 22 February 2012 17:39, Don Clugston d...@nospam.com wrote: On 22/02/12 06:16, Walter Bright wrote: On 2/21/2012 6:07 PM, Juan Manuel Cabo wrote: 16bit intel had 16bit segments and offsets, so memory was segmented and you couldn't address more than 64kb at a time. So you couldn't have

Re: empty arrays and cast(bool): WAT

2012-02-22 Thread Regan Heath
On Sun, 19 Feb 2012 06:06:19 -, Daniel Murphy yebbl...@nospamgmail.com wrote: I agree, and I doubt it was intentional. if (arr) should mean if (arr.length arr.ptr) But since you can only get (arr.length != 0 arr.ptr == null) when doing unsafe things with arrays, I think it's

Re: The Right Approach to Exceptions

2012-02-22 Thread deadalnix
Le 22/02/2012 16:33, H. S. Teoh a écrit : On Wed, Feb 22, 2012 at 11:18:13AM +0100, deadalnix wrote: Le 21/02/2012 20:01, H. S. Teoh a écrit : [...] Does RTTI handle template methods? I'm not aware of any language that have both template and RTTI. So I'm clueless about this. Doesn't C++

Re: Questions about windows support

2012-02-22 Thread Nick Sabalausky
H. S. Teoh hst...@quickfur.ath.cx wrote in message news:mailman.860.1329924869.20196.digitalmar...@puremagic.com... On Wed, Feb 22, 2012 at 08:53:06AM +0100, Paulo Pinto wrote: [...] This has been changing in the last years since Microsoft introduced Powershell and due to market pressure

Re: The Right Approach to Exceptions

2012-02-22 Thread Regan Heath
On Tue, 21 Feb 2012 14:19:17 -, Andrei Alexandrescu seewebsiteforem...@erdani.org wrote: On 2/21/12 5:55 AM, Regan Heath wrote: On Sun, 19 Feb 2012 23:04:59 -, Andrei Alexandrescu seewebsiteforem...@erdani.org wrote: On 2/19/12 4:00 PM, Nick Sabalausky wrote: Seriously, how is

GitHub pull requests made easy

2012-02-22 Thread Vladimir Panteleev
The overhead of creating pull requests was getting to me, so I've written a little script to make it easier: https://gist.github.com/1885859 This script does three things: 1) Pushes the current branch to your GitHub fork 2) Sets the default remote for the branch, so that you can just type

Re: Questions about windows support

2012-02-22 Thread H. S. Teoh
On Wed, Feb 22, 2012 at 11:08:41AM -0500, Nick Sabalausky wrote: H. S. Teoh hst...@quickfur.ath.cx wrote in message news:mailman.860.1329924869.20196.digitalmar...@puremagic.com... On Wed, Feb 22, 2012 at 08:53:06AM +0100, Paulo Pinto wrote: [...] This has been changing in the last years

Re: new std.variant (was Re: The Right Approach to Exceptions)

2012-02-22 Thread Jonathan M Davis
On Wednesday, February 22, 2012 08:19:38 Robert Jacques wrote: To Variant? Yes, definitely. To Appender? I don't think so. There is an slight change in API behavior necessitated by performance considerations, but I don't think it warrants a review by the community at large. Specifically,

Re: Custom calling conventions

2012-02-22 Thread Jacob Carlborg
On 2012-02-22 13:53, Michel Fortin wrote: On 2012-02-22 07:41:21 +, Jacob Carlborg d...@me.com said: void foo (T) () {} void main () { foo!(int); foo!(char); } $ dmd -inline -O -release main.d $ nm main | grep foo 000112b8 T _D4main10__T3fooTaZ3fooFZv 000112b0 T

Re: Custom calling conventions

2012-02-22 Thread H. S. Teoh
On Wed, Feb 22, 2012 at 06:32:14PM +0100, Jacob Carlborg wrote: [...] 1. The example is correct, you can call a method without parentheses [...] This is not directly related, but isn't calling methods without parentheses deprecated, unless it's marked @property? I thought we will soon enforce

Re: The Right Approach to Exceptions

2012-02-22 Thread H. S. Teoh
On Wed, Feb 22, 2012 at 11:53:39AM +0100, deadalnix wrote: [...] Additionnaly, I would mention that the transient isn't a caracteristic of the Exception, but of the recovery strategy. Technically correct. Though I'm playing with the idea of making recovery strategies a property of an exception

Re: Towards a better conceptual model of exceptions (Was: Re: The Right Approach to Exceptions)

2012-02-22 Thread H. S. Teoh
On Wed, Feb 22, 2012 at 11:14:11AM +0100, deadalnix wrote: Le 22/02/2012 08:32, H. S. Teoh a écrit : [...] I have an idea. What if handlers took *two* arguments, a Condition, and a (possibly derived) Exception object? The raise system would then match conditions to handlers by both the

Re: GitHub pull requests made easy

2012-02-22 Thread Nick Sabalausky
Vladimir Panteleev vladi...@thecybershadow.net wrote in message news:hvwkhrqbzbeeqhewm...@forum.dlang.org... The overhead of creating pull requests was getting to me, so I've written a little script to make it easier: https://gist.github.com/1885859 This script does three things: 1)

Re: empty arrays and cast(bool): WAT

2012-02-22 Thread bearophile
Regan Heath: I too am unsettled by the conflation of null and empty - and argued against it on several occasions, but hey, too late now I suspect. It's not too much late. Bye, bearophile

Re: GitHub pull requests made easy

2012-02-22 Thread David Nadlinger
On Wednesday, 22 February 2012 at 16:51:14 UTC, Vladimir Panteleev wrote: The overhead of creating pull requests was getting to me, so I've written a little script to make it easier: https://gist.github.com/1885859 Personally, I use »hub« as a wrapper for Git all the time:

Re: new std.variant (was Re: The Right Approach to Exceptions)

2012-02-22 Thread Robert Jacques
On Wed, 22 Feb 2012 11:33:57 -0600, Jonathan M Davis jmdavisp...@gmx.com wrote: On Wednesday, February 22, 2012 08:19:38 Robert Jacques wrote: To Variant? Yes, definitely. To Appender? I don't think so. There is an slight change in API behavior necessitated by performance considerations,

Re: Questions about windows support

2012-02-22 Thread Nick Sabalausky
H. S. Teoh hst...@quickfur.ath.cx wrote in message news:mailman.865.1329932055.20196.digitalmar...@puremagic.com... On Wed, Feb 22, 2012 at 11:08:41AM -0500, Nick Sabalausky wrote: H. S. Teoh hst...@quickfur.ath.cx wrote in message

Re: GitHub pull requests made easy

2012-02-22 Thread Nick Sabalausky
David Nadlinger s...@klickverbot.at wrote in message news:ziirmcwpgshvrymge...@forum.dlang.org... On Wednesday, 22 February 2012 at 16:51:14 UTC, Vladimir Panteleev wrote: The overhead of creating pull requests was getting to me, so I've written a little script to make it easier:

Re: Questions about windows support

2012-02-22 Thread Kagamin
On Wednesday, 22 February 2012 at 17:34:16 UTC, H. S. Teoh wrote: On a more serious note, this is perhaps a proof that it's not a good idea to conflate the OS with the GUI. :) But then I'm just being pedantic. Do you wanna say modern hardware still can't run GUI system?

Re: Custom calling conventions

2012-02-22 Thread Michel Fortin
On 2012-02-22 17:32:14 +, Jacob Carlborg d...@me.com said: On 2012-02-22 13:53, Michel Fortin wrote: On 2012-02-22 07:41:21 +, Jacob Carlborg d...@me.com said: void foo (T) () {} void main () { foo!(int); foo!(char); } $ dmd -inline -O -release main.d $ nm main | grep foo

Re: GitHub pull requests made easy

2012-02-22 Thread Brad Roberts
On 2/22/2012 8:51 AM, Vladimir Panteleev wrote: The overhead of creating pull requests was getting to me, so I've written a little script to make it easier: https://gist.github.com/1885859 This script does three things: 1) Pushes the current branch to your GitHub fork 2) Sets the

Re: GitHub pull requests made easy

2012-02-22 Thread Brad Anderson
On Wed, Feb 22, 2012 at 11:20 AM, Nick Sabalausky a@a.a wrote: David Nadlinger s...@klickverbot.at wrote in message news:ziirmcwpgshvrymge...@forum.dlang.org... On Wednesday, 22 February 2012 at 16:51:14 UTC, Vladimir Panteleev wrote: The overhead of creating pull requests was getting to

Re: how to resolve object-relational impedance mismatch using D

2012-02-22 Thread Kagamin
Application spec is one thing, ORM spec is another.

Re: GitHub pull requests made easy

2012-02-22 Thread Vladimir Panteleev
On Wednesday, 22 February 2012 at 18:10:24 UTC, David Nadlinger wrote: On Wednesday, 22 February 2012 at 16:51:14 UTC, Vladimir Panteleev wrote: The overhead of creating pull requests was getting to me, so I've written a little script to make it easier: https://gist.github.com/1885859

Re: Questions about windows support

2012-02-22 Thread H. S. Teoh
On Wed, Feb 22, 2012 at 07:36:24PM +0100, Kagamin wrote: On Wednesday, 22 February 2012 at 17:34:16 UTC, H. S. Teoh wrote: On a more serious note, this is perhaps a proof that it's not a good idea to conflate the OS with the GUI. :) But then I'm just being pedantic. Do you wanna say modern

Re: empty arrays and cast(bool): WAT

2012-02-22 Thread H. S. Teoh
On Wed, Feb 22, 2012 at 01:13:24PM -0500, bearophile wrote: Regan Heath: I too am unsettled by the conflation of null and empty - and argued against it on several occasions, but hey, too late now I suspect. It's not too much late. [...] I agree. Conflating null and empty has been

[RFC]Proposal for better garbage collection

2012-02-22 Thread Benjamin Thaut
As I'm not satisfied with the current GC D has and don't see the situation improving in the future without significant changes to the compiler I wrote the following document that points out all the possible issues with garbage collection I could think of and possible solutions for them. This

Re: Why is there no or or and ?

2012-02-22 Thread Kagamin
On Friday, 17 February 2012 at 06:25:49 UTC, H. S. Teoh wrote: But who am I to speak out against more than four decades of historical accidents, right? I think I'll shut up now. Can you forgive me a little investigation? I heard similar proposals and wonder where they come from. What do you

Re: Why is there no or or and ?

2012-02-22 Thread H. S. Teoh
On Wed, Feb 22, 2012 at 07:57:31PM +0100, Kagamin wrote: On Friday, 17 February 2012 at 06:25:49 UTC, H. S. Teoh wrote: But who am I to speak out against more than four decades of historical accidents, right? I think I'll shut up now. Can you forgive me a little investigation? I heard

Re: new std.variant (was Re: The Right Approach to Exceptions)

2012-02-22 Thread Jonathan M Davis
On Wednesday, February 22, 2012 12:16:43 Robert Jacques wrote: There's a big difference between sealed and not accessible. .data's API requires exposing an array, and there's no way to do this without leaking memory like a sieve in one way or another. However, if all you need is to iterate the

Re: [RFC]Proposal for better garbage collection

2012-02-22 Thread H. S. Teoh
On Wed, Feb 22, 2012 at 07:56:15PM +0100, Benjamin Thaut wrote: As I'm not satisfied with the current GC D has and don't see the situation improving in the future without significant changes to the compiler I wrote the following document that points out all the possible issues with garbage

Re: Why is there no or or and ?

2012-02-22 Thread Kagamin
On Wednesday, 22 February 2012 at 19:04:55 UTC, H. S. Teoh wrote: Wait, which proposal? To replace and || with 'and' and 'or'? Or my slightly extreme rant about replacing '==' with '=' and '=' with ':=', amongst other things? Well, it's hard to explain. Proposals like python's semantic

Re: [RFC]Proposal for better garbage collection

2012-02-22 Thread Benjamin Thaut
Am 22.02.2012 20:40, schrieb H. S. Teoh: On Wed, Feb 22, 2012 at 07:56:15PM +0100, Benjamin Thaut wrote: As I'm not satisfied with the current GC D has and don't see the situation improving in the future without significant changes to the compiler I wrote the following document that points out

Re: Why is there no or or and ?

2012-02-22 Thread H. S. Teoh
On Wed, Feb 22, 2012 at 08:35:21PM +0100, Kagamin wrote: On Wednesday, 22 February 2012 at 19:04:55 UTC, H. S. Teoh wrote: Wait, which proposal? To replace and || with 'and' and 'or'? Or my slightly extreme rant about replacing '==' with '=' and '=' with ':=', amongst other things? Well,

Re: Custom calling conventions

2012-02-22 Thread Jacob Carlborg
On 2012-02-22 19:39, Michel Fortin wrote: On 2012-02-22 17:32:14 +, Jacob Carlborg d...@me.com said: On 2012-02-22 13:53, Michel Fortin wrote: On 2012-02-22 07:41:21 +, Jacob Carlborg d...@me.com said: void foo (T) () {} void main () { foo!(int); foo!(char); } $ dmd -inline -O

Re: The Right Approach to Exceptions

2012-02-22 Thread Jacob Carlborg
On 2012-02-22 15:01, Andrei Alexandrescu wrote: On 2/22/12 1:22 AM, Jacob Carlborg wrote: Now I'm completely lost. According to what I've read this is thread this is exactly what you want to do, put the formatting inside the exceptions. No, just have exceptions inform an external formatter.

Re: Custom calling conventions

2012-02-22 Thread Jacob Carlborg
On 2012-02-22 18:40, H. S. Teoh wrote: On Wed, Feb 22, 2012 at 06:32:14PM +0100, Jacob Carlborg wrote: [...] 1. The example is correct, you can call a method without parentheses [...] This is not directly related, but isn't calling methods without parentheses deprecated, unless it's marked

Re: [RFC]Proposal for better garbage collection

2012-02-22 Thread Dmitry Olshansky
On 22.02.2012 22:56, Benjamin Thaut wrote: As I'm not satisfied with the current GC D has and don't see the situation improving in the future without significant changes to the compiler I wrote the following document that points out all the possible issues with garbage collection I could think

Re: [RFC]Proposal for better garbage collection

2012-02-22 Thread Dmitry Olshansky
On 23.02.2012 0:03, Dmitry Olshansky wrote: On 22.02.2012 22:56, Benjamin Thaut wrote: As I'm not satisfied with the current GC D has and don't see the situation improving in the future without significant changes to the compiler I wrote the following document that points out all the possible

Re: new std.variant (was Re: The Right Approach to Exceptions)

2012-02-22 Thread Jonathan M Davis
On Wednesday, February 22, 2012 14:12:07 Jonathan M Davis wrote: On Wednesday, February 22, 2012 12:16:43 Robert Jacques wrote: There's a big difference between sealed and not accessible. .data's API requires exposing an array, and there's no way to do this without leaking memory like a

Re: new std.variant (was Re: The Right Approach to Exceptions)

2012-02-22 Thread Robert Jacques
On Wed, 22 Feb 2012 13:12:07 -0600, Jonathan M Davis jmdavisp...@gmx.com wrote: On Wednesday, February 22, 2012 12:16:43 Robert Jacques wrote: There's a big difference between sealed and not accessible. .data's API requires exposing an array, and there's no way to do this without leaking

Re: how to resolve object-relational impedance mismatch using D

2012-02-22 Thread Gour
On Wed, 22 Feb 2012 19:46:59 +0100 Kagamin s...@here.lot wrote: Application spec is one thing, ORM spec is another. Sure. Considering that there are no ORM for D, afaik, I'm interested what would be wise to do in D, in a genaral case when one has relational data model: a) usee OOP in D and try

Re: The Right Approach to Exceptions

2012-02-22 Thread deadalnix
Le 22/02/2012 18:50, H. S. Teoh a écrit : On Wed, Feb 22, 2012 at 11:53:39AM +0100, deadalnix wrote: [...] Additionnaly, I would mention that the transient isn't a caracteristic of the Exception, but of the recovery strategy. Technically correct. Though I'm playing with the idea of making

Re: [RFC]Proposal for better garbage collection

2012-02-22 Thread H. S. Teoh
On Wed, Feb 22, 2012 at 08:53:45PM +0100, Benjamin Thaut wrote: Am 22.02.2012 20:40, schrieb H. S. Teoh: On Wed, Feb 22, 2012 at 07:56:15PM +0100, Benjamin Thaut wrote: As I'm not satisfied with the current GC D has and don't see the situation improving in the future without significant

Re: new std.variant (was Re: The Right Approach to Exceptions)

2012-02-22 Thread Jonathan M Davis
On Wednesday, February 22, 2012 14:24:49 Robert Jacques wrote: I view appender's purpose as array building, which is slightly different from simply speeding up array appending. Simply put, an array is a terrible data structure for building arrays. But, I can appreciate the need for mutation

Re: [RFC]Proposal for better garbage collection

2012-02-22 Thread H. S. Teoh
On Wed, Feb 22, 2012 at 07:56:15PM +0100, Benjamin Thaut wrote: [...] 2) Tracking references on the stack: The D compiler always needs to emit a full stack frame so that the GC can walk up the stack at any time in the program. The stack frame of every function generated by the D compiler

dmd -c behaviour doesn't take account of packages.

2012-02-22 Thread Bernard Helyer
A discussion on the Mono-D IRC channel just made me realise something. dmd -c foo/a.d bar/a.d The second module overwrites the first. This makes using 'pass everything at once' with Mono-D (IDE plugin) difficult/impossible. As far as I'm concerned, it's just a bug that's never come up.

Re: dmd -c behaviour doesn't take account of packages.

2012-02-22 Thread David Nadlinger
On Wednesday, 22 February 2012 at 21:33:36 UTC, Bernard Helyer wrote: dmd -c foo/a.d bar/a.d The second module overwrites the first. -oq, anyone? ;) David

Re: dmd -c behaviour doesn't take account of packages.

2012-02-22 Thread David Nadlinger
On Wednesday, 22 February 2012 at 21:36:10 UTC, David Nadlinger wrote: -oq, anyone? ;) Whoops, forgot the link: https://github.com/D-Programming-Language/dmd/pull/563. David

Re: [RFC]Proposal for better garbage collection

2012-02-22 Thread H. S. Teoh
On Thu, Feb 23, 2012 at 12:03:59AM +0400, Dmitry Olshansky wrote: [...] 7) Compiler Options Each of the above mentioned groups of features should be exposed as compiler options so that you can turn them on/off depending on which type of GC you use. Default on/off states for these features

Re: dmd -c behaviour doesn't take account of packages.

2012-02-22 Thread Jonathan M Davis
On Wednesday, February 22, 2012 22:33:35 Bernard Helyer wrote: A discussion on the Mono-D IRC channel just made me realise something. dmd -c foo/a.d bar/a.d The second module overwrites the first. This makes using 'pass everything at once' with Mono-D (IDE plugin) difficult/impossible.

Re: Why is there no or or and ?

2012-02-22 Thread F i L
It does not serve any purpose to insist on closely similar notations. So let's make '+' be '$' and '-' be '+'? My point wasn't that mathematical equations are identical to sequential code statements, but that they should, as much as possible, attempt to stay inline. It's all about how

Re: dmd -c behaviour doesn't take account of packages.

2012-02-22 Thread Bernard Helyer
On Wednesday, 22 February 2012 at 22:05:51 UTC, Jonathan M Davis wrote: Then what happens when you have dmc -c foo/a.d foo_a.d Good point. Regardless, I really wouldn't like the idea of screwing with the object file names to try and avoid collisions. Well, the thing is in this case

Re: dmd -c behaviour doesn't take account of packages.

2012-02-22 Thread Brad Roberts
On Wed, 22 Feb 2012, David Nadlinger wrote: On Wednesday, 22 February 2012 at 21:36:10 UTC, David Nadlinger wrote: -oq, anyone? ;) Whoops, forgot the link: https://github.com/D-Programming-Language/dmd/pull/563. David If only one of the attempts to implement that option actually

Re: dmd -c behaviour doesn't take account of packages.

2012-02-22 Thread Jonathan M Davis
On Wednesday, February 22, 2012 23:33:57 Bernard Helyer wrote: On Wednesday, 22 February 2012 at 22:05:51 UTC, Jonathan M Davis wrote: Then what happens when you have dmc -c foo/a.d foo_a.d Good point. Regardless, I really wouldn't like the idea of screwing with the object file

Re: dmd -c behaviour doesn't take account of packages.

2012-02-22 Thread Bernard Helyer
On Wednesday, 22 February 2012 at 22:44:15 UTC, Jonathan M Davis wrote: On Wednesday, February 22, 2012 23:33:57 Bernard Helyer wrote: On Wednesday, 22 February 2012 at 22:05:51 UTC, Jonathan M Davis wrote: Then what happens when you have dmc -c foo/a.d foo_a.d Good point. Regardless,

Re: dmd -c behaviour doesn't take account of packages.

2012-02-22 Thread Jonathan M Davis
On Wednesday, February 22, 2012 23:50:53 Bernard Helyer wrote: Except DMD is faster by a factor of 10 when passing it all at once. Then maybe there _should_ be a flag to tell it to use/generate the appropriate directory structure. You already typically give it an output directory. It wouldn't

Re: new std.variant (was Re: The Right Approach to Exceptions)

2012-02-22 Thread Robert Jacques
On Wed, 22 Feb 2012 14:17:09 -0600, Jonathan M Davis jmdavisp...@gmx.com wrote: On Wednesday, February 22, 2012 14:12:07 Jonathan M Davis wrote: On Wednesday, February 22, 2012 12:16:43 Robert Jacques wrote: There's a big difference between sealed and not accessible. .data's API requires

Re: [RFC]Proposal for better garbage collection

2012-02-22 Thread Sean Kelly
On Feb 22, 2012, at 10:56 AM, Benjamin Thaut wrote: 5) pointer / reference changed callback Every time a pointer / reference is changed the D compiler emits a call into the runtime and passes the new value of the reference / pointer with it. void _d_pointerChanged(void *ptr); D can

Re: new std.variant (was Re: The Right Approach to Exceptions)

2012-02-22 Thread Juan Manuel Cabo
No, because the array doesn't actually exist until appender makes copy. Will one be able to use the sort!()() algorithm directly on your appender, that is, without accessing/creating the underlying array? --jm

Re: new std.variant (was Re: The Right Approach to Exceptions)

2012-02-22 Thread Juan Manuel Cabo
On Wednesday, 22 February 2012 at 20:59:15 UTC, Jonathan M Davis wrote: speed [...] is really its whole point of existance. I don't know why else you'd ever use appender. [...] - Jonathan M Davis A use case is to give identity to a built-in array. Consider this: class MyClass {

Re: Why is there no or or and ?

2012-02-22 Thread H. S. Teoh
On Wed, Feb 22, 2012 at 11:15:35PM +0100, F i L wrote: It does not serve any purpose to insist on closely similar notations. So let's make '+' be '$' and '-' be '+'? Sounds like an esolang (http://esolangs.org/wiki/Main_Page) :) Maybe I should invent one. I'll call it EsoD, for Esoteric D

  1   2   3   >