Re: TDPL Japanese Edition

2013-04-04 Thread Walter Bright
On 4/3/2013 10:51 PM, Masahiro Nakagawa wrote: I and Kenji are happy to announce TDPL Japanese edition will be published on April 8th in Japan. We are translation supervisor of this book. どうもありがとう

Re: HibernateD and DDBC - ORM and DB abstraction layer for D

2013-04-04 Thread Jacob Carlborg
On 2013-04-03 21:07, Vadim Lopatin wrote: I don't see what to simplify in markup like this: @Entity class User { @Generated long id; @Column string name; @ManyToOne Customer customer; @ManyToMany

Re: HibernateD and DDBC - ORM and DB abstraction layer for D

2013-04-04 Thread Dicebot
On Wednesday, 3 April 2013 at 19:07:39 UTC, Vadim Lopatin wrote: I don't see what to simplify in markup like this: ... You may implement approach similar to one used in vibe.d http.rest and http.form modules. Some specific examples are described by Jacob, but, in general, in results in 3

Re: HibernateD and DDBC - ORM and DB abstraction layer for D

2013-04-04 Thread Vadim Lopatin
On Thursday, 4 April 2013 at 09:01:16 UTC, Jacob Carlborg wrote: Is the attributes necessary at all? I would just go with: class User { long id; // always assume auto increment, primary key, not null and so on string name; Customer customer; // infer @ManyToOne @ManyToMany

Re: TDPL Japanese Edition

2013-04-04 Thread Andrei Alexandrescu
On 4/4/13 1:51 AM, Masahiro Nakagawa wrote: Hi guys, I and Kenji are happy to announce TDPL Japanese edition will be published on April 8th in Japan. We are translation supervisor of this book. This is an awesome surprise to wake up to. Congratulations, and many thanks to Masahiro, Kenji,

Starting Formal Review of std.process

2013-04-04 Thread Jesse Phillips
The changes for std.process are under review at: http://forum.dlang.org/thread/gclsbrghhjitnfder...@forum.dlang.org std.process is improvements to the existing std.process and is a complete change to the API. The original API remains but these will be going through deprecation. The major change

Re: llvm-d

2013-04-04 Thread deadalnix
On Tuesday, 2 April 2013 at 15:30:53 UTC, Moritz Maxeiner wrote: I've not seen any mention about that under the Documentation category and I've only found posts about that after explicitly searching for that problem right now. I'm sorry for not knowing about that, but if that is such a

Re: TDPL Japanese Edition

2013-04-04 Thread Nick Sabalausky
On Thursday, 4 April 2013 at 05:51:03 UTC, Masahiro Nakagawa wrote: Hi guys, I and Kenji are happy to announce TDPL Japanese edition will be published on April 8th in Japan. We are translation supervisor of this book. すばらしい!

Re: llvm-d

2013-04-04 Thread Moritz Maxeiner
On Thursday, 4 April 2013 at 18:31:59 UTC, deadalnix wrote: On Tuesday, 2 April 2013 at 15:30:53 UTC, Moritz Maxeiner wrote: I've not seen any mention about that under the Documentation category and I've only found posts about that after explicitly searching for that problem right now. I'm

Re: Guigle openGL GUI on GIT

2013-04-04 Thread Mike Parker
On Thursday, 4 April 2013 at 23:04:05 UTC, Stephen Jones wrote: There is a general problem to do with the dlls themselves. While Derelict3 compiles its own .lib files they still require native .dll files on the path. For openGL it is not an issue This isn't a problem. It's the nature of

Re: Seeking research papers on D

2013-04-04 Thread Paulo Pinto
On Wednesday, 3 April 2013 at 16:09:49 UTC, Joseph Rushton Wakeling wrote: On 04/03/2013 05:18 PM, Paulo Pinto wrote: Were you at CERN by any chance? I worked on the Atlas HLT project between 2003-2004. Nothing so posh, I'm afraid. :-) I was at Fribourg University in the interdisciplinary

Re: My thoughts tries with rvalue references

2013-04-04 Thread Dicebot
After some thinking on topic I come to conclusion that rvalue refs _should_ be scope ref and stuff like ref int f(@temp ref int x) { return x; } is invalid. I can see no valid use case for such an error-prone case. Contrary, scope ref feels just like it was designed for this task, also a good

Re: bearophile can say i told you so (re uint-int implicit conv)

2013-04-04 Thread Don
On Wednesday, 3 April 2013 at 14:54:03 UTC, Steven Schveighoffer wrote: On Wed, 03 Apr 2013 07:33:05 -0400, Don turnyourkidsintoc...@nospam.com wrote: Yeah, but I think that what this is, is demonstrating what a useful concept a positive integer type is. There's huge value in statically

Re: My thoughts tries with rvalue references

2013-04-04 Thread Dicebot
On Wednesday, 3 April 2013 at 20:22:10 UTC, Namespace wrote: So you were against the introduction of ravalue references or do you just have a problem with the syntax? I am against whole ref design in D and consider it a mistake :) But within current specification requirements - against hacky

Re: DIP33: A standard exception hierarchy

2013-04-04 Thread Dicebot
On Wednesday, 3 April 2013 at 21:44:36 UTC, Jonathan M Davis wrote: The main issue I have with the wrapper is the fact that you're then forced to overload your function if you want it to test the argument for validity if it's not wrapped and not test if it's wrapped. So, you're creating an

Re: D in comics

2013-04-04 Thread Caligo
On Wed, Apr 3, 2013 at 6:11 PM, gonzo2020 gonzo2...@o2.pl wrote: http://www.loadingartist.com/**2011/01/10/programming/http://www.loadingartist.com/2011/01/10/programming/ Most likely it will still be relevant 5-10 years from now. Sad but true.

Bug 3274 not fixed but fixed?

2013-04-04 Thread Robert
Hi guys! In my research on what is the fastest and safest way to build D programs for dub, I found this: http://d.puremagic.com/issues/show_bug.cgi?id=3274 it is marked as WONTFIX, but I am not able to reproduce it. Is it fixed after all? Thanks! Best regards, Robert

Re: bearophile can say i told you so (re uint-int implicit conv)

2013-04-04 Thread Kagamin
On Tuesday, 2 April 2013 at 09:43:37 UTC, Jonathan M Davis wrote: Naturally, the biggest reason to have size_t be unsigned is so that you can access the whole address space Length exists to limit access to memory. If you want unlimited access, use just a pointer. For some people though, it

Re: About the Expressiveness of D

2013-04-04 Thread Andrei Alexandrescu
On 4/3/13 11:24 PM, Steven Schveighoffer wrote: On Wed, 03 Apr 2013 14:42:12 -0400, Walter Bright newshou...@digitalmars.com wrote: On 4/3/2013 9:49 AM, Dmitry Olshansky wrote: +1 Stylistic nit: When writing a one-liner post like this, please do not quote the entire preceding post,

`Static If Considered' C++ article

2013-04-04 Thread dominic jones
Hello, A response to the static if proposal for C++ was made recently which was a rather severe critique. Has there been a response to this critique or are the conclusions of the article generally considered to be justified? I shall be attending the ACCU meeting this April and would like to

Formal Review of std.process

2013-04-04 Thread Jesse Phillips
Hello, I have decided to take on Review Manager for std.process and hopefully will keep it up and get through the review queue. This is slightly ignoring a first come, first serve approach, but that is mostly because I didn't want to look into it. (So don't be too upset). std.process has

Re: DIP33: A standard exception hierarchy

2013-04-04 Thread Jacob Carlborg
On 2013-04-03 23:44, Jonathan M Davis wrote: The main issue I have with the wrapper is the fact that you're then forced to overload your function if you want it to test the argument for validity if it's not wrapped and not test if it's wrapped. So, you're creating an extra overload with every

Re: About the Expressiveness of D

2013-04-04 Thread Jacob Carlborg
On 2013-04-03 22:50, Andrei Alexandrescu wrote: I was referring to the repeatability of the code used in testing, which is language-independent. I think the first one is far more readable then the one using the loop. -- /Jacob Carlborg

Re: Formal Review of std.process

2013-04-04 Thread Jesse Phillips
Oops, forgot the project description: std.process is improvements to the existing std.process and is a complete change to the API. The original API remains but these will be going through deprecation. The major change is support for redirecting stdin/stdout/stderr For those interested I

Re: About the Expressiveness of D

2013-04-04 Thread Jacob Carlborg
On 2013-04-03 21:28, Simen Kjaeraas wrote: Removed all comments, unittests, and empty lines from std.datetime. File went from 34070 to 5843 lines. Heheh, that's more reasonable. That's also why I don't like to have unit tests inline. -- /Jacob Carlborg

Re: `Static If Considered' C++ article

2013-04-04 Thread Dicebot
On Thursday, 4 April 2013 at 14:01:17 UTC, dominic jones wrote: Hello, A response to the static if proposal for C++ was made recently which was a rather severe critique. Has there been a response to this critique or are the conclusions of the article generally considered to be justified? I

Re: About the Expressiveness of D

2013-04-04 Thread Jacob Carlborg
On 2013-04-04 03:47, Jesse Phillips wrote: cloc doesn't support /+ comments... But using your number, cloc, and some math std.datetime contains mostly /+ and // comments. It only contains a single /* comment. -- /Jacob Carlborg

Re: My thoughts tries with rvalue references

2013-04-04 Thread Namespace
On Thursday, 4 April 2013 at 07:52:51 UTC, Dicebot wrote: After some thinking on topic I come to conclusion that rvalue refs _should_ be scope ref and stuff like ref int f(@temp ref int x) { return x; } is invalid. I can see no valid use case for such an error-prone case. Contrary, scope ref

Re: My thoughts tries with rvalue references

2013-04-04 Thread Namespace
'scope ref': The only existing documentation on scope parameters: http://dlang.org/function.html suggests that references to them simply cannot leave the function they find themselves in. But this is *not* what the temp ref feature is about. Say you have this temp ref function: ref int

Re: `Static If Considered' C++ article

2013-04-04 Thread Kagamin
On Thursday, 4 April 2013 at 14:01:17 UTC, dominic jones wrote: http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2013/n3613.pdf As I understand, they just asked to not rush with static if and give them time to come up with an alternative proposal.

Re: About the Expressiveness of D

2013-04-04 Thread Jesse Phillips
On Thursday, 4 April 2013 at 14:31:36 UTC, Jacob Carlborg wrote: On 2013-04-04 03:47, Jesse Phillips wrote: cloc doesn't support /+ comments... But using your number, cloc, and some math std.datetime contains mostly /+ and // comments. It only contains a single /* comment. I realize

Re: About the Expressiveness of D

2013-04-04 Thread Andrei Alexandrescu
On 4/4/13 10:26 AM, Jacob Carlborg wrote: On 2013-04-03 22:50, Andrei Alexandrescu wrote: I was referring to the repeatability of the code used in testing, which is language-independent. I think the first one is far more readable then the one using the loop. I understand. And I think you

Re: DIP33: A standard exception hierarchy

2013-04-04 Thread Jesse Phillips
On Wednesday, 3 April 2013 at 16:19:25 UTC, Ali Çehreli wrote: auto myFile = some.tmp; scope(exit) remove(myFile); // setup code here manipulateFileRange(range); We are in agreement that it would be impossible to prove one way or the other whether removing the file

Re: My thoughts tries with rvalue references

2013-04-04 Thread Dicebot
On Thursday, 4 April 2013 at 14:43:26 UTC, Namespace wrote: On Thursday, 4 April 2013 at 07:52:51 UTC, Dicebot wrote: After some thinking on topic I come to conclusion that rvalue refs _should_ be scope ref and stuff like ref int f(@temp ref int x) { return x; } is invalid. I can see no valid

Steps to help you edit PDF files in Mac OS X Snow Leopar/Lion/Mountain Lion

2013-04-04 Thread JerryEdison
People use PDF files may often feel frustrated by the difficulty of editing PDF files. PDF, as we know, is very easy to create and share, but it is very hard to edit. Generally speaking, Windows users have more choices to edit PDF as there are multiple Windows-based PDF editors can be found on

Re: My thoughts tries with rvalue references

2013-04-04 Thread Namespace
I don't know. My opinion has no value here. I know. But I wanted to hear just your personal opinion about the code and if you have any suggestions or anything. I may advice to write a DIP that makes more accent on theoretical side of problem - what scope currently is, how it combines with

Re: My thoughts tries with rvalue references

2013-04-04 Thread kenji hara
I also think writing DIP would be better. I can tell some reasonable points about 'scope ref'. - 'in ref' has been allowed from 2.060 ( http://d.puremagic.com/issues/show_bug.cgi?id=8105) - 'scope ref' is still disallowed. (Error: scope cannot be ref or out) - 'scope' means the reference cannot

Re: My thoughts tries with rvalue references

2013-04-04 Thread kenji hara
2013/4/5 Namespace rswhi...@googlemail.com Hmm, I don't know if I could write a long and good text for the DIP. My english is very limited and not free of failures. I still had hoped that Kenji or some other find the time, to see over my code and to make a DIP/Pull Request. Timely guess. I

Re: My thoughts tries with rvalue references

2013-04-04 Thread Dicebot
On Thursday, 4 April 2013 at 16:21:50 UTC, Namespace wrote: I don't know. My opinion has no value here. I know. But I wanted to hear just your personal opinion about the code and if you have any suggestions or anything. I may advice to write a DIP that makes more accent on theoretical side

Re: Formal Review of std.process

2013-04-04 Thread Andrej Mitrovic
On 4/4/13, Jesse Phillips jesse.k.phillip...@gmail.com wrote: Source: https://github.com/kyllingstad/phobos/blob/std-process2/std/process2.d Dead link. Docs: http://www.kyllingen.net/code/std-process2/phobos-prerelease/std_process.html quote Unless a directory is specified in args[0] or

Re: Formal Review of std.process

2013-04-04 Thread Andrej Mitrovic
On 4/4/13, Jesse Phillips jesse.k.phillip...@gmail.com wrote: Docs: http://www.kyllingen.net/code/std-process2/phobos-prerelease/std_process.html quote Win32-specific warning: The mechanisms for process termination are incredibly badly specified in Win32. This function may therefore produce

Re: Formal Review of std.process

2013-04-04 Thread Jesse Phillips
Actual Code location. Source: https://github.com/kyllingstad/phobos/blob/std-process2/std/process.d

Re: Formal Review of std.process

2013-04-04 Thread Steven Schveighoffer
On Thu, 04 Apr 2013 12:50:01 -0400, Andrej Mitrovic andrej.mitrov...@gmail.com wrote: On 4/4/13, Jesse Phillips jesse.k.phillip...@gmail.com wrote: Source: https://github.com/kyllingstad/phobos/blob/std-process2/std/process2.d Dead link.

Re: Steps to help you edit PDF files in Mac OS X Snow Leopar/Lion/Mountain Lion

2013-04-04 Thread Steven Schveighoffer
This is either posted to the wrong group or is spam. I nominate it for removal... -Steve

Re: Formal Review of std.process

2013-04-04 Thread H. S. Teoh
On Thu, Apr 04, 2013 at 01:04:52PM -0400, Steven Schveighoffer wrote: On Thu, 04 Apr 2013 12:50:01 -0400, Andrej Mitrovic andrej.mitrov...@gmail.com wrote: On 4/4/13, Jesse Phillips jesse.k.phillip...@gmail.com wrote: Source:

Re: Steps to help you edit PDF files in Mac OS X Snow Leopar/Lion/Mountain Lion

2013-04-04 Thread H. S. Teoh
On Thu, Apr 04, 2013 at 01:06:27PM -0400, Steven Schveighoffer wrote: This is either posted to the wrong group or is spam. I nominate it for removal... [...] +1. It looked like spam to me. T -- Those who don't understand Unix are condemned to reinvent it, poorly.

Re: Formal Review of std.process

2013-04-04 Thread Lars T. Kyllingstad
On Thursday, 4 April 2013 at 16:50:15 UTC, Andrej Mitrovic wrote: quote Unless a directory is specified in args[0] or program, spawnProcess will search for the program in the directories listed in the PATH environment variable. To run an executable in the current directory, use

Re: D in comics

2013-04-04 Thread Jesse Phillips
On Wednesday, 3 April 2013 at 23:11:30 UTC, gonzo2020 wrote: http://www.loadingartist.com/2011/01/10/programming/ I'm pretty sure same thing could happen if the languages were Java and C++. Do you know Java? I know C++

Re: About the Expressiveness of D

2013-04-04 Thread Steven Schveighoffer
On Thu, 04 Apr 2013 09:25:30 -0400, Andrei Alexandrescu seewebsiteforem...@erdani.org wrote: On 4/3/13 11:24 PM, Steven Schveighoffer wrote: On Wed, 03 Apr 2013 14:42:12 -0400, Walter Bright newshou...@digitalmars.com wrote: On 4/3/2013 9:49 AM, Dmitry Olshansky wrote: +1 Stylistic nit:

Re: Formal Review of std.process

2013-04-04 Thread Lars T. Kyllingstad
On Thursday, 4 April 2013 at 16:57:58 UTC, Andrej Mitrovic wrote: On 4/4/13, Jesse Phillips jesse.k.phillip...@gmail.com wrote: Docs: http://www.kyllingen.net/code/std-process2/phobos-prerelease/std_process.html quote Win32-specific warning: The mechanisms for process termination are

Re: bearophile can say i told you so (re uint-int implicit conv)

2013-04-04 Thread Jonathan M Davis
On Thursday, April 04, 2013 15:20:26 Kagamin wrote: I'm afraid, those applications are not tied to 32-bit ints. They just want a lot of memory because they have a lot of data. It means they want more than 4 gigs, so uint won't help in the slightest: it can't address more than 4 gigs, and

Re: Formal Review of std.process

2013-04-04 Thread Andrej Mitrovic
On 4/4/13, Lars T. Kyllingstad pub...@kyllingen.net wrote: Did you read the article? I did some years ago. There seem to be /some/ workarounds in various places on the web, with alternatives to TerminateProcess, but it's usually hacky. I don't see this as a blocker personally, we can

Re: DIP33: A standard exception hierarchy

2013-04-04 Thread deadalnix
On Wednesday, 3 April 2013 at 21:44:36 UTC, Jonathan M Davis wrote: The main issue I have with the wrapper is the fact that you're then forced to overload your function if you want it to test the argument for validity if it's not wrapped and not test if it's wrapped. So, you're creating an

Re: My thoughts tries with rvalue references

2013-04-04 Thread Namespace
Well, I doubt there are that many native speakers here which will be shocked by bad English :) But if you gather all data mentioned (see also Kenji's comment), I can write DIP itself for you. Type system changes should be studied in smallest details as those have have very long term

Re: My thoughts tries with rvalue references

2013-04-04 Thread Namespace
On Thursday, 4 April 2013 at 16:31:06 UTC, kenji hara wrote: 2013/4/5 Namespace rswhi...@googlemail.com Hmm, I don't know if I could write a long and good text for the DIP. My english is very limited and not free of failures. I still had hoped that Kenji or some other find the time, to see

Re: D in comics

2013-04-04 Thread Jacob Carlborg
On 2013-04-04 20:03, Jesse Phillips wrote: Do you know Java? I know C++ And C# and Java. -- /Jacob Carlborg

Re: bearophile can say i told you so (re uint-int implicit conv)

2013-04-04 Thread Walter Bright
On 4/2/2013 8:10 PM, Steven Schveighoffer wrote: On Tue, 02 Apr 2013 16:32:21 -0400, Walter Bright newshou...@digitalmars.com wrote: For example, with a signed array index, a bounds check is two comparisons rather than one. Why? struct myArr { int length; int opIndex(int idx) {

Re: DIP33: A standard exception hierarchy

2013-04-04 Thread Ali Çehreli
On 04/04/2013 08:47 AM, Jesse Phillips wrote: On Wednesday, 3 April 2013 at 16:19:25 UTC, Ali Çehreli wrote: auto myFile = some.tmp; scope(exit) remove(myFile); // setup code here manipulateFileRange(range); We are in agreement that it would be impossible to

Re: bearophile can say i told you so (re uint-int implicit conv)

2013-04-04 Thread Kagamin
I'm afraid, a factor of 2 is too small. If an application needs gigabytes, you'll have hard time trying to convince it to not use more than 4 gigs. Or more specifically between 2 and 4 gigs. Your examples don't specify if those applications needed large contiguous allocations (which is

Re: bearophile can say i told you so (re uint-int implicit conv)

2013-04-04 Thread Steven Schveighoffer
On Thu, 04 Apr 2013 15:10:28 -0400, Walter Bright newshou...@digitalmars.com wrote: On 4/2/2013 8:10 PM, Steven Schveighoffer wrote: On Tue, 02 Apr 2013 16:32:21 -0400, Walter Bright newshou...@digitalmars.com wrote: For example, with a signed array index, a bounds check is two

Re: D in comics

2013-04-04 Thread Steven Schveighoffer
On Thu, 04 Apr 2013 15:10:14 -0400, Jacob Carlborg d...@me.com wrote: On 2013-04-04 20:03, Jesse Phillips wrote: Do you know Java? I know C++ And C# and Java. I think you guys are missing the joke. Question: You know C++? (interpreted as a programming question, what's the result

Need clarification on dmd symbol generation

2013-04-04 Thread Dicebot
I am currently investigating http://d.puremagic.com/issues/show_bug.cgi?id=9571 and after brief exploration of symbols emitted to object file as well as code that emits them I can't rid of an idea that I am missing something about module system. Why does dmd emits horde of symbols from

Re: bearophile can say i told you so (re uint-int implicit conv)

2013-04-04 Thread Kagamin
BTW don't we already have a hungry application *with* unsigned integers? http://d.puremagic.com/issues/show_bug.cgi?id=4236 http://d.puremagic.com/issues/show_bug.cgi?id=6498 http://d.puremagic.com/issues/show_bug.cgi?id=3719 http://d.puremagic.com/issues/show_bug.cgi?id=4984 - and who

Re: D in comics

2013-04-04 Thread Andrei Alexandrescu
On 4/4/13 3:24 PM, Steven Schveighoffer wrote: On Thu, 04 Apr 2013 15:10:14 -0400, Jacob Carlborg d...@me.com wrote: On 2013-04-04 20:03, Jesse Phillips wrote: Do you know Java? I know C++ And C# and Java. I think you guys are missing the joke. Question: You know C++? (interpreted

Re: Formal Review of std.process

2013-04-04 Thread Dmitry Olshansky
04-Apr-2013 18:22, Jesse Phillips пишет: Hello, I have decided to take on Review Manager for std.process and hopefully will keep it up and get through the review queue. This is slightly ignoring a first come, first serve approach, but that is mostly because I didn't want to look into it. (So

Re: T-shirt design

2013-04-04 Thread Walter Bright
On 3/18/2013 7:41 PM, deadalnix wrote: I guess black to mix nicely with the black sky of the picture on it. Definitely black.

Re: About the Expressiveness of D

2013-04-04 Thread Andrei Alexandrescu
On 4/2/13 4:59 PM, Andrei Alexandrescu wrote: On 4/2/13 6:04 AM, bearophile wrote: Jonas Drewsen: Article about the expressiveness of languages with D included as one of the contestants. http://redmonk.com/dberkholz/2013/03/25/programming-languages-ranked-by-expressiveness/ I think D is

Re: D in comics

2013-04-04 Thread Caligo
On Thu, Apr 4, 2013 at 2:24 PM, Steven Schveighoffer schvei...@yahoo.comwrote: I think you guys are missing the joke. Question: You know C++? (interpreted as a programming question, what's the result of C++) Answer: is it D? -Steve No, I didn't miss the joke, but I was tyring to say

Re: D in comics

2013-04-04 Thread deadalnix
On Wednesday, 3 April 2013 at 23:11:30 UTC, gonzo2020 wrote: http://www.loadingartist.com/2011/01/10/programming/ I did all interview for my current job in D. I like how that comic can be understood in different ways, this is smart and funny.

Re: D in comics

2013-04-04 Thread Caligo
On Thu, Apr 4, 2013 at 3:30 PM, deadalnix deadal...@gmail.com wrote: I did all interview for my current job in D. What company, and in what part of the world If I may ask?

Re: D in comics

2013-04-04 Thread Steven Schveighoffer
On Thu, 04 Apr 2013 16:28:11 -0400, Caligo iteronve...@gmail.com wrote: On Thu, Apr 4, 2013 at 2:24 PM, Steven Schveighoffer schvei...@yahoo.comwrote: I think you guys are missing the joke. Question: You know C++? (interpreted as a programming question, what's the result of C++) Answer:

Re: DIP33: A standard exception hierarchy

2013-04-04 Thread Ali Çehreli
On 04/04/2013 12:16 PM, Ali Çehreli wrote: core.exception.RangeError@deneme(125887): Range violation I have realized something: Maybe some of the confusion here is due to range violation being an Error. I think that it should be an Exception. The rationale is, some function is told to

Re: DIP33: A standard exception hierarchy

2013-04-04 Thread Jonathan M Davis
On Thursday, April 04, 2013 14:13:55 Ali Çehreli wrote: On 04/04/2013 12:16 PM, Ali Çehreli wrote: core.exception.RangeError@deneme(125887): Range violation I have realized something: Maybe some of the confusion here is due to range violation being an Error. I think that it should be an

Re: DIP33: A standard exception hierarchy

2013-04-04 Thread deadalnix
On Thursday, 4 April 2013 at 21:25:18 UTC, Jonathan M Davis wrote: On Thursday, April 04, 2013 14:13:55 Ali Çehreli wrote: On 04/04/2013 12:16 PM, Ali Çehreli wrote: core.exception.RangeError@deneme(125887): Range violation I have realized something: Maybe some of the confusion here is due

Re: Formal Review of std.process

2013-04-04 Thread Kagamin
escapeShellCommand, escapeWindowsArgument, escapeShellFileName - in which way differ and why it's not one function? Why escapeWindowsArgument exists without posix counterpart?

Re: Formal Review of std.process

2013-04-04 Thread Vladimir Panteleev
On Thursday, 4 April 2013 at 21:59:01 UTC, Kagamin wrote: escapeShellCommand, escapeWindowsArgument, escapeShellFileName - in which way differ and why it's not one function? Because they do different things. The escaping rules are different. See the example on escapeShellCommand for how to

On the performance of building D programs

2013-04-04 Thread Vladimir Panteleev
Recently I studied the performance of building a vibe.d example: https://github.com/rejectedsoftware/vibe.d/issues/208 I wrote a few tools in the process, perhaps someone might find them useful as well. However, I'd also like to discuss a related matter: I noticed that compiling D programs

Re: File compare/merge

2013-04-04 Thread Stewart Gordon
On 02/04/2013 19:32, Kagamin wrote: On Tuesday, 2 April 2013 at 10:44:05 UTC, Stewart Gordon wrote: the compare feature in Notepad++ Would *love* scintilla-based compare tool. Where's the feature? Can't find it. It's a plugin - I think whether it comes pre-installed depends on which

Re: D in comics

2013-04-04 Thread Jesse Phillips
On Thursday, 4 April 2013 at 19:24:25 UTC, Steven Schveighoffer wrote: I think you guys are missing the joke. Question: You know C++? (interpreted as a programming question, what's the result of C++) Answer: is it D? -Steve Yeah, I did miss that.

Re: File compare/merge

2013-04-04 Thread John Colvin
On Monday, 1 April 2013 at 20:18:36 UTC, Andrei Alexandrescu wrote: On 4/1/13 3:53 PM, Walter Bright wrote: Life has gotten a lot easier for me trying to manage multiple branches of D since I've been using file compare/merge tools. I use winmerge for Windows, and meld for Linux. They are both

Re: My thoughts tries with rvalue references

2013-04-04 Thread Zach the Mystic
On Thursday, 4 April 2013 at 07:52:51 UTC, Dicebot wrote: After some thinking on topic I come to conclusion that rvalue refs _should_ be scope ref and stuff like ref int f(@temp ref int x) { return x; } is invalid. I can see no valid use case for such an error-prone case. Perhaps they

Re: On the performance of building D programs

2013-04-04 Thread bearophile
Vladimir Panteleev: D code already compiles pretty quickly, but here's an opportunity to nearly halve that time (for some cases) - by moving some of rdmd's basic functionality into the compiler. Make the D compiler search for its modules was one of the first (unwritten) enhancement

Re: On the performance of building D programs

2013-04-04 Thread Vladimir Panteleev
On Friday, 5 April 2013 at 00:39:49 UTC, bearophile wrote: Vladimir Panteleev: D code already compiles pretty quickly, but here's an opportunity to nearly halve that time (for some cases) - by moving some of rdmd's basic functionality into the compiler. Make the D compiler search for its

Re: On the performance of building D programs

2013-04-04 Thread Vladimir Panteleev
On Friday, 5 April 2013 at 00:39:49 UTC, bearophile wrote: Vladimir Panteleev: D code already compiles pretty quickly, but here's an opportunity to nearly halve that time (for some cases) - by moving some of rdmd's basic functionality into the compiler. Make the D compiler search for its

Re: On the performance of building D programs

2013-04-04 Thread Nick Sabalausky
On Fri, 05 Apr 2013 00:49:08 +0200 Vladimir Panteleev vladi...@thecybershadow.net wrote: Recently I studied the performance of building a vibe.d example: https://github.com/rejectedsoftware/vibe.d/issues/208 I wrote a few tools in the process, perhaps someone might find them useful as

Re: My thoughts tries with rvalue references

2013-04-04 Thread Zach the Mystic
On Thursday, 4 April 2013 at 16:25:52 UTC, kenji hara wrote: I can tell some reasonable points about 'scope ref'. - 'in ref' has been allowed from 2.060 ( http://d.puremagic.com/issues/show_bug.cgi?id=8105) - 'scope ref' is still disallowed. (Error: scope cannot be ref or out) - 'scope' means

Re: DIP33: A standard exception hierarchy

2013-04-04 Thread Jonathan M Davis
On Thursday, April 04, 2013 23:50:25 deadalnix wrote: On Thursday, 4 April 2013 at 21:25:18 UTC, Jonathan M Davis wrote: There are obviously exceptions to that (e.g. the in operator), but as far as indexing, slicing, and popFront go, it should be considered a programming bug if they're

Re: bearophile can say i told you so (re uint-int implicit conv)

2013-04-04 Thread Jonathan M Davis
On Thursday, April 04, 2013 21:39:35 Kagamin wrote: BTW don't we already have a hungry application *with* unsigned integers? http://d.puremagic.com/issues/show_bug.cgi?id=4236 http://d.puremagic.com/issues/show_bug.cgi?id=6498 http://d.puremagic.com/issues/show_bug.cgi?id=3719

Re: About the Expressiveness of D

2013-04-04 Thread bearophile
Andrei Alexandrescu: The suggestions included (such as enumerate()) are also very worth looking into. I think the enumerate() was discussed mostly elsewhere. Pinging bearophile on this again - do you want to adapt this into a blog entry? It may be worth posting the link to reddit as is,

Re: About the Expressiveness of D

2013-04-04 Thread Zach the Mystic
On Friday, 5 April 2013 at 01:55:06 UTC, bearophile wrote: Andrei Alexandrescu: Pinging bearophile on this again - do you want to adapt this into a blog entry? It may be worth posting the link to reddit as is, but one adaptation pass for a larger audience shouldn't hurt. Let us know!

Re: DIP33: A standard exception hierarchy

2013-04-04 Thread Jesse Phillips
Thank you, I'd like to say I agree with you on this error should not run cleanup and your definition for when we don't want to run cleanup code is spot on. I'm also not looking to change the language spec. I'm still struggling with convincing myself that this thrown error more likely indicates

Re: bearophile can say i told you so (re uint-int implicit conv)

2013-04-04 Thread Kagamin
On Friday, 5 April 2013 at 01:26:27 UTC, Jonathan M Davis wrote: But I would point out that the bugs that you listed are not at really related to this discussion. They're about dmd running out of memory when compiling, and it's running out of memory not because it needs 64-bit to have enough

Re: Formal Review of std.process

2013-04-04 Thread Lars T. Kyllingstad
On Thursday, 4 April 2013 at 17:04:53 UTC, Steven Schveighoffer wrote: On Thu, 04 Apr 2013 12:50:01 -0400, Andrej Mitrovic andrej.mitrov...@gmail.com wrote: On 4/4/13, Jesse Phillips jesse.k.phillip...@gmail.com wrote: Source:

Re: About the Expressiveness of D

2013-04-04 Thread SomeDude
On Tuesday, 2 April 2013 at 23:55:19 UTC, Jesse Phillips wrote: On Tuesday, 2 April 2013 at 17:33:13 UTC, Walter Bright wrote: On 4/2/2013 2:53 AM, Joseph Rushton Wakeling wrote: I also have a strong feeling that LOC per commit reflects too many different factors to be really reliable as a

Re: Formal Review of std.process

2013-04-04 Thread Lars T. Kyllingstad
The following is a message posted by Johannes Pfau to the other (pre-)review thread which didn't seem to get noticed, along with an edited version of my reply. On Sunday, 31 March 2013 at 13:14:52 UTC, Johannes Pfau wrote: Reposted from github: I think it would be nice if the high level

Re: bug? dmd -o- does not write executable

2013-04-04 Thread Timothee Cour
Sorry but if this is the intent then dmd's help message should make this clear: -o- do not write object file = -o- do not write object file nor executable Intended. No object files = no way to link the executable. I was thinking in that case the object files were created in a temp

Re: Fast switch statement

2013-04-04 Thread John Colvin
On Thursday, 4 April 2013 at 01:06:45 UTC, Steve Kucera wrote: Hi, I am using DMD 2.062 on Windows 7 64-bit. I am writing performance critical functions that need switch statements to use an indirect jump table... current I'm analysing the assembly dump, and the code is compiled to nested

Re: Fast switch statement

2013-04-04 Thread John Colvin
On Thursday, 4 April 2013 at 09:51:15 UTC, John Colvin wrote: On Thursday, 4 April 2013 at 01:06:45 UTC, Steve Kucera wrote: Hi, I am using DMD 2.062 on Windows 7 64-bit. I am writing performance critical functions that need switch statements to use an indirect jump table... current I'm

Re: PyD status and tutorials

2013-04-04 Thread Joseph Rushton Wakeling
On 04/04/2013 05:50 AM, Ellery Newcomer wrote: Actually, it looks like pyd is working just fine with gdc built from master That's what I wondered -- I was guessing that it's frontend version that matters, not backend. so have some randomly diced NetworkX Quick Example: Really nice of you to

is it bug?

2013-04-04 Thread Alexandr Druzhinin
on win7 64 bits using dmd 2.062 32 bits this code http://dpaste.dzfl.pl /6cca43b5 failed with assert failure: core.exception.AssertError@std.range(5288): Assertion failure but on ubuntu 12.04 64 bits, dmd 2.062 64 bit it compiles and works rather well. May be I missed something important with

  1   2   >