Re: Why are homepage examples too complicated?

2016-10-16 Thread Karabuta via Digitalmars-d
On Thursday, 13 October 2016 at 22:12:42 UTC, Guillaume Piolat wrote: On Thursday, 13 October 2016 at 19:06:26 UTC, Karabuta wrote: I agree, something friendly and familiar would be called for. Instead we have weird float-rounding programs. The goal of such program should be to push the read

Bug in header file generation

2016-10-16 Thread Satoshi via Digitalmars-d
Hello, can someone look at this quite simple bug in dmd please? https://issues.dlang.org/show_bug.cgi?id=16590 I cannot release non-opensource libraries without this.

Re: Bug in header file generation

2016-10-16 Thread Uplink_Coder via Digitalmars-d
On Saturday, 15 October 2016 at 06:51:44 UTC, Satoshi wrote: Hello, can someone look at this quite simple bug in dmd please? https://issues.dlang.org/show_bug.cgi?id=16590 I cannot release non-opensource libraries without this. You mean auto ref right ? please attach a small test-case. You ca

Re: Idea for a new tool

2016-10-16 Thread ketmar via Digitalmars-d
On Friday, 14 October 2016 at 13:17:39 UTC, Andrei Alexandrescu wrote: s/Sadly/Fortunately because now we have smart graduate students looking for cool projects/ ...like reimplementing the whole DMDFE for nothing. this tool would be useless without full-featured template and CTFE support (as

Re: core.intrinsics

2016-10-16 Thread Matthias Bentrup via Digitalmars-d
On Friday, 14 October 2016 at 15:42:22 UTC, David Nadlinger wrote: On Friday, 14 October 2016 at 13:07:10 UTC, Johan Engelen wrote: On Friday, 14 October 2016 at 12:55:17 UTC, Guillaume Piolat wrote: - this pointer is aligned to N bytes - this pointer doesn't alias with this pointer Do you m

Is this Windows rdmd issue reproducible?

2016-10-16 Thread Andrei Alexandrescu via Digitalmars-d
https://issues.dlang.org/show_bug.cgi?id=8507 Thanks! Andrei

Review manager wanted: core.vmm

2016-10-16 Thread Dmitry Olshansky via Digitalmars-d
The module aims to provide portable interface to virtual memory management unit of the OS. Some common recipes such as locking memory and allocating executable memory should be easily accessible. In general the task is next to impossible and therefore capabilities of the current OS are capture

Re: Code signing to help with Windows virus false positives

2016-10-16 Thread Bob Arnson via Digitalmars-d
On Tuesday, 11 October 2016 at 01:37:55 UTC, Martin Nowak wrote: Whatever makes more sense. From my very limited understanding .msi installers are natively understood installers in Windows, and the weapon of choice for robust and more professional installers. If innosetup is just another NSIS l

Re: Code signing to help with Windows virus false positives

2016-10-16 Thread Bob Arnson via Digitalmars-d
On Wednesday, 12 October 2016 at 06:39:05 UTC, Thomas Mader wrote: On Tuesday, 11 October 2016 at 06:09:03 UTC, Thomas Mader wrote: I worked with NSIS and InnoSetup. InnoSetup is much cleaner and easier. At work we switched from NSIS to InnoSetup and we create MSI packages from NSIS and InnoSet

UDA and trait for non-GC managed pointers

2016-10-16 Thread Nordlöw via Digitalmars-d
Is there a way to check if a pointer is supposed to point to non-GC allocated memory? I presume not. This is needed to prevent unnecessary calls to `GC.addRange` in containers with elements of a type that in turn is a container-like struct with non-GC allocated memory. If not, maybe we could

Re: Reducing the cost of autodecoding

2016-10-16 Thread Patrick Schluter via Digitalmars-d
On Saturday, 15 October 2016 at 00:50:08 UTC, Stefan Koch wrote: On Friday, 14 October 2016 at 20:47:39 UTC, Stefan Koch wrote: On Thursday, 13 October 2016 at 21:49:22 UTC, safety0ff wrote: Bad benchmark! Bad! -- Andrei Also, I suspect a benchmark with a larger loop body might not benefit a

Re: Reducing the cost of autodecoding

2016-10-16 Thread Patrick Schluter via Digitalmars-d
Oooops, I should not post after drinking 2 glasses of Châteauneuf-du-pape. That function does exactly the contrary of what popFront does. This one is conversion from dchar to multibyte not multibyte to dchar as you did. Sorry for the inconvenience.

Re: Old bugs

2016-10-16 Thread Martin Krejcirik via Digitalmars-d
Digital Mars C++ bug reports can be filed here: http://bugzilla.digitalmars.com/issues/ It's awfully slow.

Re: UDA and trait for non-GC managed pointers

2016-10-16 Thread Andrei Alexandrescu via Digitalmars-d
On 10/15/2016 12:22 PM, Nordlöw wrote: Is there a way to check if a pointer is supposed to point to non-GC allocated memory? I presume not. This is needed to prevent unnecessary calls to `GC.addRange` in containers with elements of a type that in turn is a container-like struct with non-GC alloca

Re: Reducing the cost of autodecoding

2016-10-16 Thread Andrei Alexandrescu via Digitalmars-d
On 10/15/2016 12:42 PM, Patrick Schluter wrote: Sorry if I do not participate on the testing as I don't have a proper compilation environment here at home. https://ldc.acomirei.ru Andrei

Re: UDA and trait for non-GC managed pointers

2016-10-16 Thread Nordlöw via Digitalmars-d
On Saturday, 15 October 2016 at 17:11:28 UTC, Andrei Alexandrescu wrote: Seems there'd be quite some annotational overhead. In the case of a C++-style vector it's just a matter of changing E* _ptr;// non-GC-allocated store pointer to @nogc E* _ptr; // GC-allo

Re: UDA and trait for non-GC managed pointers

2016-10-16 Thread Nordlöw via Digitalmars-d
On Saturday, 15 October 2016 at 17:19:53 UTC, Nordlöw wrote: E* _ptr;// non-GC-allocated store pointer to @nogc E* _ptr; // GC-allocated store pointer should, of course, be E* _ptr;// GC-allocated store pointer to @nogc E* _ptr;

Re: UDA and trait for non-GC managed pointers

2016-10-16 Thread ag0aep6g via Digitalmars-d
On 10/15/2016 07:19 PM, Nordlöw wrote: and then updating the relevant trait, such as `hasIndirections` or/and `hasAliasing`, to respect this attribute. How would those traits have to updated? An indirection is an indirection no matter if it points to GC memory or not. Maybe we'd need a new tra

Re: UDA and trait for non-GC managed pointers

2016-10-16 Thread Basile B. via Digitalmars-d
On Saturday, 15 October 2016 at 16:22:35 UTC, Nordlöw wrote: Is there a way to check if a pointer is supposed to point to non-GC allocated memory? I presume not. This is needed to prevent unnecessary calls to `GC.addRange` in containers with elements of a type that in turn is a container-like s

Re: UDA and trait for non-GC managed pointers

2016-10-16 Thread Nordlöw via Digitalmars-d
On Saturday, 15 October 2016 at 17:48:13 UTC, Basile B. wrote: To be honest I find this system way more useful that the function attribute @nogc. My trait is here (https://github.com/BBasile/iz/blob/master/import/iz/memory.d#L145) but it's quite similar to the one used in EMSI containers (with d

Re: Reducing the cost of autodecoding

2016-10-16 Thread Uplink_Coder via Digitalmars-d
It can also be written like this producing smaller code. But it the cost of slower decoding. dchar myFront(ref char[] str) pure { dchar c = cast(dchar) str.ptr[0]; if (c & 128) { if (c & 64) { int idx = 0; int l = charWidthTab.ptr[c - 192];

[OT] Re: UDA and trait for non-GC managed pointers

2016-10-16 Thread Basile B. via Digitalmars-d
On Saturday, 15 October 2016 at 18:03:54 UTC, Nordlöw wrote: On Saturday, 15 October 2016 at 17:48:13 UTC, Basile B. wrote: To be honest I find this system way more useful that the function attribute @nogc. My trait is here (https://github.com/BBasile/iz/blob/master/import/iz/memory.d#L145) but

Re: Reducing the cost of autodecoding

2016-10-16 Thread Patrick Schluter via Digitalmars-d
On Saturday, 15 October 2016 at 18:40:11 UTC, Uplink_Coder wrote: It can also be written like this producing smaller code. But it the cost of slower decoding. dchar myFront(ref char[] str) pure { dchar c = cast(dchar) str.ptr[0]; if (c & 128) { if (c & 64) {

Re: Reducing the cost of autodecoding

2016-10-16 Thread Patrick Schluter via Digitalmars-d
At least with that lookup table below, you can detect isolated continuation bytes (192 and 193) and invalid codes (above 244). __gshared static immutable ubyte[] charWidthTab = [ 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,

Re: Reducing the cost of autodecoding

2016-10-16 Thread Patrick Schluter via Digitalmars-d
On Saturday, 15 October 2016 at 19:07:50 UTC, Patrick Schluter wrote: At least with that lookup table below, you can detect isolated continuation bytes (192 and 193) and invalid codes (above 244). 192 and 193 can never appear in a UTF-8 text, they are overlongs not continuation bytes. Continua

Re: Reducing the cost of autodecoding

2016-10-16 Thread safety0ff via Digitalmars-d
On Saturday, 15 October 2016 at 19:00:12 UTC, Patrick Schluter wrote: Just a question. Do encoding errors not have to be detected or is validity of the string guaranteed? AFAIK they have to be detected, otherwise it would be a regression.

Re: UDA and trait for non-GC managed pointers

2016-10-16 Thread Nordlöw via Digitalmars-d
On Saturday, 15 October 2016 at 17:48:13 UTC, Basile B. wrote: I agree. We are several people to do it already. I've started to during last spring (see https://forum.dlang.org/post/ficbsdfokvbvslatm...@forum.dlang.org). So far I use "@NoGc" and "@TellGcRange" added. Why does the template argu

Re: Reducing the cost of autodecoding

2016-10-16 Thread Uplink_Coder via Digitalmars-d
On Saturday, 15 October 2016 at 19:07:50 UTC, Patrick Schluter wrote: At least with that lookup table below, you can detect isolated continuation bytes (192 and 193) and invalid codes (above 244). __gshared static immutable ubyte[] charWidthTab = [ 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2

Re: Why are homepage examples too complicated?

2016-10-16 Thread Adam D. Ruppe via Digitalmars-d
On Friday, 14 October 2016 at 21:18:45 UTC, Karabuta wrote: The "!" is more trouble than good (IMO for the majority). @Adam Roupe did a talk at previous DConf which he testifies to this. Couldn't be me, I don't think I ever talked about it... and I'm actually pro-!. It is a perfectly fine sy

Re: Advanced const propagation for structs

2016-10-16 Thread Dicebot via Digitalmars-d
On 10/16/2016 11:36 AM, Ilya Yaroshenko wrote: > Hi, > > Extern precompiled Mir GLAS requires additional API changes. > Reduced example: > > ```d > struct S(T) > { > size_t len; > T ptr; > } > > auto foo(S!(const(double)*) sl) > { > } > > S!(double*) a; > const S!(double*) b; > > foo(a); /

Re: [Semi OT] - "Garbage In, Garbage Out: Arguing about Undefined Behavior..."

2016-10-16 Thread John Colvin via Digitalmars-d
On Saturday, 15 October 2016 at 00:11:35 UTC, deadalnix wrote: His argument about indices was also weak as it tells more about the need to use size_t rather than 32 bits indices when doing indices computation. Yeah I found that part of the talk interesting but overall unconvincing. Just using

Re: Reducing the cost of autodecoding

2016-10-16 Thread Patrick Schluter via Digitalmars-d
On Sunday, 16 October 2016 at 10:05:37 UTC, Patrick Schluter wrote: On Sunday, 16 October 2016 at 08:43:23 UTC, Uplink_Coder wrote: On Sunday, 16 October 2016 at 07:59:16 UTC, Patrick Schluter wrote: This looks quite slow. We already have a correct version in utf.decodeImpl. The goal here was

Re: Advanced const propagation for structs

2016-10-16 Thread Nicholas Wilson via Digitalmars-d
On Sunday, 16 October 2016 at 08:36:17 UTC, Ilya Yaroshenko wrote: Hi, Extern precompiled Mir GLAS requires additional API changes. Reduced example: ```d struct S(T) { size_t len; T ptr; } auto foo(S!(const(double)*) sl) { } S!(double*) a; const S!(double*) b; foo(a); // fails foo(b); //

Tuple enhancement

2016-10-16 Thread Andrei Alexandrescu via Digitalmars-d
I was thinking it would be handy if tuples had a way to access a field by name at runtime. E.g.: Tuple!(int, "a", double, "b") t; string x = condition ? "a" : "b"; double v = t.get!string(x, 3.14); The get method takes the field name and the type of the presumed field, and it returns the value

Re: Tuple enhancement

2016-10-16 Thread Dmitry Olshansky via Digitalmars-d
On 10/16/16 3:58 PM, Andrei Alexandrescu wrote: I was thinking it would be handy if tuples had a way to access a field by name at runtime. E.g.: Tuple!(int, "a", double, "b") t; string x = condition ? "a" : "b"; double v = t.get!string(x, 3.14); I swear I've seen a pull request merged that add

Re: Why are homepage examples too complicated?

2016-10-16 Thread Nick Treleaven via Digitalmars-d
On Sunday, 16 October 2016 at 16:07:19 UTC, Nick Treleaven wrote: // Chain functions together to round a string parsed as a real number alias roundString = pipe!(to!real, std.math.round, to!string); In fact if we're just printing the rounded numbers, we can drop to!string and inline roundStri

Re: Why are homepage examples too complicated?

2016-10-16 Thread Nick Treleaven via Digitalmars-d
On Thursday, 13 October 2016 at 19:06:26 UTC, Karabuta wrote: // Replace anything that looks like a real // number with the rounded equivalent. stdin .byLine .map!(l => l.replaceAll!(c => c.hit.round) (reFloatingPoint)) .each!wri

Re: Tuple enhancement

2016-10-16 Thread Andrei Alexandrescu via Digitalmars-d
On 10/16/2016 11:07 AM, Dmitry Olshansky wrote: On 10/16/16 3:58 PM, Andrei Alexandrescu wrote: I was thinking it would be handy if tuples had a way to access a field by name at runtime. E.g.: Tuple!(int, "a", double, "b") t; string x = condition ? "a" : "b"; double v = t.get!string(x, 3.14);

Re: Advanced const propagation for structs

2016-10-16 Thread Ilya Yaroshenko via Digitalmars-d
On Sunday, 16 October 2016 at 13:17:09 UTC, Nicholas Wilson wrote: On Sunday, 16 October 2016 at 08:36:17 UTC, Ilya Yaroshenko wrote: Hi, Extern precompiled Mir GLAS requires additional API changes. Reduced example: ```d struct S(T) { size_t len; T ptr; } auto foo(S!(const(double)*) sl) {

Re: Reducing the cost of autodecoding

2016-10-16 Thread Patrick Schluter via Digitalmars-d
On Sunday, 16 October 2016 at 10:05:37 UTC, Patrick Schluter wrote: Next step will be to loop for length 2,3,4, with or without your table. Ok now the looped version which doesn't need the lookup table. This one assembles in 72 lines of assembly (25 lines only for the exception code). dch

Re: Tuple enhancement

2016-10-16 Thread Sebastiaan Koppe via Digitalmars-d
On Sunday, 16 October 2016 at 13:58:51 UTC, Andrei Alexandrescu wrote: I was thinking it would be handy if tuples had a way to access a field by name at runtime. E.g.: Tuple!(int, "a", double, "b") t; string x = condition ? "a" : "b"; double v = t.get!string(x, 3.14); That would mean that tup

Re: core.intrinsics

2016-10-16 Thread Uplink_Coder via Digitalmars-d
On Saturday, 15 October 2016 at 10:17:09 UTC, Matthias Bentrup wrote: You could turn "hints" that can possibly create invalid code automatically into assertions in non-release builds. Or let the user add an assertion and use the "turn assert() into assume()" idea for release builds. I canno

Re: UDA and trait for non-GC managed pointers

2016-10-16 Thread Basile B. via Digitalmars-d
On Saturday, 15 October 2016 at 19:36:19 UTC, Nordlöw wrote: On Saturday, 15 October 2016 at 17:48:13 UTC, Basile B. wrote: I agree. We are several people to do it already. I've started to during last spring (see https://forum.dlang.org/post/ficbsdfokvbvslatm...@forum.dlang.org). So far I use

Any Windows repro of this old rdmd issue?

2016-10-16 Thread Andrei Alexandrescu via Digitalmars-d
https://issues.dlang.org/show_bug.cgi?id=8507 Thanks! -- Andrei

Re: Meta issue:

2016-10-16 Thread Brad Roberts via Digitalmars-d
On 10/14/2016 3:56 PM, Andrei Alexandrescu via Digitalmars-d wrote: So I just added https://issues.dlang.org/show_bug.cgi?id=16614, which is a meta documentation issue for bootcamp. I'd appreciate it if any of you folks kept in mind to add separate issues (and make this one depend on them) whene

Re: Reducing the cost of autodecoding

2016-10-16 Thread Stefan Koch via Digitalmars-d
On Saturday, 15 October 2016 at 19:42:03 UTC, Uplink_Coder wrote: On Saturday, 15 October 2016 at 19:07:50 UTC, Patrick Schluter wrote: At least with that lookup table below, you can detect isolated continuation bytes (192 and 193) and invalid codes (above 244). __gshared static immutable ubyt

Re: New encryption block...

2016-10-16 Thread Era Scarecrow via Digitalmars-d
On Wednesday, 12 October 2016 at 10:34:52 UTC, Era Scarecrow wrote: Anyways, 16bit replacement, extending to 64bit via reordering, and 8 unique xor's between stages. Once I get the 576 block finished (1 for salt) I'll probably publish my ugly code for consideration and to be torn apart for sec

Re: UDA and trait for non-GC managed pointers

2016-10-16 Thread Chris Wright via Digitalmars-d
On Sat, 15 Oct 2016 16:22:35 +, Nordlöw wrote: > Is there a way to check if a pointer is supposed to point to non-GC > allocated memory? You can check if it *does* point to GC-allocated memory if you use GC internals -- the Pool struct is what you want to look at, and the lookup methods ass

Re: Reducing the cost of autodecoding

2016-10-16 Thread Patrick Schluter via Digitalmars-d
On Saturday, 15 October 2016 at 21:21:22 UTC, Stefan Koch wrote: On Saturday, 15 October 2016 at 19:42:03 UTC, Uplink_Coder wrote: On Saturday, 15 October 2016 at 19:07:50 UTC, Patrick Schluter wrote: At least with that lookup table below, you can detect isolated continuation bytes (192 and 193

Re: Reducing the cost of autodecoding

2016-10-16 Thread Patrick Schluter via Digitalmars-d
Here my version. It's probably not the shortest (100 ligns of assembly with LDC) but it is correct and has following properties: - Performance proportional to the encoding length - Detects Invalid byte sequences - Detects Overlong encodings - Detects Invalid code points I put the exception to be

Advanced const propagation for structs

2016-10-16 Thread Ilya Yaroshenko via Digitalmars-d
Hi, Extern precompiled Mir GLAS requires additional API changes. Reduced example: ```d struct S(T) { size_t len; T ptr; } auto foo(S!(const(double)*) sl) { } S!(double*) a; const S!(double*) b; foo(a); // fails foo(b); // fails ``` https://issues.dlang.org/show_bug.cgi?id=16616

Re: Reducing the cost of autodecoding

2016-10-16 Thread Uplink_Coder via Digitalmars-d
On Sunday, 16 October 2016 at 07:59:16 UTC, Patrick Schluter wrote: Here my version. It's probably not the shortest (100 ligns of assembly with LDC) but it is correct and has following properties: - Performance proportional to the encoding length - Detects Invalid byte sequences - Detects Overl

Re: UDA and trait for non-GC managed pointers

2016-10-16 Thread Nordlöw via Digitalmars-d
On Sunday, 16 October 2016 at 04:14:42 UTC, Chris Wright wrote: On Sat, 15 Oct 2016 16:22:35 +, Nordlöw wrote: Is there a way to check if a pointer is supposed to point to non-GC allocated memory? You can check if it *does* point to GC-allocated memory if you use GC internals -- the Pool

Re: Reducing the cost of autodecoding

2016-10-16 Thread NoBrainer via Digitalmars-d
On Sunday, 16 October 2016 at 08:43:23 UTC, Uplink_Coder wrote: This looks quite slow. We already have a correct version in utf.decodeImpl. The goal here was to find a small and fast alternative. A: What's 2 + 2? B: 3 A: That's wrong. B: But incredibly fast.

Re: Reducing the cost of autodecoding

2016-10-16 Thread Patrick Schluter via Digitalmars-d
On Sunday, 16 October 2016 at 08:43:23 UTC, Uplink_Coder wrote: On Sunday, 16 October 2016 at 07:59:16 UTC, Patrick Schluter wrote: This looks quite slow. We already have a correct version in utf.decodeImpl. The goal here was to find a small and fast alternative. I know but it has to be corr

Re: [Semi OT] - "Garbage In, Garbage Out: Arguing about Undefined Behavior..."

2016-10-16 Thread Guillaume Chatelet via Digitalmars-d
On Saturday, 15 October 2016 at 00:11:35 UTC, deadalnix wrote: On Thursday, 13 October 2016 at 15:19:17 UTC, Guillaume Chatelet wrote: Pretty cool talk by Chandler Carruth on undefined behavior. It reminds me of a bunch of conversations than happened on this mailing list. I bet Walter will like

Re: Tuple enhancement

2016-10-16 Thread Chris Wright via Digitalmars-d
On Sun, 16 Oct 2016 18:51:06 +, Sebastiaan Koppe wrote: > On Sunday, 16 October 2016 at 13:58:51 UTC, Andrei Alexandrescu wrote: >> I was thinking it would be handy if tuples had a way to access a field >> by name at runtime. E.g.: >> >> Tuple!(int, "a", double, "b") t; >> string x = condition

Re: Examples Wanted: Usages of "body" as a Symbol Name

2016-10-16 Thread Chris Wright via Digitalmars-d
On Wed, 05 Oct 2016 02:11:14 +, Meta wrote: > I'm currently writing up a DIP to propose removing `body` as a keyword > to allow it to be used for variable names, functions, etc. I'm looking > for examples and contexts where `body` would normally be used as a > variable, function name, alias, e

Re: Advanced const propagation for structs

2016-10-16 Thread Timon Gehr via Digitalmars-d
On 16.10.2016 14:18, Dicebot wrote: This issue has been discussed before in context of custom containers and AFAIK so far no one was able to come up with even theoretical concept of how it can be possibly addressed. Actually, I did propose a solution before. Just allow annotations on template

I close BIP27. I won't be pursuing BIPs anymore

2016-10-16 Thread deadalnix via Digitalmars-d
Long story short, it si clearly a waste of time. Qualifying the process would be an understatement. Some specifically DIP27 has been written in Feb 2913, following various discussion at that time. I pushed it at the time. I moved it to the new git DIP repository. Got mostly irrelevant feedback

Re: Tuple enhancement

2016-10-16 Thread sarn via Digitalmars-d
On Sunday, 16 October 2016 at 13:58:51 UTC, Andrei Alexandrescu wrote: I was thinking it would be handy if tuples had a way to access a field by name at runtime. E.g.: Tuple!(int, "a", double, "b") t; string x = condition ? "a" : "b"; double v = t.get!string(x, 3.14); The get method takes the

Re: Tuple enhancement

2016-10-16 Thread Temtaime via Digitalmars-d
On Sunday, 16 October 2016 at 20:11:01 UTC, Chris Wright wrote: On Sun, 16 Oct 2016 18:51:06 +, Sebastiaan Koppe wrote: On Sunday, 16 October 2016 at 13:58:51 UTC, Andrei Alexandrescu wrote: I was thinking it would be handy if tuples had a way to access a field by name at runtime. E.g.:

Re: I close BIP27. I won't be pursuing BIPs anymore

2016-10-16 Thread Nick Sabalausky via Digitalmars-d
On Sunday, 16 October 2016 at 22:17:15 UTC, deadalnix wrote: Long story short, it si clearly a waste of time. Qualifying the process would be an understatement. Some specifically DIP27 has been written in Feb 2913, following various discussion at that time. I pushed it at the time. I moved it

Re: Tuple enhancement

2016-10-16 Thread Kapps via Digitalmars-d
On Sunday, 16 October 2016 at 18:51:06 UTC, Sebastiaan Koppe wrote: On Sunday, 16 October 2016 at 13:58:51 UTC, Andrei Alexandrescu wrote: I was thinking it would be handy if tuples had a way to access a field by name at runtime. E.g.: Tuple!(int, "a", double, "b") t; string x = condition ? "a

Re: I close BIP27. I won't be pursuing BIPs anymore

2016-10-16 Thread Dicebot via Digitalmars-d
Listen, I understand you are not interested in spending loads of time on boring polishing of formalities. We all do this in our spare time so that is to be expected. But what you say here only shows that process is working as intended - and that it is not suitable for you. Quote from readme:

Re: I close BIP27. I won't be pursuing BIPs anymore

2016-10-16 Thread deadalnix via Digitalmars-d
On Monday, 17 October 2016 at 02:08:44 UTC, Dicebot wrote: Listen, I understand you are not interested in spending loads of time on boring polishing of formalities. We all do this in our spare time so that is to be expected. I spent fuck 4;5 years on that thing. Don't come at me saying I'm

Re: Advanced const propagation for structs

2016-10-16 Thread Dicebot via Digitalmars-d
On 10/17/2016 12:57 AM, Timon Gehr wrote: > On 16.10.2016 14:18, Dicebot wrote: >> This issue has been discussed before in context of custom containers and >> AFAIK so far no one was able to come up with even theoretical concept of >> how it can be possibly addressed. > > Actually, I did propose a

Re: [OT] Re: UDA and trait for non-GC managed pointers

2016-10-16 Thread Nick Sabalausky via Digitalmars-d
On 10/15/2016 02:50 PM, Basile B. wrote: I've given up with the idea of proposing my stuff in phobos. About memory there would also have be: - allocators-based factory (https://github.com/dlang/phobos/pull/4062) - @nogc dispose (https://github.com/dlang/phobos/pull/4351) But each time the PR wa

Re: I close BIP27. I won't be pursuing BIPs anymore

2016-10-16 Thread Walter Bright via Digitalmars-d
On 10/16/2016 3:17 PM, deadalnix wrote: Long story short, it si clearly a waste of time. Qualifying the process would be an understatement. Some specifically DIP27 has been written in Feb 2913, following various discussion at that time. I pushed it at the time. I moved it to the new git DIP repo

Re: I close BIP27. I won't be pursuing BIPs anymore

2016-10-16 Thread Jacob Carlborg via Digitalmars-d
On 2016-10-17 04:08, Dicebot wrote: Listen, I understand you are not interested in spending loads of time on boring polishing of formalities. We all do this in our spare time so that is to be expected. But what you say here only shows that process is working as intended Well, the designed of t

Re: I close DIP27. I won't be pursuing DIPs anymore

2016-10-16 Thread Andrei Alexandrescu via Digitalmars-d
On 10/17/2016 01:02 AM, Walter Bright wrote: On 10/16/2016 3:17 PM, deadalnix wrote: Long story short, it si clearly a waste of time. Qualifying the process would be an understatement. Some specifically DIP27 has been written in Feb 2913, following various discussion at that time. I pushed it a

Re: I close BIP27. I won't be pursuing BIPs anymore

2016-10-16 Thread Walter Bright via Digitalmars-d
On 10/16/2016 11:39 PM, Jacob Carlborg wrote: Most likely Andrei already merged Walter's PR for DMD for this DIP, > three weeks ago after being open for two hours. What are you referring to?