Re: #dbugfix 18234

2018-06-12 Thread Basile B. via Digitalmars-d
On Monday, 11 June 2018 at 19:05:21 UTC, Basile B. wrote: On Monday, 11 June 2018 at 16:37:05 UTC, Basile B. wrote: Russel Winder, "Shove" and finally myself, have encountered a strange linker error with almost always the same symbols related to a template instance... See: - https://forum.d

Re: newCTFE: perliminary delegate support is in!

2018-06-12 Thread Stefan Koch via Digitalmars-d
On Wednesday, 13 June 2018 at 06:10:26 UTC, Cym13 wrote: That's very nice! Out of curiosity, what was the reason to avoid a conventional stack? Or was it a consequence more than a design decision? (If you've explained it before, feel free to just throw the old post at me) It was an initial

Re: newCTFE: perliminary delegate support is in!

2018-06-12 Thread Per Nordlöw via Digitalmars-d
On Wednesday, 13 June 2018 at 05:57:31 UTC, Stefan Koch wrote: Good day ladies and gentleman, it is my distinct please to announce that a new feature just landed in newCTFE. !!! DELEGATES !!! Nice!

Re: newCTFE: perliminary delegate support is in!

2018-06-12 Thread Cym13 via Digitalmars-d
On Wednesday, 13 June 2018 at 05:57:31 UTC, Stefan Koch wrote: Good day ladies and gentleman, it is my distinct please to announce that a new feature just landed in newCTFE. !!! DELEGATES !!! this means the following code will now work: int square_of_x_plus_x(int x) pure { int passThroug

newCTFE: perliminary delegate support is in!

2018-06-12 Thread Stefan Koch via Digitalmars-d
Good day ladies and gentleman, it is my distinct please to announce that a new feature just landed in newCTFE. !!! DELEGATES !!! this means the following code will now work: int square_of_x_plus_x(int x) pure { int passThrough(int y) pure { assert(x == y); int y2 = x;

Re: What's happening with the `in` storage class

2018-06-12 Thread Vijay Nayar via Digitalmars-d
On Saturday, 9 June 2018 at 02:38:14 UTC, SonicFreak94 wrote: On Saturday, 9 June 2018 at 02:17:18 UTC, Adam D. Ruppe wrote: On Saturday, 9 June 2018 at 02:13:00 UTC, Walter Bright wrote: But it was never enforced, meaning that suddenly enforcing it is just going to break code left and right.

Re: betterC error?

2018-06-12 Thread Walter Bright via Digitalmars-d
On 6/12/2018 7:31 PM, makedgreatagain wrote: Thanks for all you help, the betteC is really useful and handy. That's great to hear!

Re: betterC error?

2018-06-12 Thread makedgreatagain via Digitalmars-d
On Tuesday, 12 June 2018 at 18:41:57 UTC, Walter Bright wrote: On 6/12/2018 5:13 AM, makedgreatagain wrote: extern(C) int main(string[] args){ Need to declare main() like those C people do: extern (C) int main(int argc, char** argv){ Thanks for all you help, the betteC is really useful an

Re: IOS support status

2018-06-12 Thread Joakim via Digitalmars-d
On Wednesday, 13 June 2018 at 02:18:55 UTC, makedgreatagain wrote: On Tuesday, 12 June 2018 at 04:23:51 UTC, Joakim wrote: On Monday, 11 June 2018 at 04:02:15 UTC, Joakim wrote: On Monday, 11 June 2018 at 02:58:28 UTC, makedgreatagain wrote: On Thursday, 7 June 2018 at 14:12:15 UTC, Joakim wro

Re: IOS support status

2018-06-12 Thread makedgreatagain via Digitalmars-d
On Tuesday, 12 June 2018 at 04:23:51 UTC, Joakim wrote: On Monday, 11 June 2018 at 04:02:15 UTC, Joakim wrote: On Monday, 11 June 2018 at 02:58:28 UTC, makedgreatagain wrote: On Thursday, 7 June 2018 at 14:12:15 UTC, Joakim wrote: [...] Thanks for your help. The side thing is betterC change

Re: Is this a bug with __traits(derivedMembers)?

2018-06-12 Thread Steven Schveighoffer via Digitalmars-d
On 6/12/18 4:19 PM, bauss wrote: On Tuesday, 12 June 2018 at 17:24:31 UTC, Basile B. wrote: I don't know if more doc is necessary. The warning is at its right place IMO. If they're reserved the compiler should honestly throw a warning at the very least. People should have to read through th

Re: Is this a bug with __traits(derivedMembers)?

2018-06-12 Thread bauss via Digitalmars-d
On Tuesday, 12 June 2018 at 17:24:31 UTC, Basile B. wrote: On Tuesday, 12 June 2018 at 15:42:50 UTC, Bauss wrote: On Tuesday, 12 June 2018 at 14:37:19 UTC, ag0aep6g wrote: On Tuesday, 12 June 2018 at 13:40:45 UTC, bauss wrote: See the following: https://run.dlang.io/is/uQ21PH (I have tried wi

Re: betterC error?

2018-06-12 Thread Walter Bright via Digitalmars-d
On 6/12/2018 5:13 AM, makedgreatagain wrote: extern(C) int main(string[] args){ Need to declare main() like those C people do: extern (C) int main(int argc, char** argv){

Re: std.signals non-object delegates

2018-06-12 Thread Jacob Shtokolov via Digitalmars-d
On Tuesday, 12 June 2018 at 15:39:52 UTC, Zoadian wrote: On Tuesday, 12 June 2018 at 15:21:49 UTC, Jacob Shtokolov wrote: On Tuesday, 12 June 2018 at 14:33:57 UTC, Steven Schveighoffer wrote: [...] Thank you Steve! Then I'll try to fire a bug report and propose my own solution to this probl

Re: Is this a bug with __traits(derivedMembers)?

2018-06-12 Thread Basile B. via Digitalmars-d
On Tuesday, 12 June 2018 at 15:42:50 UTC, Bauss wrote: On Tuesday, 12 June 2018 at 14:37:19 UTC, ag0aep6g wrote: On Tuesday, 12 June 2018 at 13:40:45 UTC, bauss wrote: See the following: https://run.dlang.io/is/uQ21PH (I have tried with allMembers too.) It's like it won't pick up the member t

Re: betterC error?

2018-06-12 Thread SrMordred via Digitalmars-d
Or use C malloc. We really should provide better tools to create arrays using C malloc (for those who want them). Like a betterC toolkit. -Steve Indeed, i´m creating my own "toolkit" for betterC stuff like alloc!Type(length); (much safer than malloc!) and other utilities :)

Re: Is this a bug with __traits(derivedMembers)?

2018-06-12 Thread Bauss via Digitalmars-d
On Tuesday, 12 June 2018 at 14:37:19 UTC, ag0aep6g wrote: On Tuesday, 12 June 2018 at 13:40:45 UTC, bauss wrote: See the following: https://run.dlang.io/is/uQ21PH (I have tried with allMembers too.) It's like it won't pick up the member that is added using a mixin at line 22. ``` mixin("uby

Re: std.signals non-object delegates

2018-06-12 Thread Zoadian via Digitalmars-d
On Tuesday, 12 June 2018 at 15:21:49 UTC, Jacob Shtokolov wrote: On Tuesday, 12 June 2018 at 14:33:57 UTC, Steven Schveighoffer wrote: [...] Thank you Steve! Then I'll try to fire a bug report and propose my own solution to this problem. Probably there is no need to track down the non-object

Re: std.signals non-object delegates

2018-06-12 Thread Jacob Shtokolov via Digitalmars-d
On Tuesday, 12 June 2018 at 14:33:57 UTC, Steven Schveighoffer wrote: On 6/12/18 9:04 AM, Jacob Shtokolov wrote: [...] I'll respond to say that I don't know a lot of people who use signals and slots. It's a very old part of Phobos, and I think a lot of people here aren't familiar with it.

Re: betterC error?

2018-06-12 Thread Steven Schveighoffer via Digitalmars-d
On 6/12/18 10:18 AM, SrMordred wrote: On Tuesday, 12 June 2018 at 12:29:17 UTC, rikki cattermole wrote: (...) this line: byte[] data = [0, 1]; is an dynamic array allocated with GC. But if you declare as a static array like byte[2] data = [0, 1]; than its not GC allocated. Or use C mall

Re: Is this a bug with __traits(derivedMembers)?

2018-06-12 Thread ag0aep6g via Digitalmars-d
On Tuesday, 12 June 2018 at 13:40:45 UTC, bauss wrote: See the following: https://run.dlang.io/is/uQ21PH (I have tried with allMembers too.) It's like it won't pick up the member that is added using a mixin at line 22. ``` mixin("ubyte[" ~ to!string(__PADDING_SIZE__) ~ "] __PADDING__" ~ mem

Re: std.signals non-object delegates

2018-06-12 Thread Steven Schveighoffer via Digitalmars-d
On 6/12/18 9:04 AM, Jacob Shtokolov wrote: On Thursday, 7 June 2018 at 12:56:55 UTC, Jacob Shtokolov wrote: Hello, I'd like to start a discussion about the standard std.signals library. [...] 5 days passed and no one answered 😒 I'll respond to say that I don't know a lot of people who use

Re: betterC error?

2018-06-12 Thread SrMordred via Digitalmars-d
On Tuesday, 12 June 2018 at 12:29:17 UTC, rikki cattermole wrote: (...) this line: byte[] data = [0, 1]; is an dynamic array allocated with GC. But if you declare as a static array like byte[2] data = [0, 1]; than its not GC allocated.

Re: Is it a bug that a parent class that access its own private members from derived classes gets deprecation warning?

2018-06-12 Thread bauss via Digitalmars-d
On Monday, 11 June 2018 at 15:41:57 UTC, Steven Schveighoffer wrote: On 4/11/18 3:13 PM, bauss wrote: On Wednesday, 11 April 2018 at 17:58:25 UTC, Jonathan M Davis wrote: On Sunday, April 08, 2018 13:00:02 bauss via Digitalmars-d wrote: [...] I don't know. It could be argued either way. I th

Re: Is this a bug with __traits(derivedMembers)?

2018-06-12 Thread bauss via Digitalmars-d
On Tuesday, 12 June 2018 at 13:40:45 UTC, bauss wrote: See the following: https://run.dlang.io/is/uQ21PH Note: Look at the comments in the code.

Is this a bug with __traits(derivedMembers)?

2018-06-12 Thread bauss via Digitalmars-d
See the following: https://run.dlang.io/is/uQ21PH (I have tried with allMembers too.) It's like it won't pick up the member that is added using a mixin at line 22. ``` mixin("ubyte[" ~ to!string(__PADDING_SIZE__) ~ "] __PADDING__" ~ member ~ ";"); ``` As you can see if you take sizeof fro

Re: grain: mir, LLVM, GPU, CUDA, dynamic neural networks

2018-06-12 Thread jmh530 via Digitalmars-d
On Tuesday, 12 June 2018 at 11:10:30 UTC, Per Nordlöw wrote: I just discovered https://github.com/ShigekiKarita/grain which seems like a very ambitious and active project for making dynamic neural networks run on the GPU using D in front of mir and CUDA. Are there any long-term goals around

Re: std.signals non-object delegates

2018-06-12 Thread Jacob Shtokolov via Digitalmars-d
On Thursday, 7 June 2018 at 12:56:55 UTC, Jacob Shtokolov wrote: Hello, I'd like to start a discussion about the standard std.signals library. [...] 5 days passed and no one answered 😒 Maybe the guys who are contributing to DRuntime could answer: is that possible to attach GC dispose even

Re: betterC error?

2018-06-12 Thread rikki cattermole via Digitalmars-d
On 13/06/2018 12:13 AM, makedgreatagain wrote: this very simple code can not build with betterC void test(byte[] x){ } extern(C) int main(string[] args){   byte[] data = [0, 1]; test(data); return 0; } Well yes, dynamic arrays require the GC and hence TypeInfo. Slices don't,

betterC error?

2018-06-12 Thread makedgreatagain via Digitalmars-d
this very simple code can not build with betterC void test(byte[] x){ } extern(C) int main(string[] args){ byte[] data = [0, 1]; test(data); return 0; }

Re: DIP 1006 - Preliminary Review Round 1

2018-06-12 Thread Leandro Lucarella via Digitalmars-d
On Tuesday, 6 March 2018 at 10:17:42 UTC, Walter Bright wrote: On 3/6/2018 1:58 AM, Jonathan M Davis wrote: [...] The entire point of making assert a core language feature was so that the compiler could take advantage of it to generate better code. It's been like that for D since day 1. It h

Re: IOS support status

2018-06-12 Thread makedgreatagain via Digitalmars-d
On Tuesday, 12 June 2018 at 04:23:51 UTC, Joakim wrote: On Monday, 11 June 2018 at 04:02:15 UTC, Joakim wrote: On Monday, 11 June 2018 at 02:58:28 UTC, makedgreatagain wrote: On Thursday, 7 June 2018 at 14:12:15 UTC, Joakim wrote: [...] Thanks for your help. The side thing is betterC change

grain: mir, LLVM, GPU, CUDA, dynamic neural networks

2018-06-12 Thread Per Nordlöw via Digitalmars-d
I just discovered https://github.com/ShigekiKarita/grain which seems like a very ambitious and active project for making dynamic neural networks run on the GPU using D in front of mir and CUDA. Are there any long-term goals around this project except for the title? It would great if someo