[Issue 18936] New: Internal error: dmd/backend/cgxmm.c 684

2018-06-02 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=18936 Issue ID: 18936 Summary: Internal error: dmd/backend/cgxmm.c 684 Product: D Version: D2 Hardware: All OS: All Status: NEW Severity: regression

Re: how to define infix function

2018-06-02 Thread Simen Kjærås via Digitalmars-d-learn
On Saturday, 2 June 2018 at 22:09:49 UTC, Neia Neutuladh wrote: On Saturday, 2 June 2018 at 21:44:39 UTC, greatsam4sure wrote: Sorry for the typo is it possible to define infix function in D 3.min(5)// 3: where min is a function, works in D 3 min 5 // does not work. thanks in advance This

Re: how to define infix function

2018-06-02 Thread greatsam4sure via Digitalmars-d-learn
On Saturday, 2 June 2018 at 22:01:02 UTC, Ali Çehreli wrote: On 06/02/2018 02:44 PM, greatsam4sure wrote: > is it possible to define infix function in D > > 3.min(5)// 3: where min is a function, works in D > 3 min 5 // does not work. This is called universal function call syntax (UFCS) in D.

Re: New programming paradigm

2018-06-02 Thread DigitalDesigns via Digitalmars-d-learn
On Thursday, 7 September 2017 at 22:53:31 UTC, Biotronic wrote: On Thursday, 7 September 2017 at 16:55:02 UTC, EntangledQuanta wrote: Sorry, I think you missed the point completely... or I didn't explain things very well. I don't think I did - your new explanation didn't change my

Re: how to define infix function

2018-06-02 Thread Neia Neutuladh via Digitalmars-d-learn
On Saturday, 2 June 2018 at 21:44:39 UTC, greatsam4sure wrote: Sorry for the typo is it possible to define infix function in D 3.min(5)// 3: where min is a function, works in D 3 min 5 // does not work. thanks in advance This is a horrible abuse of D's operator overloading discovered by

Re: how to define infix function

2018-06-02 Thread Ali Çehreli via Digitalmars-d-learn
On 06/02/2018 02:44 PM, greatsam4sure wrote: > is it possible to define infix function in D > > 3.min(5)// 3: where min is a function, works in D > 3 min 5 // does not work. This is called universal function call syntax (UFCS) in D. The idea is simple: You can pull the first argument out as if

how to define infix function

2018-06-02 Thread greatsam4sure via Digitalmars-d-learn
Sorry for the typo is it possible to define infix function in D 3.min(5)// 3: where min is a function, works in D 3 min 5 // does not work. thanks in advance

Re: Nice code.dlang.org

2018-06-02 Thread Bastiaan Veelo via Digitalmars-d
On Saturday, 2 June 2018 at 21:27:11 UTC, Dmitry Olshansky wrote: P.S. It’s a shame you couldn’t come this time, it was a blast! And better code.dlang.org is just one of gems. Thanks. You're right. I'll be back though, that I know for sure :-)

how to definte infinix function

2018-06-02 Thread greatsam4sure via Digitalmars-d-learn
is it possible to definite infix function in D 3.min(5)// 3 where min is a function works in D 3 min 5 // does not work. thanks in advance

Re: Nice code.dlang.org

2018-06-02 Thread Dmitry Olshansky via Digitalmars-d
On Saturday, 2 June 2018 at 21:13:59 UTC, Bastiaan Veelo wrote: I don't know since when https://code.dlang.org/ looks the way it does, with the top most popular, most recently updated and most recently added packages on the front page, but I like it a lot! Very nice! I believe that was

Nice code.dlang.org

2018-06-02 Thread Bastiaan Veelo via Digitalmars-d
I don't know since when https://code.dlang.org/ looks the way it does, with the top most popular, most recently updated and most recently added packages on the front page, but I like it a lot! Very nice!

Re: cycle dependencies

2018-06-02 Thread Simen Kjærås via Digitalmars-d
On Saturday, 2 June 2018 at 17:17:02 UTC, Neia Neutuladh wrote: On Friday, 1 June 2018 at 17:59:21 UTC, Steven Schveighoffer wrote: The .di file is just an interface, it doesn't know what's actually compiled in the binary. To put it another way, the compiler only generates a ModuleInfo (or

Re: GDC on Travis-CI

2018-06-02 Thread crimaniak via Digitalmars-d-learn
On Saturday, 2 June 2018 at 19:48:36 UTC, Matthias Klumpp wrote: @crimaniak: If you really want to build with all compilers, there is a workaround for this issue that does not involve you supporting ancient D versions, and that is to actually use Debian's GDC on Travis. I use this

Re: Orange serializer/deserializer

2018-06-02 Thread Jacob Carlborg via Digitalmars-d-learn
On 2018-06-02 03:30, IntegratedDimensions wrote: How can I modify the pre serialization and post serialization values? I need to transform some variables that are stored but I would like to do this easily "inline"(would be cool to be able to provide a delegate to do the transformations at the

Re: GDC on Travis-CI

2018-06-02 Thread Matthias Klumpp via Digitalmars-d-learn
On Saturday, 2 June 2018 at 16:27:38 UTC, Seb wrote: On Saturday, 2 June 2018 at 16:04:09 UTC, Matthias Klumpp wrote: On Saturday, 2 June 2018 at 03:15:56 UTC, crimaniak wrote: I started to work with Travis-CI, building packages using all three main compilers, and noticed that I have problems

Re: stride in slices

2018-06-02 Thread Dmitry Olshansky via Digitalmars-d
On Saturday, 2 June 2018 at 18:49:51 UTC, DigitalDesigns wrote: Proposal: [a..b;m] m is the stride, if ; is not a good char then |, :, !, or # could be good chars. Ranges work for this and don’t need special syntax. Just saying.

Re: Can D not reduce template error messages?

2018-06-02 Thread I love Ice Cream via Digitalmars-d
On Saturday, 2 June 2018 at 09:48:26 UTC, IntegratedDimensions wrote: Getting N messages for N template parameter variations on a template. void foo(A,B)(); A and B are selected from N different values and all are used. If there is an error in the function then I get N^2 error messages, one

Re: Remember the Vasa! by Bjarne Stroustrup

2018-06-02 Thread I love Ice Cream via Digitalmars-d
When Bjarne and the D community is criticizing your complexity, that's saying something...

Re: determining if array element is null

2018-06-02 Thread ag0aep6g via Digitalmars-d-learn
On 06/02/2018 08:35 PM, Neia Neutuladh wrote: 2. `int[4] a = null` treats the initialization as a copy from an array whose value is null. If you run just that line of code, it will produce an error at runtime: "object.Error@(0): Array lengths don't match for copy: 0 != 4" If you want to

stride in slices

2018-06-02 Thread DigitalDesigns via Digitalmars-d
Proposal: [a..b;m] m is the stride, if ; is not a good char then |, :, !, or # could be good chars.

Re: determining if array element is null

2018-06-02 Thread Neia Neutuladh via Digitalmars-d-learn
On Saturday, 2 June 2018 at 18:10:38 UTC, eastanon wrote: Does D array implementation support an array of null values? int a[4] = null; But I ran into a type error while checking if a[i] is null foreach(i; 0..3){ if(i == null){ writeln("it is null"); } } } How do you set fixed size

Re: Driving Continuous Improvement in D

2018-06-02 Thread Jon Degenhardt via Digitalmars-d-announce
On Saturday, 2 June 2018 at 07:23:42 UTC, Mike Parker wrote: In this post for the D Blog, Jack Stouffer details how dscanner is used in the Phobos development process to help improve code quality and fight entropy. The blog:

Connecting two web sockets at the same time with vibe.d

2018-06-02 Thread kerdemdemir via Digitalmars-d-learn
I am blocked in my project because of an issue while using websockets. I can simplify my problem like : auto ws_url = URL("wss://stream.binance.com:9443/ws/ethbtc@aggTrade"); auto ws = connectWebSocket(ws_url); if ( !ws.connected ) return;

determining if array element is null

2018-06-02 Thread eastanon via Digitalmars-d-learn
Does D array implementation support an array of null values? int a[4] = null; But I ran into a type error while checking if a[i] is null foreach(i; 0..3){ if(i == null){ writeln("it is null"); } } } How do you set fixed size array of null values and check if they are null?

Re: cycle dependencies

2018-06-02 Thread Neia Neutuladh via Digitalmars-d
On Friday, 1 June 2018 at 17:59:21 UTC, Steven Schveighoffer wrote: The .di file is just an interface, it doesn't know what's actually compiled in the binary. To put it another way, the compiler only generates a ModuleInfo (or dependency modules) for .d files. .di files are simply a public

Re: GDC on Travis-CI

2018-06-02 Thread Seb via Digitalmars-d-learn
On Saturday, 2 June 2018 at 16:04:09 UTC, Matthias Klumpp wrote: On Saturday, 2 June 2018 at 03:15:56 UTC, crimaniak wrote: I started to work with Travis-CI, building packages using all three main compilers, and noticed that I have problems with gdc every time and need to tweak code because of

Re: GDC on Travis-CI

2018-06-02 Thread Matthias Klumpp via Digitalmars-d-learn
On Saturday, 2 June 2018 at 03:15:56 UTC, crimaniak wrote: I started to work with Travis-CI, building packages using all three main compilers, and noticed that I have problems with gdc every time and need to tweak code because of many things missing. For example:

[Issue 18752] std.file.read runnable example fails

2018-06-02 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=18752 --- Comment #2 from github-bugzi...@puremagic.com --- Commits pushed to master at https://github.com/dlang/phobos https://github.com/dlang/phobos/commit/f9cd2af795f40c04f6b6e3b35a3b7296b4599f4c Fix Issue 18752 - std.file.read runnable example fails

[Issue 18752] std.file.read runnable example fails

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

[Issue 18752] std.file.read runnable example fails

2018-06-02 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=18752 Seb changed: What|Removed |Added CC||greensunn...@gmail.com --- Comment #1 from Seb ---

Re: Driving Continuous Improvement in D

2018-06-02 Thread Microbe via Digitalmars-d-announce
On Saturday, 2 June 2018 at 13:32:00 UTC, Basile B. wrote: Microbe, if you were a keyword for a protection attribute in a programming language, i would choose "smuck". To borrow a quote from someone else on this forum.. knock of the sex talk!. Anyway, increased membrane permeability leads

[Issue 18874] Add thatneedle.com to organizations using D

2018-06-02 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=18874 Seb changed: What|Removed |Added CC||greensunn...@gmail.com --- Comment #1 from Seb ---

[Issue 18869] Add Jumia Food to organizations using D

2018-06-02 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=18869 Seb changed: What|Removed |Added CC||greensunn...@gmail.com --- Comment #3 from Seb ---

Re: Driving Continuous Improvement in D

2018-06-02 Thread Basile B. via Digitalmars-d-announce
On Saturday, 2 June 2018 at 12:49:45 UTC, Microbe wrote: As you know, surrounding code within a module can infilitrate the membrane structure of those types that use 'private' to protect their boundary (for example, the 'private' member in that struct, in that blog). Since the compiler is

Re: Remember the Vasa! by Bjarne Stroustrup

2018-06-02 Thread Basile B. via Digitalmars-d
On Saturday, 2 June 2018 at 00:49:04 UTC, Bastiaan Veelo wrote: On Friday, 1 June 2018 at 18:18:17 UTC, Tony wrote: But with regard to varians compile-time stuff and function annotations and other things that didn't exist years ago, has that resulted in noticeably faster programming and/or

Re: How are switches optimized

2018-06-02 Thread Dennis via Digitalmars-d-learn
On Friday, 1 June 2018 at 21:18:25 UTC, IntegratedDimensions wrote: If one has a switch of N case then the last cost surely does not cost N times the cost of the first, approximately? It depends on the compiler and optimization level. In general, no optimization or just a handful of cases

Re: Driving Continuous Improvement in D

2018-06-02 Thread Microbe via Digitalmars-d-announce
On Saturday, 2 June 2018 at 07:23:42 UTC, Mike Parker wrote: In this post for the D Blog, Jack Stouffer details how dscanner is used in the Phobos development process to help improve code quality and fight entropy. The blog:

[Issue 16692] New debug experience: possible to execute pure functions during expression evaluation?

2018-06-02 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16692 --- Comment #9 from Rainer Schuetze --- You can now call function and delegates without arguments in the watch window, i.e. this includes member functions. You'll still have to add "()" even for properties. --

Re: Remember the Vasa! by Bjarne Stroustrup

2018-06-02 Thread drug via Digitalmars-d
On 02.06.2018 14:37, Bastiaan Veelo wrote: On Saturday, 2 June 2018 at 09:07:29 UTC, drug wrote: On 02.06.2018 03:49, Bastiaan Veelo wrote: interesting from a theoretical perspective. Stay tuned for an announcement... I've been staying for long enough, so let me ask - when the announcement

Re: GDC on Travis-CI

2018-06-02 Thread Johan Engelen via Digitalmars-d-learn
On Saturday, 2 June 2018 at 10:49:30 UTC, rjframe wrote: There is documentation for older Phobos versions online, but I don't remember the link and haven't found it by searching. https://docarchives.dlang.io/

[Issue 18935] New: [spec] Version dropdown on spec page

2018-06-02 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=18935 Issue ID: 18935 Summary: [spec] Version dropdown on spec page Product: D Version: D2 Hardware: All OS: All Status: NEW Severity: normal Priority: P1

Re: Remember the Vasa! by Bjarne Stroustrup

2018-06-02 Thread Dave Jones via Digitalmars-d
On Friday, 1 June 2018 at 23:10:30 UTC, Laeeth Isharc wrote: On Friday, 1 June 2018 at 18:18:17 UTC, Tony wrote: Yes, though you also can't compare a typical programmer from the D world with a typical guy from an enterprisey language world. That was an excellent post.

Re: Remember the Vasa! by Bjarne Stroustrup

2018-06-02 Thread Bastiaan Veelo via Digitalmars-d
On Saturday, 2 June 2018 at 09:07:29 UTC, drug wrote: On 02.06.2018 03:49, Bastiaan Veelo wrote: interesting from a theoretical perspective. Stay tuned for an announcement... I've been staying for long enough, so let me ask - when the announcement will happen approximately? )) Approximately

Re: Generate documentation for mixin'd function?

2018-06-02 Thread rjframe via Digitalmars-d-learn
On Fri, 01 Jun 2018 22:48:41 -0600, Jonathan M Davis wrote: > > It's currently possible to put ddoc on template mixins but not string > mixins: > > https://issues.dlang.org/show_bug.cgi?id=2420 > > It was fix for template mixins with > > https://issues.dlang.org/show_bug.cgi?id=648 > > but

[Issue 2420] string mixins are not considered in ddoc

2018-06-02 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=2420 dl...@ryanjframe.com changed: What|Removed |Added CC||dl...@ryanjframe.com --

Re: GDC on Travis-CI

2018-06-02 Thread rjframe via Digitalmars-d-learn
On Sat, 02 Jun 2018 03:15:56 +, crimaniak wrote: > I started to work with Travis-CI, building packages using all three main > compilers, and noticed that I have problems with gdc every time and need > to tweak code because of many things missing. > For example:

Re: Debugging silent exit of threads in Phobos calls (bugzilla issue submitted)

2018-06-02 Thread Kagamin via Digitalmars-d-learn
On Saturday, 2 June 2018 at 09:52:59 UTC, Russel Winder wrote: I get ldc2 from the Debian/Fedora repositories and dmd from d-apt (no Fedora equivalent) I really want to avoid fiddling with files that are installed via packaging. Though I guess any changes can be fixed by a reinstallation of

Re: Debugging silent exit of threads in Phobos calls

2018-06-02 Thread Russel Winder via Digitalmars-d-learn
On Fri, 2018-06-01 at 16:19 -0400, Steven Schveighoffer via Digitalmars-d-learn wrote: > On 6/1/18 1:41 PM, Russel Winder wrote: > > struct Datum { > > public const int a; > > public const int b; > > } > > > > struct Message { > > Datum datum; > > } > > I found the bug. Basically,

Re: Debugging silent exit of threads in Phobos calls (bugzilla issue submitted)

2018-06-02 Thread Russel Winder via Digitalmars-d-learn
On Fri, 2018-06-01 at 14:02 -0400, Steven Schveighoffer via Digitalmars-d-learn wrote: > […] > Perfect, put this into a bugzilla entry. Most definitely it's a bug > in > phobos, it's clear from the assert(false, ...) which is NEVER meant > to > happen. Bug report submitted.

Can D not reduce template error messages?

2018-06-02 Thread IntegratedDimensions via Digitalmars-d
Getting N messages for N template parameter variations on a template. void foo(A,B)(); A and B are selected from N different values and all are used. If there is an error in the function then I get N^2 error messages, one for each combination. All the error messages say the same thing

Re: How are switches optimized

2018-06-02 Thread Johan Engelen via Digitalmars-d-learn
On Friday, 1 June 2018 at 21:18:25 UTC, IntegratedDimensions wrote: What is the best optimizations that a compiler does to switches in general and in the D compilers? The best possible depends a lot on the specific case at hand. Best possible is to fully elide the switch, which does happen.

D IDE Coedit, version 3.6.15 available

2018-06-02 Thread Basile B. via Digitalmars-d-announce
Yet another update in this crazy 3.6.x burst. See [1] for changelog and downloads. zip files and setup program include D-Scanner 0.5.6 and DCD ~master which both include fixes for a crash that could happen since a small month. [1]: https://github.com/BBasile/Coedit/releases/tag/v3.6.15

[Issue 18934] std.concurrency receive throws assertion failure if message is a struct of struct

2018-06-02 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=18934 --- Comment #1 from Russel Winder --- Created attachment 1699 --> https://issues.dlang.org/attachment.cgi?id=1699=edit Code exhibiting the error --

[Issue 18934] std.concurrency receive throws assertion failure is message is a struct of struct

2018-06-02 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=18934 Russel Winder changed: What|Removed |Added Summary|std.cocurrency receive |std.concurrency receive

[Issue 18934] std.concurrency receive throws assertion failure if message is a struct of struct

2018-06-02 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=18934 Russel Winder changed: What|Removed |Added Summary|std.concurrency receive |std.concurrency receive

[Issue 18934] New: std.cocurrency receive throws assertion failure is message is a struct of struct

2018-06-02 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=18934 Issue ID: 18934 Summary: std.cocurrency receive throws assertion failure is message is a struct of struct Product: D Version: D2 Hardware: x86_64 OS: Linux

D-Scanner v0.5.6 available

2018-06-02 Thread Baz@dlang-community via Digitalmars-d-announce
See [1] for downloads and change log [1] https://github.com/dlang-community/D-Scanner/releases/tag/v0.5.6

Re: Remember the Vasa! by Bjarne Stroustrup

2018-06-02 Thread KingJoffrey via Digitalmars-d
On Saturday, 2 June 2018 at 00:49:04 UTC, Bastiaan Veelo wrote: These are exactly the things that enable us to bring a very large code base to D. Not just faster or better, it makes the difference between impossible and possible. And we are engineers needing to solve real-world problems, not

Re: Remember the Vasa! by Bjarne Stroustrup

2018-06-02 Thread drug via Digitalmars-d
On 02.06.2018 03:49, Bastiaan Veelo wrote: interesting from a theoretical perspective. Stay tuned for an announcement... I've been staying for long enough, so let me ask - when the announcement will happen approximately? ))

Add QML support in QtE5

2018-06-02 Thread MGW via Digitalmars-d-announce
The QtE5 added ability to work with QML. Created QtE5Qml.dll (. so) as plug-in QtE5. Example in repo folder "QML" Compile example: dmd qml.d qte5.d Execute example: qml test3.qml https://pp.userapi.com/c834103/v834103884/1546bb/Cp3wRDL5nCA.jpg https://github.com/MGWL/QtE5

Driving Continuous Improvement in D

2018-06-02 Thread Mike Parker via Digitalmars-d-announce
In this post for the D Blog, Jack Stouffer details how dscanner is used in the Phobos development process to help improve code quality and fight entropy. The blog: https://dlang.org/blog/2018/06/02/driving-continuous-improvement-in-d/ reddit:

Re: std.digest can't CTFE?

2018-06-02 Thread Atila Neves via Digitalmars-d
On Friday, 1 June 2018 at 20:12:23 UTC, Kagamin wrote: On Friday, 1 June 2018 at 10:04:52 UTC, Johannes Pfau wrote: However you want to call it, the algorithms interpret data as numbers which means that the binary representation differs based on endianess. If you want portable results, you