Re: Sealed classes - would you want them in D? (v2)

2018-05-21 Thread Grady Booch via Digitalmars-d
On Tuesday, 22 May 2018 at 03:10:39 UTC, Bjarne Stroustrup wrote: Any debate about restoring the rights and autonomy of the class, should not be killed off. Any programming language that discriminates against the class, encourages class warfare, does not deserve to be called a programming l

Re: DConf 2018 Videos

2018-05-21 Thread Nicholas Wilson via Digitalmars-d
On Tuesday, 22 May 2018 at 05:03:52 UTC, Manu wrote: On 21 May 2018 at 17:16, Mike Parker via Digitalmars-d wrote: On Monday, 21 May 2018 at 22:09:08 UTC, SrMordred wrote: There is some place where I can find this year conference videos with or without slides? Thanks! Day 1: https://www.

Re: DConf 2018 Videos

2018-05-21 Thread Jonathan M Davis via Digitalmars-d
On Monday, May 21, 2018 22:03:52 Manu via Digitalmars-d wrote: > On 21 May 2018 at 17:16, Mike Parker via Digitalmars-d > > wrote: > > On Monday, 21 May 2018 at 22:09:08 UTC, SrMordred wrote: > >> There is some place where I can find this year conference videos with > >> or > >> without slides? >

Re: DConf 2018 Videos

2018-05-21 Thread Ali Çehreli via Digitalmars-d
On 05/21/2018 10:03 PM, Manu wrote: I was really interested to see Walter's talk this year! :( He said he will have been giveneth the same talk somewhere elseth. Ali

Re: DConf 2018 Videos

2018-05-21 Thread Manu via Digitalmars-d
On 21 May 2018 at 17:16, Mike Parker via Digitalmars-d wrote: > On Monday, 21 May 2018 at 22:09:08 UTC, SrMordred wrote: >> >> There is some place where I can find this year conference videos with or >> without slides? >> Thanks! > > > Day 1: > https://www.youtube.com/watch?v=HvqsUO77FGI > (the st

Re: Help with DMD internals

2018-05-21 Thread Manu via Digitalmars-d
On 21 May 2018 at 15:51, Steven Schveighoffer via Digitalmars-d wrote: > On 5/21/18 6:37 PM, Manu wrote: >> >> On 21 May 2018 at 15:29, Steven Schveighoffer via Digitalmars-d >> wrote: >>> >>> Uninitialized, but allocated and usable. The difference between this and >>> delete is that delete is go

Re: extern(C++) classes; dtor must go in vtable

2018-05-21 Thread Manu via Digitalmars-d
On 21 May 2018 at 15:39, Steven Schveighoffer via Digitalmars-d wrote: > On 5/21/18 6:26 PM, Manu wrote: >> >> On 21 May 2018 at 14:53, Jonathan M Davis via Digitalmars-d >> wrote: >>> >>> On Monday, May 21, 2018 14:33:44 Manu via Digitalmars-d wrote: How do virtual destructors work in

Re: PIMPL Idiom in D

2018-05-21 Thread Walter Bright via Digitalmars-d
On 5/21/2018 2:41 PM, Steven Schveighoffer wrote: On 5/21/18 5:23 PM, Walter Bright wrote: In C, the way to do PIMPL is to write just a struct declaration:    === s.h ===    struct S;    === s.c ===    #include "s.h"    struct S { ... };    === t.c ===    #include "s.h"    struct T {   S*

Re: Sealed classes - would you want them in D? (v2)

2018-05-21 Thread Bjarne Stroustrup via Digitalmars-d
On Monday, 21 May 2018 at 19:51:38 UTC, Andrei Alexandrescu wrote: Hi folks, it looks like at least a few branches of this thread have run well past their useful course and into tedious territory. We don't like to go about killing threads, so we kindly ask that you all refrain from posting in

Re: Sealed classes - would you want them in D? (v2)

2018-05-21 Thread VectorThis via Digitalmars-d
On Monday, 21 May 2018 at 19:51:38 UTC, Andrei Alexandrescu wrote: Hi folks, it looks like at least a few branches of this thread have run well past their useful course and into tedious territory. We don't like to go about killing threads, so we kindly ask that you all refrain from posting in

Re: DConf 2018 Videos

2018-05-21 Thread SrMordred via Digitalmars-d
We're working to get each talk into separate videos, but it may take a while. Thank you very much! (for some odd reason the day 2 and 3 didn´t appear to me on youtube when I searched)

Re: DConf 2018 Videos

2018-05-21 Thread Mike Parker via Digitalmars-d
On Monday, 21 May 2018 at 22:09:08 UTC, SrMordred wrote: There is some place where I can find this year conference videos with or without slides? Thanks! Day 1: https://www.youtube.com/watch?v=HvqsUO77FGI (the stream of the first three talks was lost, so it starts after lunch) Day 2: https:

Re: Help with DMD internals

2018-05-21 Thread Steven Schveighoffer via Digitalmars-d
On 5/21/18 6:37 PM, Manu wrote: On 21 May 2018 at 15:29, Steven Schveighoffer via Digitalmars-d wrote: On 5/21/18 6:18 PM, Manu wrote: On 21 May 2018 at 06:10, Steven Schveighoffer via Digitalmars-d wrote: On 5/20/18 9:49 PM, Manu wrote: On 20 May 2018 at 17:14, Walter Bright via Digita

Re: extern(C++) classes; dtor must go in vtable

2018-05-21 Thread Steven Schveighoffer via Digitalmars-d
On 5/21/18 6:26 PM, Manu wrote: On 21 May 2018 at 14:53, Jonathan M Davis via Digitalmars-d wrote: On Monday, May 21, 2018 14:33:44 Manu via Digitalmars-d wrote: How do virtual destructors work in normal D classes? It is my understanding that destructors in D are never virtual but rather tha

Re: Help with DMD internals

2018-05-21 Thread Manu via Digitalmars-d
On 21 May 2018 at 15:29, Steven Schveighoffer via Digitalmars-d wrote: > On 5/21/18 6:18 PM, Manu wrote: >> >> On 21 May 2018 at 06:10, Steven Schveighoffer via Digitalmars-d >> wrote: >>> >>> On 5/20/18 9:49 PM, Manu wrote: On 20 May 2018 at 17:14, Walter Bright via Digitalmars-d

Re: extern(C++) classes; dtor must go in vtable

2018-05-21 Thread Manu via Digitalmars-d
On 21 May 2018 at 15:03, Jonathan M Davis via Digitalmars-d wrote: > On Monday, May 21, 2018 14:33:44 Manu via Digitalmars-d wrote: >> extern(C++) classes. >> >> Currently, we don't add destructors to the vtable... we suggest that >> users need to create some dummy virtual functions to fill those

Re: Help with DMD internals

2018-05-21 Thread Steven Schveighoffer via Digitalmars-d
On 5/21/18 6:18 PM, Manu wrote: On 21 May 2018 at 06:10, Steven Schveighoffer via Digitalmars-d wrote: On 5/20/18 9:49 PM, Manu wrote: On 20 May 2018 at 17:14, Walter Bright via Digitalmars-d Yes, and only for delete. Why? This doesn't make a lot of sense, since delete is freeing the me

Re: extern(C++) classes; dtor must go in vtable

2018-05-21 Thread Manu via Digitalmars-d
On 21 May 2018 at 14:53, Jonathan M Davis via Digitalmars-d wrote: > On Monday, May 21, 2018 14:33:44 Manu via Digitalmars-d wrote: >> How do virtual destructors work in normal D classes? > > It is my understanding that destructors in D are never virtual but rather > that the runtime handles calli

Re: CI buildbots

2018-05-21 Thread Manu via Digitalmars-d
On 21 May 2018 at 09:22, Jonathan Marler via Digitalmars-d wrote: > On Monday, 21 May 2018 at 04:46:15 UTC, Manu wrote: >> >> This CI situation with the DMD/druntime repos is not okay. >> It takes ages... **hours** sometimes, for CI to complete. >> It's all this 'auto-tester' one, which seems to l

Re: http://asm.dlang.org/ needs updating

2018-05-21 Thread IntegratedDimensions via Digitalmars-d
On Monday, 21 May 2018 at 20:29:13 UTC, Steven Schveighoffer wrote: On 5/20/18 12:47 PM, IntegratedDimensions wrote: load and save are not working, an example is always compiled in. No code in the input box still shows examples code in the disassembly. Why do we even have asm.dlang.org any mo

Re: http://asm.dlang.org/ needs updating

2018-05-21 Thread IntegratedDimensions via Digitalmars-d
On Monday, 21 May 2018 at 20:29:13 UTC, Steven Schveighoffer wrote: On 5/20/18 12:47 PM, IntegratedDimensions wrote: load and save are not working, an example is always compiled in. No code in the input box still shows examples code in the disassembly. Why do we even have asm.dlang.org any mo

Re: Help with DMD internals

2018-05-21 Thread Manu via Digitalmars-d
On 21 May 2018 at 06:10, Steven Schveighoffer via Digitalmars-d wrote: > On 5/20/18 9:49 PM, Manu wrote: >> >> On 20 May 2018 at 17:14, Walter Bright via Digitalmars-d >> wrote: >>> >>> On 5/20/2018 12:28 PM, Manu wrote: Is re-initialisation to 'init' part of destruction, >>> >

DConf 2018 Videos

2018-05-21 Thread SrMordred via Digitalmars-d
There is some place where I can find this year conference videos with or without slides? Thanks!

Re: extern(C++) classes; dtor must go in vtable

2018-05-21 Thread Jonathan M Davis via Digitalmars-d
On Monday, May 21, 2018 14:33:44 Manu via Digitalmars-d wrote: > extern(C++) classes. > > Currently, we don't add destructors to the vtable... we suggest that > users need to create some dummy virtual functions to fill those vtable > slots so that the vtable layout otherwise matches the C++ class.

Re: extern(C++) classes; dtor must go in vtable

2018-05-21 Thread Jonathan M Davis via Digitalmars-d
On Monday, May 21, 2018 14:33:44 Manu via Digitalmars-d wrote: > How do virtual destructors work in normal D classes? It is my understanding that destructors in D are never virtual but rather that the runtime handles calling them correctly. IIRC, that relates to some of the issues that make it so

Re: PIMPL Idiom in D

2018-05-21 Thread Steven Schveighoffer via Digitalmars-d
On 5/21/18 5:23 PM, Walter Bright wrote: In C, the way to do PIMPL is to write just a struct declaration:   === s.h ===   struct S;   === s.c ===   #include "s.h"   struct S { ... };   === t.c ===   #include "s.h"   struct T { S* pimpl;   }; And the users of T cannot access any

extern(C++) classes; dtor must go in vtable

2018-05-21 Thread Manu via Digitalmars-d
extern(C++) classes. Currently, we don't add destructors to the vtable... we suggest that users need to create some dummy virtual functions to fill those vtable slots so that the vtable layout otherwise matches the C++ class. This leaves us in a position where destruction doesn't work for polymor

PIMPL Idiom in D

2018-05-21 Thread Walter Bright via Digitalmars-d
In C, the way to do PIMPL is to write just a struct declaration: === s.h === struct S; === s.c === #include "s.h" struct S { ... }; === t.c === #include "s.h" struct T { S* pimpl; }; And the users of T cannot access anything in S. The straightforward equivalent in D is:

Re: Error about constructor calls in loops/labels, but there are no loops and labels?

2018-05-21 Thread Steven Schveighoffer via Digitalmars-d
On 5/21/18 4:29 PM, Yuxuan Shui wrote: My response below might be a little off-topic. On Monday, 21 May 2018 at 13:06:14 UTC, Steven Schveighoffer wrote: [snip] There is something to be said for keeping the compiler dumb: 1. Dumb is easy to implement, explain, and understand -- if you set th

Re: Error about constructor calls in loops/labels, but there are no loops and labels?

2018-05-21 Thread Yuxuan Shui via Digitalmars-d
I've been using Swift in the past few years quite a bit, and it always amuses me when it can't figure out some kind of inference that seems trivial, but it just gives up because the compiler takes too long to determine: "This [one line] statement is too difficult, please split into multiple st

Re: http://asm.dlang.org/ needs updating

2018-05-21 Thread Steven Schveighoffer via Digitalmars-d
On 5/20/18 12:47 PM, IntegratedDimensions wrote: load and save are not working, an example is always compiled in. No code in the input box still shows examples code in the disassembly. Why do we even have asm.dlang.org any more? The latest version on there is 2.071. I'd recommend using run.d

Re: Error about constructor calls in loops/labels, but there are no loops and labels?

2018-05-21 Thread Yuxuan Shui via Digitalmars-d
My response below might be a little off-topic. On Monday, 21 May 2018 at 13:06:14 UTC, Steven Schveighoffer wrote: [snip] There is something to be said for keeping the compiler dumb: 1. Dumb is easy to implement, explain, and understand -- if you set the bar low then more compilers will be a

Re: Sealed classes - would you want them in D? (v2)

2018-05-21 Thread Andrei Alexandrescu via Digitalmars-d
Hi folks, it looks like at least a few branches of this thread have run well past their useful course and into tedious territory. We don't like to go about killing threads, so we kindly ask that you all refrain from posting in this thread going forward. Thanks much! Andrei

Re: Generate Ddoc without compiling?

2018-05-21 Thread Vladimir Panteleev via Digitalmars-d
On Monday, 21 May 2018 at 12:37:36 UTC, Jonathan M. Wilbur wrote: $(DCOMPILER) -o- -op -d -Df$@ $< That should work. It's roughly how the dlang.org documentation is built. But that does not work, because some of the compiled modules import other modules, and the rule fails because DCOMPILER

Re: Generate Ddoc without compiling?

2018-05-21 Thread Vladimir Panteleev via Digitalmars-d
On Monday, 21 May 2018 at 12:37:36 UTC, Jonathan M. Wilbur wrote: Having said that, I don't see why it would be technically impossible to make DMD build the HTML (almost) without regard to the validity of the source code. Is this possible? And moreover: *should* it be done? Is it a bad idea?

Re: A pattern I'd like to see more of - Parsing template parameter tuples

2018-05-21 Thread crimaniak via Digitalmars-d
On Monday, 21 May 2018 at 07:10:34 UTC, rikki cattermole wrote: alias DocumentType = SomeDocument!( ObjectVersion._1_0, ObjectEncoding.PlainASCII ); alias DocumentType2 = SomeDocument!( ObjectEncoding.UTF8, ObjectVersion._2_0 ); typedef basic_stringstring; typedef basic_string wstring;

Re: Sealed classes - would you want them in D? (v2)

2018-05-21 Thread 12345swordy via Digitalmars-d
On Monday, 21 May 2018 at 15:30:40 UTC, Gheorghe Gabriel wrote: On Monday, 21 May 2018 at 15:07:39 UTC, KingJoffrey wrote: My suggestions are about resolving this, in order to attract more programmers to D, because I doubt I'm the only person in the world, that believes an object has a right to

Re: Generate Ddoc without compiling?

2018-05-21 Thread Steven Schveighoffer via Digitalmars-d
On 5/21/18 12:59 PM, Jonathan M. Wilbur wrote: On Monday, 21 May 2018 at 12:53:47 UTC, Steven Schveighoffer wrote: On 5/21/18 8:37 AM, Jonathan M. Wilbur wrote: I want to put in a feature request, but I want to gauge whether it is even feasible or not, but a little background first: I am tryi

Re: Sealed classes - would you want them in D? (v2)

2018-05-21 Thread Dave Jones via Digitalmars-d
On Monday, 21 May 2018 at 16:35:57 UTC, rikki cattermole wrote: Please stop replying Dave, it isn't worth it. Do something more productive with your time :) I know, but... it helps me relax. ;-)

Re: Generate Ddoc without compiling?

2018-05-21 Thread Jonathan M. Wilbur via Digitalmars-d
On Monday, 21 May 2018 at 12:53:47 UTC, Steven Schveighoffer wrote: On 5/21/18 8:37 AM, Jonathan M. Wilbur wrote: I want to put in a feature request, but I want to gauge whether it is even feasible or not, but a little background first: I am trying to create a Makefile to build the HTML docu

Re: Sealed classes - would you want them in D? (v2)

2018-05-21 Thread rikki cattermole via Digitalmars-d
Please stop replying Dave, it isn't worth it. Do something more productive with your time :)

Re: Sealed classes - would you want them in D? (v2)

2018-05-21 Thread Dave Jones via Digitalmars-d
On Monday, 21 May 2018 at 14:54:57 UTC, KingJoffrey wrote: On Monday, 21 May 2018 at 14:46:40 UTC, Sjoerd Nijboer wrote: Also, I would verry much much like it if you would not resort to comparing me to "one of those facebook employees." It's just setting a mood for the conversation which no o

Re: Sealed classes - would you want them in D? (v2)

2018-05-21 Thread Dave Jones via Digitalmars-d
On Monday, 21 May 2018 at 09:56:22 UTC, KingJoffrey wrote: On Monday, 21 May 2018 at 09:16:42 UTC, Dave Jones wrote: da dah dah da dah dah dahh da d .. . ... da dah.. ..da.. da ...dadada.da...dada. Thanks Dave. Your contributions to the discussion hav

Re: CI buildbots

2018-05-21 Thread Jonathan Marler via Digitalmars-d
On Monday, 21 May 2018 at 04:46:15 UTC, Manu wrote: This CI situation with the DMD/druntime repos is not okay. It takes ages... **hours** sometimes, for CI to complete. It's all this 'auto-tester' one, which seems to lock up on the last few tests. This makes DMD is a rather unenjoyable project

Re: Found on proggit: simple treap language benchmark, includes D

2018-05-21 Thread rikki cattermole via Digitalmars-d
On 22/05/2018 3:31 AM, ixid wrote: On Saturday, 19 May 2018 at 15:09:38 UTC, Joakim wrote: D does well, comes in second on Mac/Win/linux: https://github.com/frol/completely-unscientific-benchmarks https://www.reddit.com/r/programming/comments/8jbfa7/naive_benchmark_treap_implementation_of_c_rus

Re: Found on proggit: simple treap language benchmark, includes D

2018-05-21 Thread ixid via Digitalmars-d
On Saturday, 19 May 2018 at 15:09:38 UTC, Joakim wrote: D does well, comes in second on Mac/Win/linux: https://github.com/frol/completely-unscientific-benchmarks https://www.reddit.com/r/programming/comments/8jbfa7/naive_benchmark_treap_implementation_of_c_rust/ Can any experts improve this to

Re: Sealed classes - would you want them in D? (v2)

2018-05-21 Thread Gheorghe Gabriel via Digitalmars-d
On Monday, 21 May 2018 at 15:07:39 UTC, KingJoffrey wrote: My suggestions are about resolving this, in order to attract more programmers to D, because I doubt I'm the only person in the world, that believes an object has a right to privacy. Of course you are not the only person that believes t

Re: Found on proggit: simple treap language benchmark, includes D

2018-05-21 Thread drug via Digitalmars-d
21.05.2018 17:11, Nerve пишет: Sorry for double-posting, but I've included a GC-enabled solution based on their Java solution, and have a pull request up that's a bit more idiomatic, pulling unnecessary static methods out as functions. It scores VERY HIGH across the board on their "naive" be

Re: Sealed classes - would you want them in D? (v2)

2018-05-21 Thread KingJoffrey via Digitalmars-d
On Monday, 21 May 2018 at 14:46:40 UTC, Sjoerd Nijboer wrote: Nope, I'm simply a bystander who sees lack of class scope as a "feature" of D that is usefull in some cases while not hurting idiomatic OOP as long as you only define a single class (+ unittests) inside a module. If you want that

Re: A pattern I'd like to see more of - Parsing template parameter tuples

2018-05-21 Thread Sjoerd Nijboer via Digitalmars-d
On Monday, 21 May 2018 at 14:36:32 UTC, Jacob Carlborg wrote: enum Options options = { foo: true, bar: false, a: 42, b: "guess what this does" }; SomeObject!options o; -- /Jacob Carlborg I like this especially if you mix it with: enum Options options = { foo: true, bar: false, a: 42, b: "g

Re: Sealed classes - would you want them in D? (v2)

2018-05-21 Thread KingJoffrey via Digitalmars-d
On Monday, 21 May 2018 at 14:46:40 UTC, Sjoerd Nijboer wrote: Also, I would verry much much like it if you would not resort to comparing me to "one of those facebook employees." It's just setting a mood for the conversation which no one likes, regardless what anyone thinks about facebook empl

Re: Sealed classes - would you want them in D? (v2)

2018-05-21 Thread Sjoerd Nijboer via Digitalmars-d
On Monday, 21 May 2018 at 14:30:21 UTC, KingJoffrey wrote: On Monday, 21 May 2018 at 13:39:12 UTC, Sjoerd Nijboer wrote: While you might say that a unittest shouldn't acces private members and only public members, there are plenty of testcases where one would want to write a unittest to set a

Re: Sealed classes - would you want them in D? (v2)

2018-05-21 Thread KingJoffrey via Digitalmars-d
On Monday, 21 May 2018 at 13:36:32 UTC, 12345swordy wrote: If you resort to mockery, then that means you have lost the argument. I prefer to think of it as sarcasm, not mockery. Sarcasm is a form of intelligent expression, to wield however you see fit (not unlike a module in D ;-) For me,

Re: A pattern I'd like to see more of - Parsing template parameter tuples

2018-05-21 Thread Jacob Carlborg via Digitalmars-d
On Monday, 21 May 2018 at 14:23:07 UTC, Steven Schveighoffer wrote: But how do you use it? SomeObject!(Options(true, false, 42, "guess what this does")) Yes, or if you want something more readable: enum Options options = { foo: true, bar: false, a: 42, b: "guess what this does" }; SomeOb

Re: Sealed classes - would you want them in D? (v2)

2018-05-21 Thread KingJoffrey via Digitalmars-d
On Monday, 21 May 2018 at 13:39:12 UTC, Sjoerd Nijboer wrote: While you might say that a unittest shouldn't acces private members and only public members, there are plenty of testcases where one would want to write a unittest to set a given variable via public function and then test if the ap

Re: A pattern I'd like to see more of - Parsing template parameter tuples

2018-05-21 Thread Steven Schveighoffer via Digitalmars-d
On 5/21/18 10:07 AM, Jacob Carlborg wrote: On Monday, 21 May 2018 at 00:13:26 UTC, Ethan wrote: Code for context: https://github.com/GooberMan/binderoo/blob/master/binderoo_client/d/src/binderoo/util/enumoptions.d Something struck me at DConf. I was watching the dxml talk and hearing about

Re: Found on proggit: simple treap language benchmark, includes D

2018-05-21 Thread Nerve via Digitalmars-d
On Sunday, 20 May 2018 at 15:30:37 UTC, Nerve wrote: I'll see if I can get it included so they can test it on their specific setup. Sorry for double-posting, but I've included a GC-enabled solution based on their Java solution, and have a pull request up that's a bit more idiomatic, pulling u

Re: A pattern I'd like to see more of - Parsing template parameter tuples

2018-05-21 Thread Jacob Carlborg via Digitalmars-d
On Monday, 21 May 2018 at 00:13:26 UTC, Ethan wrote: Code for context: https://github.com/GooberMan/binderoo/blob/master/binderoo_client/d/src/binderoo/util/enumoptions.d Something struck me at DConf. I was watching the dxml talk and hearing about all these things that weren't being implemente

Re: A pattern I'd like to see more of - Parsing template parameter tuples

2018-05-21 Thread Ethan via Digitalmars-d
On Monday, 21 May 2018 at 13:22:33 UTC, Steven Schveighoffer wrote: Filter was written before static foreach existed. This is a pretty low-hanging fruit if anyone wants to try it out. -Steve I've gone to the effort after all, I might as well just port my code across. I'll look in to it. Prob

Re: Sealed classes - would you want them in D? (v2)

2018-05-21 Thread 12345swordy via Digitalmars-d
On Monday, 21 May 2018 at 09:56:22 UTC, KingJoffrey wrote: On Monday, 21 May 2018 at 09:16:42 UTC, Dave Jones wrote: da dah dah da dah dah dahh da d .. . ... da dah.. ..da.. da ...dadada.da...dada. Thanks Dave. Your contributions to the discussion hav

Re: Sealed classes - would you want them in D? (v2)

2018-05-21 Thread Sjoerd Nijboer via Digitalmars-d
On Friday, 18 May 2018 at 15:57:06 UTC, bachmeier wrote: class A { private int x; private(this) int y; } Instead of such a syntax if this ever comes to be, we could just introduce a new keyword into the language. class A { private int x; closed int y; //closed for acces outside t

Re: A pattern I'd like to see more of - Parsing template parameter tuples

2018-05-21 Thread Steven Schveighoffer via Digitalmars-d
On 5/21/18 5:30 AM, Ethan wrote: On Monday, 21 May 2018 at 03:30:37 UTC, Paul Backus wrote: Am I missing something, or is this the same thing as `std.meta: Filter`? Nope, I am missing something. I don't find the std library documentation anywhere near as easy to look through as something lik

Re: CI buildbots

2018-05-21 Thread Steven Schveighoffer via Digitalmars-d
On 5/21/18 3:21 AM, Manu wrote: On 20 May 2018 at 21:46, Manu wrote: This CI situation with the DMD/druntime repos is not okay. It takes ages... **hours** sometimes, for CI to complete. It's all this 'auto-tester' one, which seems to lock up on the last few tests. This makes DMD is a rather un

Re: Help with DMD internals

2018-05-21 Thread Steven Schveighoffer via Digitalmars-d
On 5/20/18 9:49 PM, Manu wrote: On 20 May 2018 at 17:14, Walter Bright via Digitalmars-d wrote: On 5/20/2018 12:28 PM, Manu wrote: Is re-initialisation to 'init' part of destruction, No. or is it a separate post-process? (I feel it's a post-process) Yes, and only for delete. Why

Re: Error about constructor calls in loops/labels, but there are no loops and labels?

2018-05-21 Thread Steven Schveighoffer via Digitalmars-d
On 5/20/18 6:56 AM, Yuxuan Shui wrote: On Sunday, 20 May 2018 at 00:05:39 UTC, Jonathan M Davis wrote: because it tends to become very difficult to get right in all cases and results in situations where the programmer is forced to do something in order to make the compiler shut up Well, doesn

Re: Generate Ddoc without compiling?

2018-05-21 Thread Steven Schveighoffer via Digitalmars-d
On 5/21/18 8:37 AM, Jonathan M. Wilbur wrote: I want to put in a feature request, but I want to gauge whether it is even feasible or not, but a little background first: I am trying to create a Makefile to build the HTML documentation for a Dlang project. I would like to be able to update a sin

Generate Ddoc without compiling?

2018-05-21 Thread Jonathan M. Wilbur via Digitalmars-d
I want to put in a feature request, but I want to gauge whether it is even feasible or not, but a little background first: I am trying to create a Makefile to build the HTML documentation for a Dlang project. I would like to be able to update a single HTML file if the corresponding source chan

Re: auto: useful, annoying or bad practice?

2018-05-21 Thread Chris via Digitalmars-d
On Sunday, 20 May 2018 at 23:01:39 UTC, Charles Hixson wrote: auto has its uses, but it's wildly overused, especially in library code and documentation, and really, really, *really* much so in documentation examples. A lot of functions in `std.algorithm` are actually quite clear about it,

Re: eSoftTools OST to PST Converter

2018-05-21 Thread markcrook via Digitalmars-d
On Friday, 4 May 2018 at 08:01:24 UTC, avina wrote: Removes errors from OST corrupted file data without facing any problem. this software has very usable tool it easily repair Outlook OST file and convert Ost file into multiple formats like PST, EML, MSG, HTML, vCard, MBOX, EMLX. from emails, a

Re: Sealed classes - would you want them in D? (v2)

2018-05-21 Thread KingJoffrey via Digitalmars-d
On Monday, 21 May 2018 at 09:16:42 UTC, Dave Jones wrote: da dah dah da dah dah dahh da d .. . ... da dah.. ..da.. da ...dadada.da...dada. Thanks Dave. Your contributions to the discussion have been really insightful, and most valuable. I'm sure we

Re: A pattern I'd like to see more of - Parsing template parameter tuples

2018-05-21 Thread Ethan via Digitalmars-d
On Monday, 21 May 2018 at 01:53:20 UTC, Manu wrote: I don't really like that SomeObject() will be instantiated a crap load of times for every possible combination and order of options that a user might want to supply. How do you control the bloat in a way that people won't mess up frequently?

Re: A pattern I'd like to see more of - Parsing template parameter tuples

2018-05-21 Thread Ethan via Digitalmars-d
On Monday, 21 May 2018 at 03:30:37 UTC, Paul Backus wrote: Am I missing something, or is this the same thing as `std.meta: Filter`? Nope, I am missing something. I don't find the std library documentation anywhere near as easy to look through as something like cppreference.com, so I only ten

Re: Sealed classes - would you want them in D? (v2)

2018-05-21 Thread Dave Jones via Digitalmars-d
On Monday, 21 May 2018 at 03:19:34 UTC, KingJoffrey wrote: On Sunday, 20 May 2018 at 11:19:01 UTC, Dave Jones wrote: On Sunday, 20 May 2018 at 02:45:25 UTC, KingJoffrey wrote: On Saturday, 19 May 2018 at 17:38:48 UTC, Gheorghe Gabriel wrote: Anyway... feel free to misrepresent what I've said, e

Re: CI buildbots

2018-05-21 Thread Mike Franklin via Digitalmars-d
On Monday, 21 May 2018 at 07:21:31 UTC, Manu wrote: A few of those machines can build AND run the tests in 5-6 mintues. A lot under 10 minutes... Then there's a few that take 45+ minutes. Why are they in the pool? Is it really worth having 20 machines build the thing, especially when a few o

Re: CI buildbots

2018-05-21 Thread Manu via Digitalmars-d
On 20 May 2018 at 21:46, Manu wrote: > This CI situation with the DMD/druntime repos is not okay. > It takes ages... **hours** sometimes, for CI to complete. > It's all this 'auto-tester' one, which seems to lock up on the last few tests. > > This makes DMD is a rather unenjoyable project to contr

Re: A pattern I'd like to see more of - Parsing template parameter tuples

2018-05-21 Thread rikki cattermole via Digitalmars-d
On 21/05/2018 12:13 PM, Ethan wrote: Code for context: https://github.com/GooberMan/binderoo/blob/master/binderoo_client/d/src/binderoo/util/enumoptions.d Something struck me at DConf. I was watching the dxml talk and hearing about all these things that weren't being implemented for one reas