Re: Isn't it about time for D3?

2017-06-15 Thread Sebastien Alaiwan via Digitalmars-d
On Thursday, 15 June 2017 at 18:02:54 UTC, Moritz Maxeiner wrote: We need automatic deterministic destruction (and we partially have it, using scope(exit) and structs RAII). Not sure what exactly you are expecting, tbh. I'm not advocating for a language change here. As I said, we already have

Re: qualified type names for mixins

2017-06-15 Thread Jonathan Marler via Digitalmars-d
On Friday, 16 June 2017 at 03:57:17 UTC, Adam D. Ruppe wrote: On Friday, 16 June 2017 at 03:26:28 UTC, Jonathan Marler wrote: If you have a better idea on how to implement the bitfields template that would be great. The real WTF is that it returns a string in the first place. It should

Re: qualified type names for mixins

2017-06-15 Thread Adam D. Ruppe via Digitalmars-d
On Friday, 16 June 2017 at 03:26:28 UTC, Jonathan Marler wrote: If you have a better idea on how to implement the bitfields template that would be great. The real WTF is that it returns a string in the first place. It should return a struct. Here, take a look at this: - /++

D needs to get its shit together!

2017-06-15 Thread Mike B Johnson via Digitalmars-d
Seriously! D is starting to gain momentum and if things are not stabilized it's going to slow D down. 1 ==>> The VERY FIRST order of business is very simple: When a new user goes to start using D for the first time, D is a PITA to get working! Don't believe me?!?! Just try getting D

Re: qualified type names for mixins

2017-06-15 Thread Jonathan Marler via Digitalmars-d
On Thursday, 15 June 2017 at 22:59:23 UTC, Adam D. Ruppe wrote: On Thursday, 15 June 2017 at 22:36:56 UTC, Jonathan Marler wrote: Doesn't work with eponymous templates, like std.traits.Flag. For example, make this code work: That uses `.stringof` which means it is useless for anything

Re: DCompute is now in the master branch of LDC

2017-06-15 Thread Nicholas Wilson via Digitalmars-d-announce
On Friday, 16 June 2017 at 01:19:56 UTC, solidstate1991 wrote: Other than I'm planning to using DCompute to implement "GPU blitter" (as I couldn't find any hardware acceleration API for raster graphics besides the long obsolete DirectDraw), but I'm also thinking on if I could implement some

[Issue 17053] [Programming in D for C Programmers] C supports array initialization; section is misleading

2017-06-15 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17053 --- Comment #2 from Gavin Higham --- Yep, looks like the page was updated and this is no longer an issue. --

[Issue 17052] [Programming in D for C Programmers] C supports designated initialization; section is misleading

2017-06-15 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17052 --- Comment #2 from Gavin Higham --- Looks good now! --

[Issue 17051] [Programming in D for C Programmers] C supports anonymous structs; section is misleading.

2017-06-15 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17051 --- Comment #2 from Gavin Higham --- I think the docs have been corrected since I opened this issue. Everything looks fine now :) --

Re: DCompute is now in the master branch of LDC

2017-06-15 Thread solidstate1991 via Digitalmars-d-announce
On Wednesday, 14 June 2017 at 05:43:01 UTC, Manu wrote: See, I would have a very different conversation: N: DCompute M: Awesome, I've been waiting! instead of: N: D-GPU M: What's that... is it, like, a rendering library? N: No, it's a 'compute' library. M: Ohhh, awesome! I've been

[Issue 8107] Float literals are not specified as they are implemented

2017-06-15 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=8107 github-bugzi...@puremagic.com changed: What|Removed |Added Status|NEW |RESOLVED

[Issue 8107] Float literals are not specified as they are implemented

2017-06-15 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=8107 --- Comment #2 from github-bugzi...@puremagic.com --- Commits pushed to master at https://github.com/dlang/dlang.org https://github.com/dlang/dlang.org/commit/cc7880723c224d8b11428f1f157b80cbb69054fa Fix Issue 8107 - Float literals are not specified

Re: qualified type names for mixins

2017-06-15 Thread Adam D. Ruppe via Digitalmars-d
On Thursday, 15 June 2017 at 22:36:56 UTC, Jonathan Marler wrote: Doesn't work with eponymous templates, like std.traits.Flag. For example, make this code work: That uses `.stringof` which means it is useless for anything except informational printing. Post the code you are actually doing

Re: qualified type names for mixins

2017-06-15 Thread Jonathan Marler via Digitalmars-d
On Thursday, 15 June 2017 at 21:54:44 UTC, Adam D. Ruppe wrote: On Thursday, 15 June 2017 at 21:26:38 UTC, Jonathan Marler wrote: The common use case is when you'd like to mixin a type when it is passed to a template. That's also the most common wrong case. If it is passed to a template, you

[Issue 17512] [REG 2.073] Error on bad interplay of "auto ref" and "return" attribute deduction.

2017-06-15 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17512 johanenge...@weka.io changed: What|Removed |Added Summary|Unclear error message when |[REG 2.073] Error on bad

[Issue 17512] Unclear error message when returning a reference to local variable

2017-06-15 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17512 --- Comment #2 from johanenge...@weka.io --- Or... it _is_ a frontend bug, as the compiler should deduce that the return type cannot be 'ref'. It correctly deduces that ("does not return any indirections") but because it added "return" function

[Issue 17512] [REG 2.073] wrong deduction of "return" function attribute

2017-06-15 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17512 johanenge...@weka.io changed: What|Removed |Added Severity|regression |normal --- Comment #1 from

[Issue 17512] Unclear error message when returning a reference to local variable

2017-06-15 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17512 johanenge...@weka.io changed: What|Removed |Added Summary|[REG 2.073] wrong deduction |Unclear error message when

Re: Lubeck: Hight Level Linear Algebra for Dlang

2017-06-15 Thread Nordlöw via Digitalmars-d-announce
On Thursday, 15 June 2017 at 14:23:29 UTC, jmh530 wrote: mir.ndslice.slice has CanonicalMatrix/ContinguousMatrix, and similar versions for vectors and tensors and all the algorithms that operate on ranges in mir seem to work fine with them. Ilya has expressed his intention in the past for

Re: qualified type names for mixins

2017-06-15 Thread Adam D. Ruppe via Digitalmars-d
On Thursday, 15 June 2017 at 21:26:38 UTC, Jonathan Marler wrote: The common use case is when you'd like to mixin a type when it is passed to a template. That's also the most common wrong case. If it is passed to a template, you have a local name that you should use because it will work

[Issue 17512] [REG 2.073] wrong deduction of "return" function attribute

2017-06-15 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17512 johanenge...@weka.io changed: What|Removed |Added Keywords|rejects-valid | --

[Issue 17512] [REG 2.073] wrong deduction of "return" function attribute

2017-06-15 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17512 johanenge...@weka.io changed: What|Removed |Added Keywords||industry, rejects-valid --

[Issue 17512] New: [REG 2.073] wrong deduction of "return" function attribute

2017-06-15 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17512 Issue ID: 17512 Summary: [REG 2.073] wrong deduction of "return" function attribute Product: D Version: D2 Hardware: All OS: All Status: NEW

Re: qualified type names for mixins

2017-06-15 Thread Jonathan Marler via Digitalmars-d
On Thursday, 15 June 2017 at 20:34:39 UTC, Adam D. Ruppe wrote: On Thursday, 15 June 2017 at 19:15:55 UTC, Jonathan Marler wrote: I've found that the fullyQualifiedName template in std.traits is a good tool for creating mixin code, however, it doesn't always work. Why is it useful? I suggest

Re: Help with an algorithm!

2017-06-15 Thread Ivan Kazmenko via Digitalmars-d-learn
On Thursday, 15 June 2017 at 13:41:07 UTC, MGW wrote: On Thursday, 15 June 2017 at 13:16:24 UTC, CRAIG DILLABAUGH wrote: The purpose - search of changes in file system. Sorting is a slow operation as well as hashing. Creation of a tree, is equally in sorting. So far the best result:

Re: qualified type names for mixins

2017-06-15 Thread Adam D. Ruppe via Digitalmars-d
On Thursday, 15 June 2017 at 19:15:55 UTC, Jonathan Marler wrote: I've found that the fullyQualifiedName template in std.traits is a good tool for creating mixin code, however, it doesn't always work. Why is it useful? I suggest you are probably doing it wrong.

[Issue 17511] [REG 2.075a] std.xml puts grand-children into items

2017-06-15 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17511 --- Comment #1 from github-bugzi...@puremagic.com --- Commit pushed to master at https://github.com/dlang/phobos https://github.com/dlang/phobos/commit/c7b6b87333fe731962f38a8a6ac0a3b5f675be06 test against regression fixes issue 17511 --

Re: Help compiling discord bot from dub, vibe.d linker errors

2017-06-15 Thread Sebastiaan Koppe via Digitalmars-d
On Thursday, 15 June 2017 at 15:50:06 UTC, Anonymouse wrote: I wanted to make a Hello World discord bot, and I found dscord[1] on dub. It even has an example bot Jeff[2], but it won't build. The machine is running Manjaro/Arch linux x64. Is that vibe.d not linking with openssl? There are more

Re: GStreamer and D

2017-06-15 Thread Jay Norwood via Digitalmars-d-learn
wow! I hadn't tried this gtkd library before. I was hunting for the gstreamer in particular. The hello_world alsa-sink audio example failed on Windows. The debugger indicates no sink, which I guess is reasonable. With very little effort, though, I converted the hello_world example to

[Issue 17502] [REG2.064] Out contract in class method causes dmd segfault.

2017-06-15 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17502 github-bugzi...@puremagic.com changed: What|Removed |Added Status|NEW |RESOLVED

[Issue 17502] [REG2.064] Out contract in class method causes dmd segfault.

2017-06-15 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17502 --- Comment #4 from github-bugzi...@puremagic.com --- Commits pushed to master at https://github.com/dlang/dmd https://github.com/dlang/dmd/commit/99b7e49ad99ac2cb3e64e053a45e4663271ffae7 Fix issue 17502: Allow no parameters in out contract for auto

qualified type names for mixins

2017-06-15 Thread Jonathan Marler via Digitalmars-d
I've found that the fullyQualifiedName template in std.traits is a good tool for creating mixin code, however, it doesn't always work. - import std.traits; struct GlobalFoo { int x; } // WORKS mixin(fullyQualifiedName!GlobalFoo ~ " globalFoo;"); unittest { static struct Foo

[Issue 17511] New: [REG 2.075a] std.xml puts grand-children into items

2017-06-15 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17511 Issue ID: 17511 Summary: [REG 2.075a] std.xml puts grand-children into items Product: D Version: D2 Hardware: x86_64 OS: Linux Status: NEW Keywords: pull

Re: Implementing interfaces using alias this

2017-06-15 Thread Jesse Phillips via Digitalmars-d-learn
On Wednesday, 14 June 2017 at 09:34:27 UTC, Balagopal Komarath wrote: Why doesn't this work? The Test!Duck type has a void quack() method but the compiler says it is not implemented. You question was answered, but you can do this: -- interface IDuck { void

Re: Deprecating phobos modules [was: Re: Isn't it about time for D3?]

2017-06-15 Thread Jesse Phillips via Digitalmars-d
On Wednesday, 14 June 2017 at 09:38:06 UTC, Martin Nowak wrote: On Saturday, 10 June 2017 at 23:30:18 UTC, Liam McGillivray wrote: I'd be in favor of finally deprecating all sub-standard phobos module (moving them to https://github.com/dlang/undeaD) to make room for good implementations.

Re: The DLang Tour translated into Russian

2017-06-15 Thread Eugene Wissner via Digitalmars-d-announce
On Thursday, 15 June 2017 at 18:19:35 UTC, Murzistor wrote: On Thursday, 15 June 2017 at 16:42:08 UTC, Eugene Wissner wrote: Здесь английская версия с описанием процесса: https://github.com/dlang-tour/english/blob/master/README.md русская:

Re: The DLang Tour translated into Russian

2017-06-15 Thread Murzistor via Digitalmars-d-announce
On Thursday, 15 June 2017 at 16:42:08 UTC, Eugene Wissner wrote: Здесь английская версия с описанием процесса: https://github.com/dlang-tour/english/blob/master/README.md русская: https://github.com/dlang-tour/russian/blob/master/README.md Английскую правку приняли, а для русской написано:

Re: Isn't it about time for D3?

2017-06-15 Thread Moritz Maxeiner via Digitalmars-d
On Thursday, 15 June 2017 at 17:06:31 UTC, Sebastien Alaiwan wrote: On Thursday, 15 June 2017 at 15:04:26 UTC, Suliman wrote: Should D really move to GC-free? I think there is already enough GC-free language on the market. D even now is very complected language, and adding ways to manually

Re: Help compiling discord bot from dub, vibe.d linker errors

2017-06-15 Thread Anonymouse via Digitalmars-d
On Thursday, 15 June 2017 at 15:50:06 UTC, Anonymouse wrote: I wanted to make a Hello World discord bot, and I found dscord[1] on dub. It even has an example bot Jeff[2], but it won't build. The machine is running Manjaro/Arch linux x64. Apologies, this was meant to go into Learn. I'll post

Re: Isn't it about time for D3?

2017-06-15 Thread Sebastien Alaiwan via Digitalmars-d
On Thursday, 15 June 2017 at 15:04:26 UTC, Suliman wrote: Should D really move to GC-free? I think there is already enough GC-free language on the market. D even now is very complected language, and adding ways to manually managing memory will make it's more complicated. We need automatic

[Issue 17269] formattedWrite of struct with Nullable value fails

2017-06-15 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17269 Andre changed: What|Removed |Added CC||an...@s-e-a-p.de --- Comment #4

[Issue 17510] New: How could 509 be a byte value?

2017-06-15 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17510 Issue ID: 17510 Summary: How could 509 be a byte value? Product: D Version: D2 Hardware: All URL: http://dlang.org/ OS: All Status: NEW

Re: The DLang Tour translated into Russian

2017-06-15 Thread Eugene Wissner via Digitalmars-d-announce
On Thursday, 15 June 2017 at 16:22:53 UTC, Murzistor wrote: On Thursday, 15 June 2017 at 09:46:14 UTC, Dmitry wrote: Создайте pull request'ы к английской и русскоязычной версии, пожалуйста. Понятия не имею, как это делается. Если что, по-английски читаю, вроде... Здесь английская версия с

[Issue 17509] New: [typo] "refered to" ("referred to")

2017-06-15 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17509 Issue ID: 17509 Summary: [typo] "refered to" ("referred to") Product: D Version: D2 Hardware: All URL: http://dlang.org/ OS: All Status: NEW

Re: The DLang Tour translated into Russian

2017-06-15 Thread Murzistor via Digitalmars-d-announce
On Thursday, 15 June 2017 at 09:46:14 UTC, Dmitry wrote: Создайте pull request'ы к английской и русскоязычной версии, пожалуйста. Понятия не имею, как это делается. Если что, по-английски читаю, вроде...

Re: Deprecating phobos modules [was: Re: Isn't it about time for D3?]

2017-06-15 Thread Seb via Digitalmars-d
On Wednesday, 14 June 2017 at 09:38:06 UTC, Martin Nowak wrote: I'd be in favor of finally deprecating all sub-standard phobos module (moving them to https://github.com/dlang/undeaD) to make room for good implementations. Having a vacant place might be more encouraging than to wait for

Re: Isn't it about time for D3?

2017-06-15 Thread Wulfklaue via Digitalmars-d
On Thursday, 15 June 2017 at 15:04:26 UTC, Suliman wrote: Should D really move to GC-free? I think there is already enough GC-free language on the market. D even now is very complected language, and adding ways to manually managing memory will make it's more complicated. A lot of people need

Re: auto decoding rant

2017-06-15 Thread Jonathan Shamir via Digitalmars-d
On Thursday, 15 June 2017 at 15:50:42 UTC, Seb wrote: On Thursday, 15 June 2017 at 15:47:54 UTC, Jonathan Shamir wrote: Also note I can't cast to char[] in compile time? What's the reason for that? Have a look at: https://dlang.org/phobos/std_utf.html#byCodeUnit

Re: auto decoding rant

2017-06-15 Thread Jonathan M Davis via Digitalmars-d
On Thursday, June 15, 2017 15:47:54 Jonathan Shamir via Digitalmars-d wrote: > I see this is a recurring rant (I apologize if this is a > repeating topic, I'm new to the forums). Here's an example of > something that should be simple in D but isn't: > > enum string PATTERN = "abcd"; > immutable

Re: auto decoding rant

2017-06-15 Thread Seb via Digitalmars-d
On Thursday, 15 June 2017 at 15:47:54 UTC, Jonathan Shamir wrote: Also note I can't cast to char[] in compile time? What's the reason for that? Have a look at: https://dlang.org/phobos/std_utf.html#byCodeUnit https://dlang.org/phobos/std_utf.html#byChar

Help compiling discord bot from dub, vibe.d linker errors

2017-06-15 Thread Anonymouse via Digitalmars-d
I wanted to make a Hello World discord bot, and I found dscord[1] on dub. It even has an example bot Jeff[2], but it won't build. The machine is running Manjaro/Arch linux x64. $ ./build.py Building with 0 plugins... Building jeff... ... dscord ~master: target for configuration

auto decoding rant

2017-06-15 Thread Jonathan Shamir via Digitalmars-d
I see this is a recurring rant (I apologize if this is a repeating topic, I'm new to the forums). Here's an example of something that should be simple in D but isn't: enum string PATTERN = "abcd"; immutable char[10] repeatingPattern = PATTERN.cycle().takeExactly(10).array(); The fact that

Re: alias this and shadowing

2017-06-15 Thread Adam D. Ruppe via Digitalmars-d
On Thursday, 15 June 2017 at 15:01:27 UTC, Jonathan Shamir wrote: To quote Andrei, if it looks like it should work, it should. (Also something about turtles). Hmm, interestingly, even if you explicitly merge the overloads with `alias foo s.foo;` (which is required btw, see:

alias this and shadowing

2017-06-15 Thread Jonathan Shamir via Digitalmars-d
I think the following example is legitimate code that should work: struct S1 { void foo() { writeln("S1.foo()"); } void foo(ulong x) { writefln("S1.foo(%d)", x); } } struct S2 { S1 s; alias s this; void foo(string str) { writeln("S2.foo(%s)",

Re: Isn't it about time for D3?

2017-06-15 Thread Suliman via Digitalmars-d
Should D really move to GC-free? I think there is already enough GC-free language on the market. D even now is very complected language, and adding ways to manually managing memory will make it's more complicated. A lot of people need more powerful static-typing alternative to Python/C# for

Re: Help with an algorithm!

2017-06-15 Thread CRAIG DILLABAUGH via Digitalmars-d-learn
On Thursday, 15 June 2017 at 13:41:07 UTC, MGW wrote: On Thursday, 15 June 2017 at 13:16:24 UTC, CRAIG DILLABAUGH wrote: The purpose - search of changes in file system. Sorting is a slow operation as well as hashing. Creation of a tree, is equally in sorting. So far the best result:

Re: Lubeck: Hight Level Linear Algebra for Dlang

2017-06-15 Thread jmh530 via Digitalmars-d-announce
On Thursday, 15 June 2017 at 13:44:33 UTC, Nordlöw wrote: On Thursday, 15 June 2017 at 12:22:25 UTC, Nordlöw wrote: On Tuesday, 13 June 2017 at 08:26:20 UTC, 9il wrote: [1] http://code.dlang.org/packages/lubeck https://github.com/kaleidicassociates/lubeck/tree/master/example Nice. Will

[Issue 17508] optlink 8.00.17 crash at EIP=0040F60A

2017-06-15 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17508 Martin Nowak changed: What|Removed |Added Priority|P1 |P2 Hardware|x86_64

[Issue 17508] New: optlink 8.00.17 crash at EIP=0040F60A

2017-06-15 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17508 Issue ID: 17508 Summary: optlink 8.00.17 crash at EIP=0040F60A Product: D Version: D2 Hardware: x86_64 OS: Linux Status: NEW Severity: enhancement

Re: anyone using msgpackrpc-d ? it's currently broken and doesn't seem maintained

2017-06-15 Thread Poyeyo via Digitalmars-d
On Monday, 12 June 2017 at 18:12:38 UTC, Timothee Cour wrote: any help on this would be most welcome: https://github.com/msgpack-rpc/msgpack-rpc-d/issues/16 Unfortunately I find the RPC support in D lacking. Having a good RPC integration for D is key for production use of D where one wants

Re: Lubeck: Hight Level Linear Algebra for Dlang

2017-06-15 Thread Nordlöw via Digitalmars-d-announce
On Thursday, 15 June 2017 at 12:22:25 UTC, Nordlöw wrote: On Tuesday, 13 June 2017 at 08:26:20 UTC, 9il wrote: [1] http://code.dlang.org/packages/lubeck https://github.com/kaleidicassociates/lubeck/tree/master/example Nice. Will there be any matrix, vector, scalar, types with operator

Re: Help with an algorithm!

2017-06-15 Thread MGW via Digitalmars-d-learn
On Thursday, 15 June 2017 at 13:16:24 UTC, CRAIG DILLABAUGH wrote: The purpose - search of changes in file system. Sorting is a slow operation as well as hashing. Creation of a tree, is equally in sorting. So far the best result: string[] rez; foreach(str; m2) { bool fFind; int

Re: Help with an algorithm!

2017-06-15 Thread CRAIG DILLABAUGH via Digitalmars-d-learn
On Thursday, 15 June 2017 at 11:48:54 UTC, Ivan Kazmenko wrote: On Thursday, 15 June 2017 at 06:06:01 UTC, MGW wrote: There are two arrays of string [] mas1, mas2; Size of each about 5M lines. By the size they different, but lines in both match for 95%. It is necessary to find all lines in an

[Issue 17507] New: Associative Array range operations should be marked @safe

2017-06-15 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17507 Issue ID: 17507 Summary: Associative Array range operations should be marked @safe Product: D Version: D2 Hardware: All OS: All Status: NEW

[Issue 11176] array.ptr in @safe code may point past end of array

2017-06-15 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=11176 greenify changed: What|Removed |Added CC||greeen...@gmail.com ---

[Issue 11176] array.ptr in @safe code may point past end of array

2017-06-15 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=11176 Steven Schveighoffer changed: What|Removed |Added Status|NEW |RESOLVED

Re: Isn't it about time for D3?

2017-06-15 Thread Ola Fosheim Grostad via Digitalmars-d
On Wednesday, 14 June 2017 at 22:01:38 UTC, bachmeier wrote: It's a bigger problem for D than for those languages. If you introduce too many changes, the tools stop working, and we don't have the manpower to fix them. The same goes for libraries. A language with a larger group of developers,

Re: Lubeck: Hight Level Linear Algebra for Dlang

2017-06-15 Thread Nordlöw via Digitalmars-d-announce
On Tuesday, 13 June 2017 at 08:26:20 UTC, 9il wrote: [1] http://code.dlang.org/packages/lubeck https://github.com/kaleidicassociates/lubeck/tree/master/example Nice. Will there be any matrix, vector, scalar, types with operator overloads?

Re: Isn't it about time for D3?

2017-06-15 Thread jmh530 via Digitalmars-d
On Wednesday, 14 June 2017 at 12:08:16 UTC, Mike wrote: * immutable by default I have to admit I always get confused why people get so invested in this. It seems like you would have to completely redesign everything related to std.range/std.algorithm.

Re: Help with an algorithm!

2017-06-15 Thread Ivan Kazmenko via Digitalmars-d-learn
On Thursday, 15 June 2017 at 06:06:01 UTC, MGW wrote: There are two arrays of string [] mas1, mas2; Size of each about 5M lines. By the size they different, but lines in both match for 95%. It is necessary to find all lines in an array of mas2 which differ from mas1. The principal criterion -

Re: Isn't it about time for D3?

2017-06-15 Thread ketmar via Digitalmars-d
Moritz Maxeiner wrote: Is D perfect? No, not by any stretch of the definition, but it is still (by far) the least worst choice out there, no matter how good the tooling for other languages is or becomes. exactly my feelings! ;-)

Re: Isn't it about time for D3?

2017-06-15 Thread Moritz Maxeiner via Digitalmars-d
On Thursday, 15 June 2017 at 07:32:42 UTC, Russel Winder wrote: The GC is the single major factor for D in a world of C++17, Rust, and Go: An opinion. Mine is this: The two major factors for D are (and have been for as long as I've been using it): 1. Productivity (i.e. focusing on writing

[Issue 16659] Clarify mutating while iterating rules

2017-06-15 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16659 greensunn...@gmail.com changed: What|Removed |Added Assignee|alexandru.razva...@gmail.co |greensunn...@gmail.com

Re: Getters/setters generator

2017-06-15 Thread Eugene Wissner via Digitalmars-d-announce
On Tuesday, 13 June 2017 at 21:49:53 UTC, jmh530 wrote: On Tuesday, 13 June 2017 at 20:45:34 UTC, jmh530 wrote: Fair point. I just was playing around with it today and was like, oh that's pretty easy. It was only when I was trying to see if anyone else had done anything like this that I came

Re: proposal: reading multiple files with dmd -stdin and allow specifying (fake) file names

2017-06-15 Thread Kagamin via Digitalmars-d
Wouldn't it be better done at the lexer level: it needs to reset line count, see https://issues.dlang.org/show_bug.cgi?id=2660#c13

Re: MS-COFF/PDB support in LLVM/LDC, where are we at?

2017-06-15 Thread Kagamin via Digitalmars-d
https://github.com/ldc-developers/ldc/issues/1716 this?

Re: The DLang Tour translated into Russian

2017-06-15 Thread Dmitry via Digitalmars-d-announce
On Wednesday, 14 June 2017 at 06:54:23 UTC, Vadim Lopatin wrote: Кто-нибудь из переводчиков хочет написать статью на Хабре? В принципе, я мог бы заняться, но не раньше следующей недели. Если кто-то хочет раньше - пишите.

Re: The DLang Tour translated into Russian

2017-06-15 Thread Dmitry via Digitalmars-d-announce
On Thursday, 15 June 2017 at 03:54:53 UTC, Murzistor wrote: Спасибо за поддержку такого замечательного языка! И спасибо его создателям! Я ошибку нашёл в коде: https://tour.dlang.org/tour/ru/basics/interfaces auto dog = new Animal; // "создание" экземпляра интерфейса Animal animal = dog;

Re: Implementing interfaces using alias this

2017-06-15 Thread Balagopal Komarath via Digitalmars-d-learn
On Thursday, 15 June 2017 at 07:12:56 UTC, Biotronic wrote: Here however, is a solution that works for simple examples. This is awesome. Very generic. Thanks.

Re: anyone using msgpackrpc-d ? it's currently broken and doesn't seem maintained

2017-06-15 Thread lobo via Digitalmars-d
On Thursday, 15 June 2017 at 04:14:22 UTC, Timothee Cour wrote: Msgpack rpc with vibe.d works. We used it. you mean with msgpackrpc-d? If so, it works, until you run into https://github.com/msgpack-rpc/msgpack-rpc-d/issues/16 (when server sends >= 4090 bytes, client hangs forever). we

D and building libraries, breaking changes, etc.

2017-06-15 Thread Russel Winder via Digitalmars-d
SCons is beginning to gear up to releasing version 3. In looking at the D tooling, I have found something of an inconsistency that would lead to a breaking change. SCons 2 → 3 would be a good place to do this, but it would require short-circuiting SCons' usual deprecation process. Currently the

Re: Isn't it about time for D3?

2017-06-15 Thread ketmar via Digitalmars-d
Wulfklaue wrote: On Wednesday, 14 June 2017 at 21:20:58 UTC, ketmar wrote: yeah. D should silently miscompile old code too: it seems that this is exactly what people want! Please point out the people who advocate for D silently miscompiling old code... Because i have yet to see anybody in

Re: Isn't it about time for D3?

2017-06-15 Thread Wulfklaue via Digitalmars-d
On Wednesday, 14 June 2017 at 21:20:58 UTC, ketmar wrote: yeah. D should silently miscompile old code too: it seems that this is exactly what people want! Please point out the people who advocate for D silently miscompiling old code... Because i have yet to see anybody in this topic advocate

Re: Isn't it about time for D3?

2017-06-15 Thread Russel Winder via Digitalmars-d
On Wed, 2017-06-14 at 21:55 +, bachmeier via Digitalmars-d wrote: > […] > > I'm not saying all old code should compile without changes, just > that it should compile with only minor changes. I know that in > some cases new releases of DMD have stopped compiling pieces of > my code that

Re: anyone using msgpackrpc-d ? it's currently broken and doesn't seem maintained

2017-06-15 Thread Wulfklaue via Digitalmars-d
On Thursday, 15 June 2017 at 04:14:22 UTC, Timothee Cour wrote: not sure what asdf is? I assume its this. https://en.wikipedia.org/wiki/Advanced_Scientific_Data_Format A file format with a YAML header followed by binary or ascii data. Human readable in design but still has binary/ascii

Re: Implementing interfaces using alias this

2017-06-15 Thread Biotronic via Digitalmars-d-learn
On Wednesday, 14 June 2017 at 09:34:27 UTC, Balagopal Komarath wrote: void main() { Test!Duck d; } As has been pointed out at length by others here, it's simply not how alias this is intended to work. I do see some arguments in favor of working that way, but I'm not sure what's the

Re: MS-COFF/PDB support in LLVM/LDC, where are we at?

2017-06-15 Thread Nicholas Wilson via Digitalmars-d
On Thursday, 15 June 2017 at 01:34:01 UTC, Manu wrote: Hey people, I haven't checked in for a while, I'm yet again tempted to use D for a small work thing, but I'll need LDC for it, and debuginfo needs to work or it's a non-starter. Does anyone know where that stuff stands? What are the

[Issue 10233] [Tracker] Grammar issues

2017-06-15 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=10233 Issue 10233 depends on issue 15556, which changed state. Issue 15556 Summary: Script line missing from lexical specification https://issues.dlang.org/show_bug.cgi?id=15556 What|Removed |Added

[Issue 15556] Script line missing from lexical specification

2017-06-15 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15556 greensunn...@gmail.com changed: What|Removed |Added Status|NEW |RESOLVED CC|

[Issue 17043] Formatting of std.traits table is pretty unreadable.

2017-06-15 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17043 greensunn...@gmail.com changed: What|Removed |Added Status|NEW |RESOLVED CC|

[Issue 8107] Float literals are not specified as they are implemented

2017-06-15 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=8107 greensunn...@gmail.com changed: What|Removed |Added Keywords||pull CC|

Help with an algorithm!

2017-06-15 Thread MGW via Digitalmars-d-learn
There are two arrays of string [] mas1, mas2; Size of each about 5M lines. By the size they different, but lines in both match for 95%. It is necessary to find all lines in an array of mas2 which differ from mas1. The principal criterion - speed. There are the 8th core processor and it is good

[Issue 16659] Clarify mutating while iterating rules

2017-06-15 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16659 greensunn...@gmail.com changed: What|Removed |Added Keywords||pull CC|