Re: The Expressive C++17 Coding Challenge in D

2018-02-14 Thread Simen Kjærås via Digitalmars-d-announce
On Tuesday, 13 February 2018 at 23:35:36 UTC, Seb wrote: Someone revived the Expressive C++17 Coding Challenge thread today and I thought this is an excellent opportunity to revive my blog and finally write an article showing why I like D so much:

Re: OT: Photo of a single atom by David Nadlinger wins top prize

2018-02-14 Thread Nick Sabalausky (Abscissa) via Digitalmars-d
On 02/13/2018 08:11 PM, David Nadlinger wrote: On Tuesday, 13 February 2018 at 23:09:07 UTC, Ali Çehreli wrote: David (aka klickverbot) is a longtime D contributor […] … who is slightly surprised at the amount of media interest this has attracted. ;)  — David Heh, dude, you photographed

Re: OT: Photo of a single atom by David Nadlinger wins top prize

2018-02-14 Thread Sönke Ludwig via Digitalmars-d
Am 14.02.2018 um 02:11 schrieb David Nadlinger: On Tuesday, 13 February 2018 at 23:09:07 UTC, Ali Çehreli wrote: David (aka klickverbot) is a longtime D contributor […] … who is slightly surprised at the amount of media interest this has attracted. ;)  — David Also saw it cited by

Re: OT: Photo of a single atom by David Nadlinger wins top prize

2018-02-14 Thread Chris via Digitalmars-d
On Wednesday, 14 February 2018 at 01:11:33 UTC, David Nadlinger wrote: On Tuesday, 13 February 2018 at 23:09:07 UTC, Ali Çehreli wrote: David (aka klickverbot) is a longtime D contributor […] … who is slightly surprised at the amount of media interest this has attracted. ;) — David

Re: OT: Photo of a single atom by David Nadlinger wins top prize

2018-02-14 Thread Andrea Fontana via Digitalmars-d
On Tuesday, 13 February 2018 at 23:09:07 UTC, Ali Çehreli wrote: David (aka klickverbot) is a longtime D contributor. https://www.epsrc.ac.uk/newsevents/news/single-trapped-atom-captures-science-photography-competitions-top-prize/ Ali Hey I read that news, but I didn't realize it was that

[Issue 18437] New: Dlang's range section of the language tour produces an error

2018-02-14 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=18437 Issue ID: 18437 Summary: Dlang's range section of the language tour produces an error Product: D Version: D2 Hardware: x86_64 OS: Linux Status: NEW

Re: dxml 0.2.0 released

2018-02-14 Thread Adrian Matoga via Digitalmars-d-announce
On Wednesday, 14 February 2018 at 10:57:26 UTC, rikki cattermole wrote: See lines: - Input!IR temp = input; - input = temp; bool commentLine() { Input!IR temp = input; (...) if (!temp.empty) { (...) input = temp;

Re: The Expressive C++17 Coding Challenge in D

2018-02-14 Thread psychoticRabbit via Digitalmars-d-announce
On Wednesday, 14 February 2018 at 08:53:31 UTC, drug wrote: 14.02.2018 11:45, Ola Fosheim Grøstad пишет: On Tuesday, 13 February 2018 at 23:35:36 UTC, Seb wrote: Someone revived the Expressive C++17 Coding Challenge thread today and I thought this is an excellent opportunity to revive my blog

Re: OT: Photo of a single atom by David Nadlinger wins top prize

2018-02-14 Thread Nicholas Wilson via Digitalmars-d
On Wednesday, 14 February 2018 at 09:09:32 UTC, Mike Franklin wrote: On Wednesday, 14 February 2018 at 01:11:33 UTC, David Nadlinger wrote: On Tuesday, 13 February 2018 at 23:09:07 UTC, Ali Çehreli wrote: David (aka klickverbot) is a longtime D contributor […] … who is slightly surprised at

Re: OT: Photo of a single atom by David Nadlinger wins top prize

2018-02-14 Thread 9il via Digitalmars-d
On Tuesday, 13 February 2018 at 23:09:07 UTC, Ali Çehreli wrote: David (aka klickverbot) is a longtime D contributor. https://www.epsrc.ac.uk/newsevents/news/single-trapped-atom-captures-science-photography-competitions-top-prize/ Ali Fantastic! Congratulations!

[Issue 16578] bogus deprecation - switch skips declaration of variable

2018-02-14 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16578 Mike Franklin changed: What|Removed |Added Keywords||pull

Disk space used and free size of a Network share folder in Windows

2018-02-14 Thread Vino via Digitalmars-d-learn
Hi All, Request your help on how to get the disk space used and free size of a Network share folder in Windows, tried with getSize but it return 0; eg: Share Name :\\server1\dir1$ From, Vino.B

[Issue 18039] Deprecation: symbol is not visible from module when accessed in a with () of something that imports it

2018-02-14 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=18039 RazvanN changed: What|Removed |Added CC|

Re: Disk space used and free size of a Network share folder in Windows

2018-02-14 Thread rikki cattermole via Digitalmars-d-learn
On 14/02/2018 1:52 PM, psychoticRabbit wrote: On Wednesday, 14 February 2018 at 12:29:13 UTC, rikki cattermole wrote: See: https://msdn.microsoft.com/en-us/library/windows/desktop/aa364935(v=vs.85).aspx any idea on how I'd convert this C# code to D? == public

[Issue 15086] import doesn't verify module declaration

2018-02-14 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15086 --- Comment #25 from ag0ae...@gmail.com --- (In reply to Walter Bright from comment #21) > I suspect the core of a fix > can be along the lines of detecting that an explicit import of bar.d is done > using two different names in the same module.

Re: dmd-2.078.2 problems with Ubuntu 17.10 32Bit

2018-02-14 Thread Andrea Fontana via Digitalmars-d-learn
On Tuesday, 13 February 2018 at 22:21:18 UTC, Martin Tschierschke wrote: I will downgrade to 16.04., the dist-upgrade to 17.10 was a mistake, resulting in problems with startx and newer kernels so I have to use 4.10. In my experience dist-upgrade are long and messy :) Usually I create a

[Issue 18350] simple hello world crashes with segfault

2018-02-14 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=18350 Martin Tschierschke changed: What|Removed |Added CC|

[Issue 15949] Improve readtext handling of byte order mark (BOM)

2018-02-14 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15949 --- Comment #2 from github-bugzi...@puremagic.com --- Commits pushed to master at https://github.com/dlang/phobos https://github.com/dlang/phobos/commit/5d52a81e4dede77fe75eb3215f1b24b898963f26 Fix issue 15949: Make readText check BOMs. This makes

Re: dmd-2.078.2 problems with Ubuntu 17.10 32Bit

2018-02-14 Thread Andrea Fontana via Digitalmars-d-learn
On Wednesday, 14 February 2018 at 11:16:25 UTC, Martin Tschierschke wrote: Ok, good to know! I started with 16.04 and made the initial mistake to take the 32 Bit version, do you use 32 or 64 Bit? 64bit of course! Andrea

[Issue 15949] Improve readtext handling of byte order mark (BOM)

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

Re: Flow-Design: OOP component programming

2018-02-14 Thread psychoticRabbit via Digitalmars-d
On Wednesday, 14 February 2018 at 09:39:20 UTC, Luís Marques wrote: It seems that someone once again rediscovered the benefits of component programming, in the context of OOP, but (as usual) without the more mathematical and principled approach of something like ranges and algorithms:

Re: Disk space used and free size of a Network share folder in Windows

2018-02-14 Thread rikki cattermole via Digitalmars-d-learn
On 14/02/2018 12:22 PM, Vino wrote: Hi All,  Request your help on how to get the disk space used and free size of a Network share folder in Windows, tried with getSize but it return 0; eg: Share Name :\\server1\dir1$ From, Vino.B See:

[Issue 17570] Misleading error message illegal conditional function definition

2018-02-14 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17570 RazvanN changed: What|Removed |Added CC|

[Issue 18039] Deprecation: symbol is not visible from module when accessed in a with () of something that imports it

2018-02-14 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=18039 RazvanN changed: What|Removed |Added Status|NEW |RESOLVED

Re: dxml 0.2.0 released

2018-02-14 Thread rikki cattermole via Digitalmars-d-announce
On 14/02/2018 2:02 PM, Adrian Matoga wrote: On Wednesday, 14 February 2018 at 10:57:26 UTC, rikki cattermole wrote: See lines: - Input!IR temp = input; - input = temp;    bool commentLine() {     Input!IR temp = input; (...)     if (!temp.empty) { (...)     input =

Re: dxml 0.2.0 released

2018-02-14 Thread rikki cattermole via Digitalmars-d-announce
On 14/02/2018 10:32 AM, Jonathan M Davis wrote: On Wednesday, February 14, 2018 10:14:44 Kagamin via Digitalmars-d-announce wrote: It looks like EntityRange requires forward range, is it ok for a parser? It's very difficult in general to write a parser that isn't at least a forward range,

Re: OT: Photo of a single atom by David Nadlinger wins top prize

2018-02-14 Thread Joakim via Digitalmars-d
On Wednesday, 14 February 2018 at 09:09:32 UTC, Mike Franklin wrote: On Wednesday, 14 February 2018 at 01:11:33 UTC, David Nadlinger wrote: On Tuesday, 13 February 2018 at 23:09:07 UTC, Ali Çehreli wrote: David (aka klickverbot) is a longtime D contributor […] … who is slightly surprised at

Re: rdmd main.d leads to Segmentation fault

2018-02-14 Thread Martin Tschierschke via Digitalmars-d-learn
On Wednesday, 14 February 2018 at 10:28:51 UTC, Kagamin wrote: On Tuesday, 13 February 2018 at 06:53:46 UTC, Martin Tschierschke wrote: I am unfamiliar with debugging (gdb etc.) so any hint would be appreciated! https://issues.dlang.org/show_bug.cgi?id=18350 - maybe adjust bug severity. I

Re: The Expressive C++17 Coding Challenge in D

2018-02-14 Thread Seb via Digitalmars-d-announce
On Wednesday, 14 February 2018 at 09:42:47 UTC, Russel Winder wrote: Seb, I believe this blog post would make a great article for Overload or CVu. Cool idea, but I'm not so familiar with these. What can/should I do to make this happen? We can also talk in private (seb [at] wilzba [dot]

Re: Disk space used and free size of a Network share folder in Windows

2018-02-14 Thread psychoticRabbit via Digitalmars-d-learn
On Wednesday, 14 February 2018 at 12:29:13 UTC, rikki cattermole wrote: See: https://msdn.microsoft.com/en-us/library/windows/desktop/aa364935(v=vs.85).aspx any idea on how I'd convert this C# code to D? == public class Program { [DllImport("kernel32.dll")]

Re: The Expressive C++17 Coding Challenge in D

2018-02-14 Thread Ola Fosheim Grøstad via Digitalmars-d-announce
On Wednesday, 14 February 2018 at 08:53:31 UTC, drug wrote: It's sadly that using most C++17 features fails to provide clean and compact solution... I don't usually use iostream, but this "challenge" was a reasonable fit for it. If you look over the 4 submissions then the iostream one

Re: The Expressive C++17 Coding Challenge in D

2018-02-14 Thread drug via Digitalmars-d-announce
14.02.2018 11:45, Ola Fosheim Grøstad пишет: On Tuesday, 13 February 2018 at 23:35:36 UTC, Seb wrote: Someone revived the Expressive C++17 Coding Challenge thread today and I thought this is an excellent opportunity to revive my blog and finally write an article showing why I like D so much:

Re: OT: Photo of a single atom by David Nadlinger wins top prize

2018-02-14 Thread Mike Franklin via Digitalmars-d
On Wednesday, 14 February 2018 at 01:11:33 UTC, David Nadlinger wrote: On Tuesday, 13 February 2018 at 23:09:07 UTC, Ali Çehreli wrote: David (aka klickverbot) is a longtime D contributor […] … who is slightly surprised at the amount of media interest this has attracted. ;) David, this is

Re: The Expressive C++17 Coding Challenge in D

2018-02-14 Thread Mike Franklin via Digitalmars-d-announce
On Tuesday, 13 February 2018 at 23:35:36 UTC, Seb wrote: Someone revived the Expressive C++17 Coding Challenge thread today and I thought this is an excellent opportunity to revive my blog and finally write an article showing why I like D so much:

Re: D compiler daily downloads at an all-time high

2018-02-14 Thread Nick Sabalausky (Abscissa) via Digitalmars-d-announce
On 02/13/2018 01:15 PM, Dmitry Olshansky wrote: On Monday, 12 February 2018 at 15:20:29 UTC, Martin Tschierschke wrote: On Monday, 16 November 2015 at 15:20:51 UTC, Andrei Congratulations to everybody who co Andrei Old post but new numbers! http://erdani.com/d/downloads.daily.png Would be

Re: The Expressive C++17 Coding Challenge in D

2018-02-14 Thread Russel Winder via Digitalmars-d-announce
Seb, I believe this blog post would make a great article for Overload or CVu. On Tue, 2018-02-13 at 23:35 +, Seb via Digitalmars-d-announce wrote: > Someone revived the Expressive C++17 Coding Challenge thread > today and I thought this is an excellent opportunity to revive my > blog and

Re: dxml 0.2.0 released

2018-02-14 Thread Kagamin via Digitalmars-d-announce
On Tuesday, 13 February 2018 at 22:29:27 UTC, H. S. Teoh wrote: - provide some way of hooking into non-default entities so that DTD-defined entities can be expanded by the DTD implementation. The parser now returns raw text, entity replacement can be done by DTD processor without any

Re: The Expressive C++17 Coding Challenge in D

2018-02-14 Thread Dukc via Digitalmars-d-announce
On Tuesday, 13 February 2018 at 23:35:36 UTC, Seb wrote: Someone revived the Expressive C++17 Coding Challenge thread today and I thought this is an excellent opportunity to revive my blog and finally write an article showing why I like D so much I first looked into C++ and Rust examples,

Re: OT: Photo of a single atom by David Nadlinger wins top prize

2018-02-14 Thread Nick Sabalausky (Abscissa) via Digitalmars-d
On 02/14/2018 03:44 AM, Nick Sabalausky (Abscissa) wrote: On 02/13/2018 08:11 PM, David Nadlinger wrote: On Tuesday, 13 February 2018 at 23:09:07 UTC, Ali Çehreli wrote: David (aka klickverbot) is a longtime D contributor […] … who is slightly surprised at the amount of media interest this

Re: The Expressive C++17 Coding Challenge in D

2018-02-14 Thread Martin Tschierschke via Digitalmars-d-announce
On Tuesday, 13 February 2018 at 23:35:36 UTC, Seb wrote: Someone revived the Expressive C++17 Coding Challenge thread today and I thought this is an excellent opportunity to revive my blog and finally write an article showing why I like D so much:

Re: OT: Photo of a single atom by David Nadlinger wins top prize

2018-02-14 Thread Luís Marques via Digitalmars-d
On Wednesday, 14 February 2018 at 01:11:33 UTC, David Nadlinger wrote: On Tuesday, 13 February 2018 at 23:09:07 UTC, Ali Çehreli wrote: David (aka klickverbot) is a longtime D contributor […] … who is slightly surprised at the amount of media interest this has attracted. ;) Nice!

Re: The Expressive C++17 Coding Challenge in D

2018-02-14 Thread Arredondo via Digitalmars-d-announce
On Tuesday, 13 February 2018 at 23:35:36 UTC, Seb wrote: Someone revived the Expressive C++17 Coding Challenge thread today and I thought this is an excellent opportunity to revive my blog and finally write an article showing why I like D so much:

Re: dxml 0.2.0 released

2018-02-14 Thread Patrick Schluter via Digitalmars-d-announce
On Tuesday, 13 February 2018 at 22:00:59 UTC, Jonathan M Davis wrote: On Tuesday, February 13, 2018 21:18:12 Patrick Schluter via Digitalmars-d- announce wrote: [...] Well, if dxml just passes the entity references along unparsed beyond validating that the entity reference itself contains

Re: The Expressive C++17 Coding Challenge in D

2018-02-14 Thread psychoticRabbit via Digitalmars-d-announce
On Wednesday, 14 February 2018 at 09:50:31 UTC, Ola Fosheim Grøstad wrote: If C++ isn't viewed as a competitor, why bother with repetitive complaining about C++? Because it doesn't get enough criticism ;-) I believe the programming langauges of the future, and the ones people should invest

Re: The Expressive C++17 Coding Challenge in D

2018-02-14 Thread Ola Fosheim Grøstad via Digitalmars-d-announce
On Tuesday, 13 February 2018 at 23:35:36 UTC, Seb wrote: Someone revived the Expressive C++17 Coding Challenge thread today and I thought this is an excellent opportunity to revive my blog and finally write an article showing why I like D so much:

[Issue 16492] support @nogc in debug{} blocks

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

[Issue 16492] support @nogc in debug{} blocks

2018-02-14 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16492 --- Comment #6 from github-bugzi...@puremagic.com --- Commits pushed to master at https://github.com/dlang/dmd https://github.com/dlang/dmd/commit/c582e10d3bb4c270a682c583dbc53f5d2f4dfc13 Fix Issue 16492 - support @nogc in debug{} blocks

Re: dxml 0.2.0 released

2018-02-14 Thread Jonathan M Davis via Digitalmars-d-announce
On Wednesday, February 14, 2018 10:14:44 Kagamin via Digitalmars-d-announce wrote: > It looks like EntityRange requires forward range, is it ok for a > parser? It's very difficult in general to write a parser that isn't at least a forward range, because without that, you're stuck at only one

Flow-Design: OOP component programming

2018-02-14 Thread Luís Marques via Digitalmars-d
It seems that someone once again rediscovered the benefits of component programming, in the context of OOP, but (as usual) without the more mathematical and principled approach of something like ranges and algorithms:

Re: A betterC base

2018-02-14 Thread JN via Digitalmars-d
On Friday, 9 February 2018 at 16:54:35 UTC, Seb wrote: FYI: and for the lazy ones, there will hopefully be std.experimental.scripting soon: https://github.com/dlang/phobos/pull/5916 Shouldn't something like this be handled by better tooling (i.e. IDEs)? In Java you have to import every

Re: The Expressive C++17 Coding Challenge in D

2018-02-14 Thread Ola Fosheim Grøstad via Digitalmars-d-announce
On Wednesday, 14 February 2018 at 09:28:48 UTC, psychoticRabbit wrote: yeah.. even the more modern C++ code still makes me want to stay clear of it...(perhaps even more so). I just never get the same feeling when I look at D programs. I get the same feeling from both languages, to be honest.

Re: dxml 0.2.0 released

2018-02-14 Thread Jonathan M Davis via Digitalmars-d-announce
On Wednesday, February 14, 2018 10:03:45 Patrick Schluter via Digitalmars-d- announce wrote: > On Tuesday, 13 February 2018 at 22:00:59 UTC, Jonathan M Davis > > wrote: > > On Tuesday, February 13, 2018 21:18:12 Patrick Schluter via > > > > Digitalmars-d- announce wrote: > >> [...] > > > > Well,

Re: dxml 0.2.0 released

2018-02-14 Thread Chris via Digitalmars-d-announce
On Tuesday, 13 February 2018 at 22:13:36 UTC, H. S. Teoh wrote: Ironically, the general advice I found online w.r.t XML vulnerabilities is "don't allow DTDs", "don't expand entities", "don't resolve externals", etc.. There also aren't many XML parsers out there that fully support all the

Re: rdmd main.d leads to Segmentation fault

2018-02-14 Thread Kagamin via Digitalmars-d-learn
On Tuesday, 13 February 2018 at 06:53:46 UTC, Martin Tschierschke wrote: I am unfamiliar with debugging (gdb etc.) so any hint would be appreciated! https://issues.dlang.org/show_bug.cgi?id=18350 - maybe adjust bug severity.

Re: The Expressive C++17 Coding Challenge in D

2018-02-14 Thread Seb via Digitalmars-d-announce
On Wednesday, 14 February 2018 at 08:06:13 UTC, Mike Franklin wrote: Aren’t you concered that Rust is faster in this benchmark? Not at all. The challenge was to write expressive code and if performance really matters I can always opt to optimize the hot path of the program and don’t need to

vib.d suppress 404 for no content written

2018-02-14 Thread Nicholas Wilson via Digitalmars-d-learn
I have an endpoint that is a post: void postStuff(HTTPServerRequest req, HTTPServerResponse res) { // do some stuff with req res.statusCode = 200; } I do not write anything to res (deliberately) but want to set the status code. However it returns 404, because no content is written.

[Issue 18427] `Symbol FOO is not visible because it is privately imported` => compiler should show how to import it

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

[Issue 18427] `Symbol FOO is not visible because it is privately imported` => compiler should show how to import it

2018-02-14 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=18427 --- Comment #2 from github-bugzi...@puremagic.com --- Commits pushed to master at https://github.com/dlang/dmd https://github.com/dlang/dmd/commit/996f9b519dc8e63d4582071d569713745369701b Fix Issue 18427 - Symbol FOO is not visible because it is

cblas, lapack, mir-blas, mir-lapack update

2018-02-14 Thread 9il via Digitalmars-d-announce
cblas v2.0.1. - Fixed aliases for i?max. - API was marked as pure. lapack v0.0.3 - sysv_rook was added - API was marked as pure. mir-blas v0.1.0 - ger, scal, swap, asum, scal, copy, axpy wrappers for ndslice were added mir-lapack v0.0.5 - sysv_rook wrapper for ndslice was added A lot

Re: The Expressive C++17 Coding Challenge in D

2018-02-14 Thread Ola Fosheim Grøstad via Digitalmars-d-announce
On Wednesday, 14 February 2018 at 10:17:21 UTC, psychoticRabbit wrote: I believe the programming langauges of the future, and the ones people should invest their time learning, are those that can be best understood in the least amount of time. Yes, I would say so, unless they bring something

Re: Disk space used and free size of a Network share folder in Windows

2018-02-14 Thread Vino via Digitalmars-d-learn
On Wednesday, 14 February 2018 at 12:29:13 UTC, rikki cattermole wrote: On 14/02/2018 12:22 PM, Vino wrote: Hi All,  Request your help on how to get the disk space used and free size of a Network share folder in Windows, tried with getSize but it return 0; eg: Share Name :\\server1\dir1$

Re: The Expressive C++17 Coding Challenge in D

2018-02-14 Thread Russel Winder via Digitalmars-d-announce
On Wed, 2018-02-14 at 13:21 +, Seb via Digitalmars-d-announce wrote: > On Wednesday, 14 February 2018 at 09:42:47 UTC, Russel Winder > wrote: > > Seb, > > > > I believe this blog post would make a great article for > > Overload or CVu. > > Cool idea, but I'm not so familiar with these.

Re: The Expressive C++17 Coding Challenge in D

2018-02-14 Thread Dukc via Digitalmars-d-announce
On Wednesday, 14 February 2018 at 14:17:31 UTC, Seb wrote: changed the text to: ...and D even supports native interoperability with C and most of C++. Great!

Re: vib.d suppress 404 for no content written

2018-02-14 Thread Seb via Digitalmars-d-learn
On Wednesday, 14 February 2018 at 14:30:19 UTC, Nicholas Wilson wrote: I have an endpoint that is a post: void postStuff(HTTPServerRequest req, HTTPServerResponse res) { // do some stuff with req res.statusCode = 200; } I do not write anything to res (deliberately) but want to set the

Re: Mir Random v0.3.6 and v0.4.0

2018-02-14 Thread 9il via Digitalmars-d-announce
On Wednesday, 14 February 2018 at 15:14:22 UTC, 9il wrote: Docs: http://docs.algorithm.dlang.io/latest/index.html http://docs.random.dlang.io/latest/index.html

Re: vib.d suppress 404 for no content written

2018-02-14 Thread Nicholas Wilson via Digitalmars-d-learn
On Wednesday, 14 February 2018 at 14:58:14 UTC, Seb wrote: On Wednesday, 14 February 2018 at 14:30:19 UTC, Nicholas Wilson wrote: I have an endpoint that is a post: void postStuff(HTTPServerRequest req, HTTPServerResponse res) { // do some stuff with req res.statusCode = 200; } I do

[Issue 18437] Dlang's range section of the language tour produces an error

2018-02-14 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=18437 Seb changed: What|Removed |Added Status|NEW |RESOLVED CC|

Re: cblas, lapack, mir-blas, mir-lapack update

2018-02-14 Thread jmh530 via Digitalmars-d-announce
On Wednesday, 14 February 2018 at 14:24:25 UTC, 9il wrote: [snip] Great.

Re: opCast cannot implicitly convert a.opCast of type X to Y

2018-02-14 Thread Meta via Digitalmars-d-learn
On Monday, 12 February 2018 at 02:05:16 UTC, aliak wrote: From spec: Cast expression: "cast ( Type ) UnaryExpression" converts UnaryExpresssion to Type. And https://dlang.org/spec/operatoroverloading.html#cast makes no mention of the return type of opCast. One could think that the return

Mir Random v0.3.6 and v0.4.0

2018-02-14 Thread 9il via Digitalmars-d-announce
mir-random Advanced Random Number Generators. Mir Random can be used as betterC library or with default/different thread local random engines. Mir Random v0.4.0 1. default params from random variable constructors was removed 2. convention functions for random variable

[Issue 15086] import doesn't verify module declaration

2018-02-14 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15086 --- Comment #26 from Jonathan Marler --- After more pondering I believe I've been able to pin down the fundamental problem. TLDR: The current import semantics fundamentally break import order and module order invariance.

Re: The Expressive C++17 Coding Challenge in D

2018-02-14 Thread John Gabriele via Digitalmars-d-announce
On Tuesday, 13 February 2018 at 23:35:36 UTC, Seb wrote: Someone revived the Expressive C++17 Coding Challenge thread today and I thought this is an excellent opportunity to revive my blog and finally write an article showing why I like D so much:

Re: dxml 0.2.0 released

2018-02-14 Thread Jonathan M Davis via Digitalmars-d-announce
On Wednesday, February 14, 2018 14:09:21 rikki cattermole via Digitalmars-d- announce wrote: > On 14/02/2018 2:02 PM, Adrian Matoga wrote: > > On Wednesday, 14 February 2018 at 10:57:26 UTC, rikki cattermole wrote: > >> See lines: > >> - Input!IR temp = input; > >> - input = temp; > >> > >>

[Issue 10828] datetime toString functions should accept sink

2018-02-14 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=10828 --- Comment #12 from github-bugzi...@puremagic.com --- Commits pushed to master at https://github.com/dlang/phobos https://github.com/dlang/phobos/commit/a55744aa69158fb75d92753daf93210bf7f3548d Work On Issue 10828 - datetime toString functions

[Issue 18437] Dlang's range section of the language tour produces an error

2018-02-14 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=18437 --- Comment #2 from Michael --- No problem! Well done on the quick fix! --

Re: OT: Photo of a single atom by David Nadlinger wins top prize

2018-02-14 Thread Meta via Digitalmars-d
On Wednesday, 14 February 2018 at 16:45:49 UTC, user1234 wrote: On Wednesday, 14 February 2018 at 01:11:33 UTC, David Nadlinger wrote: On Tuesday, 13 February 2018 at 23:09:07 UTC, Ali Çehreli wrote: David (aka klickverbot) is a longtime D contributor […] … who is slightly surprised at the

Re: OT: Photo of a single atom by David Nadlinger wins top prize

2018-02-14 Thread user1234 via Digitalmars-d
On Wednesday, 14 February 2018 at 01:11:33 UTC, David Nadlinger wrote: On Tuesday, 13 February 2018 at 23:09:07 UTC, Ali Çehreli wrote: David (aka klickverbot) is a longtime D contributor […] … who is slightly surprised at the amount of media interest this has attracted. ;) — David Damn

Re: unable to fork: Cannot allocate memory / core.checkedint / gtkd

2018-02-14 Thread number via Digitalmars-d-learn
On Tuesday, 13 February 2018 at 21:46:31 UTC, Stefan Koch wrote: On Tuesday, 13 February 2018 at 14:10:44 UTC, number wrote: Ok, thanks for the info. I guess I'll just use printf then for larger enums. To get the same convince you can use. the enumToString from:

Re: The Expressive C++17 Coding Challenge in D

2018-02-14 Thread Seb via Digitalmars-d-announce
On Wednesday, 14 February 2018 at 17:13:28 UTC, John Gabriele wrote: On Tuesday, 13 February 2018 at 23:35:36 UTC, Seb wrote: Someone revived the Expressive C++17 Coding Challenge thread today and I thought this is an excellent opportunity to revive my blog and finally write an article showing

Re: dmd-2.078.2 problems with Ubuntu 17.10 32Bit

2018-02-14 Thread Martin Tschierschke via Digitalmars-d-learn
On Wednesday, 14 February 2018 at 10:57:47 UTC, Andrea Fontana wrote: On Tuesday, 13 February 2018 at 22:21:18 UTC, Martin Tschierschke wrote: I will downgrade to 16.04., the dist-upgrade to 17.10 was a mistake, resulting in problems with startx and newer kernels so I have to use 4.10. In my

[Issue 18429] alias this enum causes segmentation fault

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

[Issue 18429] alias this enum causes segmentation fault

2018-02-14 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=18429 --- Comment #2 from github-bugzi...@puremagic.com --- Commits pushed to master at https://github.com/dlang/dmd https://github.com/dlang/dmd/commit/df08cb6c83ec29425343d734fb00b0d33f3fd92d Fix Issue 18429 - alias this enum causes segmentation fault

Re: How to represent multiple files in a forum post?

2018-02-14 Thread Jonathan Marler via Digitalmars-d
On Wednesday, 14 February 2018 at 20:16:32 UTC, John Gabriele wrote: Can the har file delimiter be more than three characters? Yes. So long as the delimiter is the consistent across the whole file, i.e. file1 file2 (See

[Issue 17958] Crypto interface in phobos

2018-02-14 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17958 --- Comment #3 from Andre --- (In reply to Seb from comment #2) > Hmm, not sure if this wouldn't be a huge effort for Phobos + given that > crypto needs to be able to be patched within hours, I'm inclined to make > this a WONTFIX

Re: The Expressive C++17 Coding Challenge in D

2018-02-14 Thread Ola Fosheim Grøstad via Digitalmars-d-announce
On Wednesday, 14 February 2018 at 20:37:24 UTC, bachmeier wrote: There's (almost) no such thing as bad publicity... Programming languages and operating systems have a long history of hot advocacy... not sure how it relates to adoption, but it affects perception. E.g. vocal mac users gave

Re: vib.d suppress 404 for no content written

2018-02-14 Thread aberba via Digitalmars-d-learn
On Wednesday, 14 February 2018 at 14:58:14 UTC, Seb wrote: On Wednesday, 14 February 2018 at 14:30:19 UTC, Nicholas Wilson wrote: I have an endpoint that is a post: void postStuff(HTTPServerRequest req, HTTPServerResponse res) { // do some stuff with req res.statusCode = 200; } I do

[Issue 18407] debug should escape nothrow, @nogc, @safe (not just pure)

2018-02-14 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=18407 --- Comment #6 from Timothee Cour --- > This has been approved by Walter including for remaining ones? (nothrow safe) --

[Issue 18438] New: hasStaticMember fails with a T* while hasMember passes

2018-02-14 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=18438 Issue ID: 18438 Summary: hasStaticMember fails with a T* while hasMember passes Product: D Version: D2 Hardware: x86 OS: Mac OS X Status: NEW Severity:

Re: opCast cannot implicitly convert a.opCast of type X to Y

2018-02-14 Thread aliak via Digitalmars-d-learn
On Wednesday, 14 February 2018 at 15:14:24 UTC, Meta wrote: I think the best way to do this is to implement `map` for your optional type. Optional!U map(U, alias f)() { return empty? no!U : some!U(f(t)); } Optional!int a = 3; auto b = a.map!(v => cast(float)v); assert(is(typeof(b) ==

Re: OT: Photo of a single atom by David Nadlinger wins top prize

2018-02-14 Thread data pulverizer via Digitalmars-d
On Tuesday, 13 February 2018 at 23:09:07 UTC, Ali Çehreli wrote: David (aka klickverbot) is a longtime D contributor. https://www.epsrc.ac.uk/newsevents/news/single-trapped-atom-captures-science-photography-competitions-top-prize/ Ali Well done David. I saw this news on my twitter feed and

Re: The Expressive C++17 Coding Challenge in D

2018-02-14 Thread Ola Fosheim Grøstad via Digitalmars-d-announce
On Wednesday, 14 February 2018 at 17:13:28 UTC, John Gabriele wrote: But even then, I don't think you should discount or put off using std.csv as "cheating". Yes and no. The problem with all these exercises is that they say nothing about the language and a lot about some default library,

Re: How to represent multiple files in a forum post?

2018-02-14 Thread John Gabriele via Digitalmars-d
On Wednesday, 14 February 2018 at 18:33:23 UTC, Jonathan Marler wrote: @timotheecour and I came up with a solution to a common problem: How to represent multiple files in a forum post? So we decided to take a stab at creating a standard! (queue links to https://xkcd.com/927) We're calling

Re: The Expressive C++17 Coding Challenge in D

2018-02-14 Thread Seb via Digitalmars-d-announce
On Wednesday, 14 February 2018 at 18:55:23 UTC, bachmeier wrote: On Tuesday, 13 February 2018 at 23:35:36 UTC, Seb wrote: Someone revived the Expressive C++17 Coding Challenge thread today and I thought this is an excellent opportunity to revive my blog and finally write an article showing why

[Issue 18407] debug should escape nothrow, @nogc, @safe (not just pure)

2018-02-14 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=18407 Seb changed: What|Removed |Added Keywords||preapproved --- Comment #5

Re: Flow-Design: OOP component programming

2018-02-14 Thread H. S. Teoh via Digitalmars-d
On Wed, Feb 14, 2018 at 06:43:34PM +, Mark via Digitalmars-d wrote: > On Wednesday, 14 February 2018 at 09:39:20 UTC, Luís Marques wrote: > > It seems that someone once again rediscovered the benefits of > > component programming, in the context of OOP, but (as usual) without > > the more

Re: The Expressive C++17 Coding Challenge in D

2018-02-14 Thread Ola Fosheim Grøstad via Digitalmars-d-announce
On Wednesday, 14 February 2018 at 19:40:12 UTC, Seb wrote: https://www.reddit.com/r/programming/comments/7xih66/the_expressive_c17_coding_challenge_in_d It is getting shot down…

Re: Multiple Alis

2018-02-14 Thread aberba via Digitalmars-d
On Tuesday, 13 February 2018 at 04:33:54 UTC, Nick Sabalausky (Abscissa) wrote: On 02/12/2018 09:38 PM, Walter Bright wrote: On 2/12/2018 4:47 PM, Ali Çehreli wrote: Nothing serious but in case you are confused, there are at least three separate and awesome Alis frequenting these newsgroups.

Re: The Expressive C++17 Coding Challenge in D

2018-02-14 Thread bachmeier via Digitalmars-d-announce
On Wednesday, 14 February 2018 at 20:14:41 UTC, Ola Fosheim Grøstad wrote: On Wednesday, 14 February 2018 at 19:40:12 UTC, Seb wrote: https://www.reddit.com/r/programming/comments/7xih66/the_expressive_c17_coding_challenge_in_d It is getting shot down… That's implied when someone says it's

[Issue 16492] support @nogc in debug{} blocks

2018-02-14 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16492 --- Comment #7 from Manu --- /dance --

How to represent multiple files in a forum post?

2018-02-14 Thread Jonathan Marler via Digitalmars-d
@timotheecour and I came up with a solution to a common problem: How to represent multiple files in a forum post? So we decided to take a stab at creating a standard! (queue links to https://xkcd.com/927) We're calling it "har" (inspired by the name tar). Here's the REPO:

  1   2   >