[Issue 17848] Example of floating point literals in the documentation is invalid

2017-09-22 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17848 --- 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/90bce087c1671bec00cf1a2d2d2d6bc84ed3cc4e fix issue 17848 - Example of floating point

Antipattern in core.memory.GC.addRange?

2017-09-22 Thread Steven Schveighoffer via Digitalmars-d
GC.addRange has this signature: static nothrow @nogc void addRange(in void* p, size_t sz, const TypeInfo ti = null); I see a large problem with this. Let's say you malloc an array of struct pointers: struct Foo { ... } import core.stdc.stdlib; auto ptrs = (cast(Foo *)malloc(Foo.sizeof *

Re: code.dlang.org is offline?

2017-09-22 Thread Seb via Digitalmars-d
On Friday, 22 September 2017 at 08:14:43 UTC, Szabo Bogdan wrote: Hi, Is there a reason why code.dlang.org is offline? Thanks, Bogdan It's an ongoing process to make the registry more reliable. However, since a couple of months we run multiple mirrors. At the moment there is:

Re: Simple web server benchmark - vibe.d is slower than node.js and Go?

2017-09-22 Thread Regio via Digitalmars-d
On Thursday, 21 September 2017 at 08:01:23 UTC, Vadim Lopatin wrote: There is a simple set of simple web server apps written in several languages (Go, Rust, Scala, Node-js): https://github.com/nuald/simple-web-benchmark I've sent PR to include D benchmark (vibe.d). I was hoping it could show

[Issue 16548] Shadowing a variable not detected when nesting foreach with associative arrays

2017-09-22 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16548 Vladimir Panteleev changed: What|Removed |Added Keywords|

[Issue 17849] Lexical link for align keyword goes to obscure iasm usage

2017-09-22 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17849 Steven Schveighoffer changed: What|Removed |Added Status|REOPENED|RESOLVED

Re: code.dlang.org is offline?

2017-09-22 Thread Nemanja Boric via Digitalmars-d
On Friday, 22 September 2017 at 08:14:43 UTC, Szabo Bogdan wrote: Hi, Is there a reason why code.dlang.org is offline? Thanks, Bogdan Works from here. Best, Nemanja

Re: code.dlang.org is offline?

2017-09-22 Thread Rene Zwanenburg via Digitalmars-d
On Friday, 22 September 2017 at 08:14:43 UTC, Szabo Bogdan wrote: Hi, Is there a reason why code.dlang.org is offline? Thanks, Bogdan It works fine for me. Can you verify?

Re: Simple web server benchmark - vibe.d is slower than node.js and Go?

2017-09-22 Thread Sönke Ludwig via Digitalmars-d
Am 22.09.2017 um 09:45 schrieb Vadim Lopatin: On Thursday, 21 September 2017 at 19:40:48 UTC, bitwise wrote: On Thursday, 21 September 2017 at 18:55:04 UTC, Vadim Lopatin It does. But Golang uses them, too. Goroutines. Indeed. I'm reading about them right now, and they seem to be

Re: Simple web server benchmark - vibe.d is slower than node.js and Go?

2017-09-22 Thread Sönke Ludwig via Digitalmars-d
Am 21.09.2017 um 20:49 schrieb bitwise: Doesn't vibe-d use Fibers? I tried to build a simple web server with a fiber-based approach once - it was horribly slow. I hope C# (and soon C++) style stackless resumable functions will eventually come to D. It uses them and the overhead actually

Parsing mbox file to display with vibe.d

2017-09-22 Thread Martin Tschierschke via Digitalmars-d-learn
Hello, Parsing mbox file (/var/spool/mail/... on a Ubuntu machine) and splitting to a range or array of mail objects. Has anyone done this with D? please give me hint. (DUB, git, this forum?) Or should I start with formail (-s) as a subprocess? (At first step, I want to run a vibe.d server

Re: code.dlang.org is offline?

2017-09-22 Thread Seb via Digitalmars-d
On Friday, 22 September 2017 at 08:14:43 UTC, Szabo Bogdan wrote: Hi, Is there a reason why code.dlang.org is offline? Thanks, Bogdan No, it's an ongoing process to make the registry more reliable. However, since a couple of months we run multiple mirrors. At the moment there is:

code.dlang.org is offline?

2017-09-22 Thread Szabo Bogdan via Digitalmars-d
Hi, Is there a reason why code.dlang.org is offline? Thanks, Bogdan

Re: A potential danger to dub

2017-09-22 Thread Szabo Bogdan via Digitalmars-d
On Saturday, 16 September 2017 at 17:09:34 UTC, David Gileadi wrote: Let me preface this by saying I love package managers and think dub is one of the best things with dlang. However they can also sometimes be dangerous, as this PyPI incident[1] shows: several Python packages were uploaded

Re: Greetings, New IDE Development

2017-09-22 Thread Jacob Carlborg via Digitalmars-d
On 2017-09-16 21:38, Answar Enchali wrote: Does dmd support outputting the full ast with symbol type information and full line mapping or will these features have to be added? If they are to be added, what would be a ball part man-hour cost to add these features? If we are able to integrate D

Re: Problems with function as parameter

2017-09-22 Thread user1234 via Digitalmars-d-learn
On Friday, 22 September 2017 at 04:32:08 UTC, Josh wrote: As an aside, in that doc it says "The .funcptr property of a delegate will return the function pointer value as a function type". So I also tried Mix_ChannelFinished(().funcptr); and this compiled, but caused a segfault when the

Re: Simple web server benchmark - vibe.d is slower than node.js and Go?

2017-09-22 Thread Vadim Lopatin via Digitalmars-d
On Thursday, 21 September 2017 at 19:40:48 UTC, bitwise wrote: On Thursday, 21 September 2017 at 18:55:04 UTC, Vadim Lopatin It does. But Golang uses them, too. Goroutines. Indeed. I'm reading about them right now, and they seem to be "multiplexed". I wonder if Vibe.d does something similar.

Re: How to check if string is available at compile time

2017-09-22 Thread B4s1L3 via Digitalmars-d-learn
On Thursday, 21 September 2017 at 11:42:36 UTC, David Bennett wrote: Hi Guys, Is there an easy way to check if the value of string passed to a template is available at compile time? Yeah , sure and I have such a template in my library:

Re: static array with inferred size

2017-09-22 Thread Dominikus Dittes Scherkl via Digitalmars-d
On Thursday, 21 September 2017 at 13:58:14 UTC, Timon Gehr wrote: On 21.09.2017 12:33, Per Nordlöw wrote: On Wednesday, 20 September 2017 at 18:41:51 UTC, Timon Gehr wrote: Can that be done without breakages? -- Andrei No. Are thinking about     typeof([1,2]) changing from     int[]

Re: code.dlang.org is offline?

2017-09-22 Thread John Colvin via Digitalmars-d
On Friday, 22 September 2017 at 08:14:43 UTC, Szabo Bogdan wrote: Hi, Is there a reason why code.dlang.org is offline? Thanks, Bogdan Works for me

Re: code.dlang.org is offline?

2017-09-22 Thread Szabo Bogdan via Digitalmars-d
On Friday, 22 September 2017 at 08:14:43 UTC, Szabo Bogdan wrote: Hi, Is there a reason why code.dlang.org is offline? Thanks, Bogdan it looks like http://dlang.org/ is down too... ``` traceroute to dlang.org (162.217.114.56), 30 hops max, 60 byte packets 1 ... 0.434

[Issue 17851] New: htonl already defined in phobos64.lib

2017-09-22 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17851 Issue ID: 17851 Summary: htonl already defined in phobos64.lib Product: D Version: D2 Hardware: x86_64 OS: Windows Status: NEW Severity: normal

Dub use local fork

2017-09-22 Thread Nicholas Wilson via Digitalmars-d-learn
I want to use a fork of one of my dub dependencies so I can make sure that it works before I merge the fork into upstream. http://code.dlang.org/advanced_usage says Path-based dependencies Package descriptions in the dub.json/dub.sdl can specify a path instead of a version; this can

[Issue 17596] dmd d 2.073.2 and 2.074.1 interim generated dmd segfaults on FreeBSD 12-CURRENT

2017-09-22 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17596 --- Comment #10 from Cy Schubert --- Sorry about the absence. Too many projects, this one happened to be pushed down the stack. I'm looking at this again. --

Re: A potential danger to dub

2017-09-22 Thread Matt via Digitalmars-d
On Saturday, 16 September 2017 at 17:09:34 UTC, David Gileadi wrote: Let me preface this by saying I love package managers and think dub is one of the best things with dlang. However they can also sometimes be dangerous, as this PyPI incident[1] shows: several Python packages were uploaded

Re: Dub use local fork

2017-09-22 Thread Mike Parker via Digitalmars-d-learn
On Saturday, 23 September 2017 at 03:13:15 UTC, Nicholas Wilson wrote: my dub.selections.json is currently: { "fileVersion": 1, "versions": { "derelict-cl": "2.0.0", "derelict-cuda": "2.0.1", "derelict-util": "2.1.0",

Re: Antipattern in core.memory.GC.addRange?

2017-09-22 Thread safety0ff via Digitalmars-d
On Friday, 22 September 2017 at 21:29:10 UTC, Steven Schveighoffer wrote: GC.addRange has this signature: static nothrow @nogc void addRange(in void* p, size_t sz, const TypeInfo ti = null); I see a large problem with this. Let's say you malloc an array of struct pointers: struct Foo {

[Issue 17850] New: Poor Documentation of the Realtime thread feature

2017-09-22 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17850 Issue ID: 17850 Summary: Poor Documentation of the Realtime thread feature Product: D Version: D2 Hardware: x86_64 OS: Windows Status: NEW Severity:

Re: Finding class template instantiations via runtime reflection (for openmethods)

2017-09-22 Thread bitwise via Digitalmars-d
On Thursday, 21 September 2017 at 20:32:38 UTC, Jean-Louis Leroy wrote: Neither 'Bar!int' nor 'BarInt' appear in 'localClasses'. Ideas? The information you can retrieve through localClasses is limited. AFAIK it only retrieves plain non-template classes declared directly in the module. Last

[Issue 17851] htonl already defined in phobos64.lib

2017-09-22 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17851 --- Comment #1 from Heromyth --- It seems these functions have been defined in Ws2_32.lib, see https://msdn.microsoft.com/en-us/library/windows/desktop/ms738556(v=vs.85).aspx --

Re: Dub use local fork

2017-09-22 Thread rikki cattermole via Digitalmars-d-learn
On 23/09/2017 4:13 AM, Nicholas Wilson wrote: I want to use a fork of one of my dub dependencies so I can make sure that it works before I merge the fork into upstream. http://code.dlang.org/advanced_usage says     Path-based dependencies     Package descriptions in the dub.json/dub.sdl can

Re: Finding class template instantiations via runtime reflection (for openmethods)

2017-09-22 Thread bitwise via Digitalmars-d
On Thursday, 21 September 2017 at 20:32:38 UTC, Jean-Louis Leroy wrote: Neither 'Bar!int' nor 'BarInt' appear in 'localClasses'. Ideas? The information you can retrieve through localClasses is limited. AFAIK it only retrieves plain non-template classes declared directly in the module. Last

Re: Finding class template instantiations via runtime reflection (for openmethods)

2017-09-22 Thread bitwise via Digitalmars-d
On Thursday, 21 September 2017 at 20:32:38 UTC, Jean-Louis Leroy wrote: Neither 'Bar!int' nor 'BarInt' appear in 'localClasses'. Ideas? The information you can retrieve through localClasses is limited. AFAIK it only retrieves plain non-template classes declared directly in the module. Last

Re: Connecting python to D on socket of localhost : target machine actively refuses connection

2017-09-22 Thread Sergei Degtiarev via Digitalmars-d-learn
On Friday, 22 September 2017 at 04:06:08 UTC, Enjoys Math wrote: Here's my minimal D code (server.d): public: this(ushort port, string address="") { super(& run); if (address == "") address = "DESKTOP-T49RGUJ";

Re: Connecting python to D on socket of localhost : target machine actively refuses connection

2017-09-22 Thread rikki cattermole via Digitalmars-d-learn
On 23/09/2017 3:26 AM, Sergei Degtiarev wrote: On Friday, 22 September 2017 at 04:06:08 UTC, Enjoys Math wrote: Here's my minimal D code (server.d): public: this(ushort port, string address="") {     super(& run);     if (address == "")     address = "DESKTOP-T49RGUJ";    

Re: code.dlang.org is offline?

2017-09-22 Thread Computermatronic via Digitalmars-d
On Friday, 22 September 2017 at 08:14:43 UTC, Szabo Bogdan wrote: Hi, Is there a reason why code.dlang.org is offline? Thanks, Bogdan Well, it seems to be working now.

Re: code.dlang.org is offline?

2017-09-22 Thread Suliman via Digitalmars-d
On Friday, 22 September 2017 at 08:14:43 UTC, Szabo Bogdan wrote: Hi, Is there a reason why code.dlang.org is offline? Thanks, Bogdan Who is host code.dlang.org?

Re: static array with inferred size

2017-09-22 Thread Jonathan M Davis via Digitalmars-d
On Friday, September 22, 2017 08:19:32 Steven Schveighoffer via Digitalmars- d wrote: > On 9/22/17 3:55 AM, Dominikus Dittes Scherkl wrote: > > On Thursday, 21 September 2017 at 13:58:14 UTC, Timon Gehr wrote: > >> On 21.09.2017 12:33, Per Nordlöw wrote: > >>> On Wednesday, 20 September 2017 at

[Issue 17848] New: Example of floating point literals in the documentation is invalid

2017-09-22 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17848 Issue ID: 17848 Summary: Example of floating point literals in the documentation is invalid Product: D Version: D2 Hardware: x86 OS: Linux Status:

[Issue 17844] std.process.execute should allow not capturing stderr

2017-09-22 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17844 --- Comment #2 from github-bugzi...@puremagic.com --- Commits pushed to master at https://github.com/dlang/phobos https://github.com/dlang/phobos/commit/71adbeee85f4f97d5b3cf93bed28c0f4779e2d23 Fix Issue 17844 - std.process.execute should allow not

[Issue 17844] std.process.execute should allow not capturing stderr

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

Last post from me not displayed on web frontend?

2017-09-22 Thread Martin Tschierschke via Digitalmars-d-learn
This post is to try if it works now. But I got an answer from Adam... Thank you.

Re: Finding class template instantiations via runtime reflection (for openmethods)

2017-09-22 Thread Steven Schveighoffer via Digitalmars-d
On 9/21/17 4:32 PM, Jean-Louis Leroy wrote: It did not take long! Someone tried to create templatized open methods and it didn't work right of the box. I expected that, but in fact there may be a bit of hope. You cannot have virtual function templates in C++ or in D because the layout of the

Re: static array with inferred size

2017-09-22 Thread Steven Schveighoffer via Digitalmars-d
On 9/22/17 3:55 AM, Dominikus Dittes Scherkl wrote: On Thursday, 21 September 2017 at 13:58:14 UTC, Timon Gehr wrote: On 21.09.2017 12:33, Per Nordlöw wrote: On Wednesday, 20 September 2017 at 18:41:51 UTC, Timon Gehr wrote: Can that be done without breakages? -- Andrei No. Are thinking

CTFE static array error: cannot modify read-only constant

2017-09-22 Thread Johan via Digitalmars-d-learn
Hi all, ``` auto foo(const int[3] x) { int[3] y = x; y[0] = 1; // line 4 return y; } immutable int[3] a = [0,1,2]; immutable int[3] b = foo(a); // line 8 ``` compiles with an error: ``` 4: Error: cannot modify read-only constant [0, 1, 2] 8:called from here:

[Issue 17849] New: Documentation of align is incorrect

2017-09-22 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17849 Issue ID: 17849 Summary: Documentation of align is incorrect Product: D Version: D2 Hardware: x86 OS: Linux Status: NEW Severity: enhancement

Re: Multidimensional dynamic array of strings initialized with split()

2017-09-22 Thread Ludovit Lucenic via Digitalmars-d-learn
On Thursday, 5 September 2013 at 16:22:46 UTC, Ali Çehreli wrote: Compiling with "DMD64 D Compiler v2.064-devel-52cc287" produces the following errors: * You had byLines in your original code as well. Shouldn't it be byLine? * You are missing the closing brace of the foreach loop as well.

[Issue 17849] Documentation of align is incorrect

2017-09-22 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17849 ag0ae...@gmail.com changed: What|Removed |Added Status|NEW |RESOLVED CC|

[Issue 17848] Example of floating point literals in the documentation is invalid

2017-09-22 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17848 ag0ae...@gmail.com changed: What|Removed |Added Keywords||pull, spec CC|

Re: What the hell is wrong with D?

2017-09-22 Thread Patrick Schluter via Digitalmars-d-learn
On Tuesday, 19 September 2017 at 18:34:13 UTC, Brad Anderson wrote: On Tuesday, 19 September 2017 at 18:17:47 UTC, jmh530 wrote: On Tuesday, 19 September 2017 at 17:40:20 UTC, EntangledQuanta wrote: Thanks for wasting some of my life... Just curious about who will justify the behavior and

Should we add `a * b` for vectors?

2017-09-22 Thread Ilya Yaroshenko via Digitalmars-d
Should we add `a * b` to ndslice for 1d vectors? Discussion at https://github.com/libmir/mir-algorithm/issues/91

Re: Finding class template instantiations via runtime reflection (for openmethods)

2017-09-22 Thread Ali Çehreli via Digitalmars-d
On 09/22/2017 05:16 AM, Steven Schveighoffer wrote: > On 9/21/17 4:32 PM, Jean-Louis Leroy wrote: >> it seems that classes that >> come from class template instantiations are not registered in >> ModuleInfo > I would say it's a bug. > > -Steve I think so too. I wanted to hear it from Steve

Re: Weka.IO in the news... but not mentioning Dlang... why?

2017-09-22 Thread Shachar Shemesh via Digitalmars-d
On 21/09/17 09:18, Suliman wrote: On Thursday, 3 August 2017 at 21:01:28 UTC, Joakim wrote: On Thursday, 3 August 2017 at 20:55:35 UTC, Pradeep Gowda wrote: On Thursday, 3 August 2017 at 20:47:30 UTC, Joakim wrote: Please tell me which enterprise storage company advertises the programming

Re: How to list all process directories under /proc/

2017-09-22 Thread angel via Digitalmars-d-learn
On Sunday, 17 September 2017 at 08:15:58 UTC, Ky-Anh Huynh wrote: Hi, I want to list all processes by scanning /proc/. The following code doesn't work [code] foreach (string fstatm; dirEntries("/proc/", "[0-9]*", SpanMode.shallow)) { writefln("pid %s", fstatm); } [/code] as it

[Issue 17849] Documentation of align is incorrect

2017-09-22 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17849 --- Comment #2 from Peter Varo --- My confusion was coming from the fact, that the 'lexical' page is referencing the 'iasm' when introducing the 'align' keyword. (https://github.com/dlang/dlang.org/blob/master/spec/lex.dd#L942)

[Issue 17849] Lexical link for align keyword goes to obscure iasm usage

2017-09-22 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17849 Steven Schveighoffer changed: What|Removed |Added Status|RESOLVED|REOPENED

[Issue 17849] Lexical link for align keyword goes to obscure iasm usage

2017-09-22 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17849 Steven Schveighoffer changed: What|Removed |Added Keywords||pull ---