Re: dub projects generate docs and host on code.dlang.org?

2017-09-12 Thread Joakim via Digitalmars-d
On Tuesday, 12 September 2017 at 18:42:35 UTC, dhasenan wrote: On Monday, 4 September 2017 at 11:15:08 UTC, Joakim wrote: While it's an interesting suggestion, dub has 355 open issues, would be better if more people pitched in on those: https://github.com/dlang/dub/issues It looks like the

Re: database 0.0.8 released

2017-09-12 Thread rikki cattermole via Digitalmars-d-announce
Add on allocator support and many more comments, aka if public facing then document it. Then we'd be in business!

Re: database 0.0.8 released

2017-09-12 Thread Vadim Lopatin via Digitalmars-d-announce
On Tuesday, 12 September 2017 at 17:14:27 UTC, Brian wrote: dlang database library: Database abstraction layer for D programing language, support PostgreSQL / MySQL / SQLite. Project: https://github.com/huntlabs/database Did you see DDBC project? It supports postgres, mysql, and sqlite, too.

Re: Deimos X11 bindings license question

2017-09-12 Thread Vadim Lopatin via Digitalmars-d
On Tuesday, 12 September 2017 at 17:30:42 UTC, Basile B. wrote: On Monday, 11 September 2017 at 12:36:50 UTC, Vadim Lopatin wrote: On Monday, 4 September 2017 at 17:54:36 UTC, Vadim Lopatin wrote: Contributors to DUB package nomad-software/x11 nomad-software weltensturm Geod24 MartinNowak

[Issue 17563] gc_inFinalizer should be public

2017-09-12 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17563 safety0ff.bugz changed: What|Removed |Added CC|

Re: DerelictGL3 slow compilation speed with contexts

2017-09-12 Thread Mike Parker via Digitalmars-d-learn
On Tuesday, 12 September 2017 at 21:55:23 UTC, Igor wrote: Hi All, I switched from using free functions in DerelictGL3 to DerelictGL3_Contexts and compilation speed in optimized build using DMD went from 2 seconds to 7 minutes and using LDC from 2 seconds to 10 seconds. Is this a known

[Issue 14336] Invalid memory access in struct destructor in std.uni

2017-09-12 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14336 safety0ff.bugz changed: What|Removed |Added CC|

Re: Adding empty static this() causes exception

2017-09-12 Thread lobo via Digitalmars-d-learn
On Tuesday, 12 September 2017 at 19:59:52 UTC, Joseph wrote: On Tuesday, 12 September 2017 at 10:08:11 UTC, Moritz Maxeiner wrote: [...] The compiler shouldn't arbitrarily force one to make arbitrary decisions that waste time and money. My solution was to turn those static this's in to

Re: Adding empty static this() causes exception

2017-09-12 Thread nkm1 via Digitalmars-d-learn
On Tuesday, 12 September 2017 at 19:59:52 UTC, Joseph wrote: The compiler shouldn't arbitrarily force one to make arbitrary decisions that waste time and money. You might want to educate yourself about arbitrary decisions that waste time and money:

DerelictGL3 slow compilation speed with contexts

2017-09-12 Thread Igor via Digitalmars-d-learn
Hi All, I switched from using free functions in DerelictGL3 to DerelictGL3_Contexts and compilation speed in optimized build using DMD went from 2 seconds to 7 minutes and using LDC from 2 seconds to 10 seconds. Is this a known problem? Are there any workarounds?

Re: Assertion Error

2017-09-12 Thread Moritz Maxeiner via Digitalmars-d-learn
On Tuesday, 12 September 2017 at 19:44:19 UTC, vino wrote: Hi All, I have a small piece of code which executes perfectly 8 out of 10 times, very rarely it throws an assertion error, so is there a way to find which line of code is causing this error. You should be getting the line number as

Re: Adding empty static this() causes exception

2017-09-12 Thread Moritz Maxeiner via Digitalmars-d-learn
On Tuesday, 12 September 2017 at 19:59:52 UTC, Joseph wrote: On Tuesday, 12 September 2017 at 10:08:11 UTC, Moritz Maxeiner wrote: On Tuesday, 12 September 2017 at 09:11:20 UTC, Joseph wrote: I have two nearly duplicate files I added a static this() to initialize some static members of an

Re: Adding empty static this() causes exception

2017-09-12 Thread Joseph via Digitalmars-d-learn
On Tuesday, 12 September 2017 at 10:08:11 UTC, Moritz Maxeiner wrote: On Tuesday, 12 September 2017 at 09:11:20 UTC, Joseph wrote: I have two nearly duplicate files I added a static this() to initialize some static members of an interface. On one file when I add an empty static this() it

Assertion Error

2017-09-12 Thread vino via Digitalmars-d-learn
Hi All, I have a small piece of code which executes perfectly 8 out of 10 times, very rarely it throws an assertion error, so is there a way to find which line of code is causing this error. From, Vino.B

Re: Array Printing

2017-09-12 Thread vino via Digitalmars-d-learn
On Tuesday, 12 September 2017 at 13:55:17 UTC, lithium iodate wrote: On Tuesday, 12 September 2017 at 06:29:53 UTC, Vino.B wrote: Hi All, Request your help in printing the below array output as per the below required output As a fan of stuffing as much as possible into one line: void

Re: dub projects generate docs and host on code.dlang.org?

2017-09-12 Thread Seb via Digitalmars-d
On Tuesday, 12 September 2017 at 18:42:35 UTC, dhasenan wrote: On Monday, 4 September 2017 at 11:15:08 UTC, Joakim wrote: I'm quite willing to do bug triage, but I don't have the authority. That's great! Simply start going through the issues and comment when you think it should be closed.

Re: dub projects generate docs and host on code.dlang.org?

2017-09-12 Thread dhasenan via Digitalmars-d
On Monday, 4 September 2017 at 11:15:08 UTC, Joakim wrote: While it's an interesting suggestion, dub has 355 open issues, would be better if more people pitched in on those: https://github.com/dlang/dub/issues It looks like the current policy is to leave issues open unless they're exact

Re: database 0.0.8 released

2017-09-12 Thread Adam D. Ruppe via Digitalmars-d-announce
On Tuesday, 12 September 2017 at 17:14:27 UTC, Brian wrote: dlang database library: Database abstraction layer for D programing language, support PostgreSQL / MySQL / SQLite. not bad. - Statement Database.prepare(sql) Create a prepared Statement ooh, this is something I have been wanting

Re: Deimos X11 bindings license question

2017-09-12 Thread Basile B. via Digitalmars-d
On Monday, 11 September 2017 at 12:36:50 UTC, Vadim Lopatin wrote: On Monday, 4 September 2017 at 17:54:36 UTC, Vadim Lopatin wrote: Contributors to DUB package nomad-software/x11 nomad-software weltensturm Geod24 MartinNowak BBasile rikkimax Additionally, contributors to Deimos/libX11

database 0.0.8 released

2017-09-12 Thread Brian via Digitalmars-d-announce
dlang database library: Database abstraction layer for D programing language, support PostgreSQL / MySQL / SQLite. Project: https://github.com/huntlabs/database ## Database Database abstraction layer for D programing language, support PostgreSQL / MySQL / SQLite. ## Example ```D import

Re: Ranges seem awkward to work with

2017-09-12 Thread Jonathan M Davis via Digitalmars-d-learn
On Tuesday, September 12, 2017 13:47:47 Azi Hassan via Digitalmars-d-learn wrote: > On Tuesday, 12 September 2017 at 01:13:29 UTC, Hasen Judy wrote: > > Now, a lot of library functions seem to expect ranges as inputs > > and return ranges as output. > > Unless I'm mistaken, it was done on purpose

Re: D-Man emoji

2017-09-12 Thread H. S. Teoh via Digitalmars-d
On Tue, Sep 12, 2017 at 06:06:52AM +, Seb via Digitalmars-d wrote: > On Monday, 11 September 2017 at 23:01:06 UTC, Walter Bright wrote: > > Here are some D-Man cartoons: > > > > https://github.com/dlang/dlang.org/pull/1648 > > > > which we sometimes use to decorate D related web pages: > >

Re: Call to Runtime.unloadLibrary corrupts stdout and stderr

2017-09-12 Thread Steven Schveighoffer via Digitalmars-d
On 9/4/17 2:20 AM, Brad Roberts via Digitalmars-d wrote: On 9/3/2017 1:07 PM, Rainer Schuetze via Digitalmars-d wrote: This workaround has side effects, i.e. it doesn't automatically close any file still open by the DLLs' instance of the C runtime, so it might cause incomplete files if

Re: D books for $10

2017-09-12 Thread Andre Pany via Digitalmars-d-announce
On Tuesday, 12 September 2017 at 13:25:47 UTC, Ali wrote: On Tuesday, 12 September 2017 at 06:29:04 UTC, Kai Nacke wrote: Hi all, D Web Development by myself (https://www.packtpub.com/web-development/d-web-development) Regards, Kai kind of unrelated question, does vibe.d install and

Awful dlang.org server performance

2017-09-12 Thread kinke via Digitalmars-d
Okay so I'm (sadly) used to every ~10th forum.dlang.org web request to take something like 10-15 seconds to get a response (while the other ~9 are instantaneous). But the last couple of days, the Wiki is hardly usable (editing last night took > 1 minute for the page to reload), and Travis CI

Re: D on devdocs

2017-09-12 Thread ANtlord via Digitalmars-d-announce
On Monday, 11 September 2017 at 21:03:53 UTC, Andre Pany wrote: On Monday, 11 September 2017 at 03:23:47 UTC, ANtlord wrote: Hello. I'm not sure that you know, but documentation of D language has become to devdocs.io. It is web service provides offline documentation. We've got a useful tool

[Issue 14336] Invalid memory access in struct destructor in std.uni

2017-09-12 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14336 --- Comment #1 from Dmitry Olshansky --- (In reply to Vladimir Panteleev from comment #0) > Created attachment 1495 [details] > Valgrind log > > Valgrind (with my Valgrind branch [1]) reports an incorrect memory access in >

[Issue 13829] std.uni.byCodePoint for strings has length

2017-09-12 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=13829 --- Comment #6 from Dmitry Olshansky --- https://github.com/dlang/phobos/pull/5733 --

Re: Array Printing

2017-09-12 Thread Anton Fediushin via Digitalmars-d-learn
On Tuesday, 12 September 2017 at 13:15:01 UTC, Vino.B wrote: Hi, Sorry, it didn't work, the genrated out is as below Oops, sorry. It should look like this: writefln("%-(%s\n%)", array);

Re: Array Printing

2017-09-12 Thread lithium iodate via Digitalmars-d-learn
On Tuesday, 12 September 2017 at 06:29:53 UTC, Vino.B wrote: Hi All, Request your help in printing the below array output as per the below required output As a fan of stuffing as much as possible into one line: void main() { import std.stdio; import std.range; import

Re: Ranges seem awkward to work with

2017-09-12 Thread Azi Hassan via Digitalmars-d-learn
On Tuesday, 12 September 2017 at 01:13:29 UTC, Hasen Judy wrote: Now, a lot of library functions seem to expect ranges as inputs and return ranges as output. Unless I'm mistaken, it was done on purpose to reduce the amount of memory allocations in the standard library so that it becomes

Re: Array Printing

2017-09-12 Thread Azi Hassan via Digitalmars-d-learn
On Tuesday, 12 September 2017 at 06:29:53 UTC, Vino.B wrote: Hi All, Request your help in printing the below array output as per the below required output Array Output: ["C:\\Temp\\TEST2\\BACKUP\\dir1", "34", "C:\\Temp\\TEST2\\BACKUP\\dir2", "36", "C:\\Temp\\TEST3\\BACKUP\\dir1", "69"]

Re: D books for $10

2017-09-12 Thread Ali via Digitalmars-d-announce
On Tuesday, 12 September 2017 at 06:29:04 UTC, Kai Nacke wrote: Hi all, D Web Development by myself (https://www.packtpub.com/web-development/d-web-development) Regards, Kai kind of unrelated question, does vibe.d install and deploys to windows?

Re: Array Printing

2017-09-12 Thread Adam D. Ruppe via Digitalmars-d-learn
On Tuesday, 12 September 2017 at 06:29:53 UTC, Vino.B wrote: Request your help in printing the below array output as per the below required output You can just loop over it and write the components with the tab separator. Did you try that?

Re: Question about DMD's Travis CI

2017-09-12 Thread Michael V. Franklin via Digitalmars-d
On Sunday, 10 September 2017 at 01:25:29 UTC, Michael V. Franklin wrote: I've been battling DMD's Travis CI for the past couple of weeks with a few of my pull requests. It often fails for various reasons that have nothing to do with my PRs (e.g. "The job exceeded the maximum time limit for

Re: Array Printing

2017-09-12 Thread Vino.B via Digitalmars-d-learn
On Tuesday, 12 September 2017 at 07:28:00 UTC, Anton Fediushin wrote: On Tuesday, 12 September 2017 at 06:29:53 UTC, Vino.B wrote: Hi All, Request your help in printing the below array output as per the below required output Array Output: ["C:\\Temp\\TEST2\\BACKUP\\dir1", "34",

How and what do you use for server to server (secure, fast) communication?

2017-09-12 Thread aberba via Digitalmars-d-learn
I'm planning to use in a stateless microservices setup.

Re: Web servers in D

2017-09-12 Thread aberba via Digitalmars-d-learn
On Friday, 25 August 2017 at 05:25:09 UTC, Hasen Judy wrote: What libraries are people using to run webservers other than vibe.d? Don't get me wrong I like the async-io aspect of vibe.d but I don't like the weird template language and the fact that it caters to mongo crowd. I think for D

Re: D-Man emoji

2017-09-12 Thread Walter Bright via Digitalmars-d
On 9/12/2017 12:41 AM, Ali Çehreli wrote: It looks like dlang comic strips now continue on twitter:   https://dlangcomicstrips.tumblr.com/ Ali Lots of great ones, my fave: https://dlangcomicstrips.tumblr.com/image/123588286942

Re: Adding empty static this() causes exception

2017-09-12 Thread Biotronic via Digitalmars-d-learn
The simplest example of a cycle is probably this: module A; import B; int n1 = 17; static this() { n1 = n2; } // module B; import A; int n2 = 42; static this() { n2 = n1; } What's the value of n1 and n2 after module constructors are run? Since both module constructors can run

Re: D-Man emoji

2017-09-12 Thread Andre Pany via Digitalmars-d
On Monday, 11 September 2017 at 23:01:06 UTC, Walter Bright wrote: Here are some D-Man cartoons: https://github.com/dlang/dlang.org/pull/1648 which we sometimes use to decorate D related web pages: http://dlang.org/safed.html http://dlang.org/dstyle.html It seems we are under-utilizing our

Re: Adding empty static this() causes exception

2017-09-12 Thread Biotronic via Digitalmars-d-learn
On Tuesday, 12 September 2017 at 09:11:20 UTC, Joseph wrote: I have two nearly duplicate files I added a static this() to initialize some static members of an interface. On one file when I add an empty static this() it crashes while the other one does not. The exception that happens is

Re: Adding empty static this() causes exception

2017-09-12 Thread Moritz Maxeiner via Digitalmars-d-learn
On Tuesday, 12 September 2017 at 09:11:20 UTC, Joseph wrote: I have two nearly duplicate files I added a static this() to initialize some static members of an interface. On one file when I add an empty static this() it crashes while the other one does not. The exception that happens is

dlang-requetst v0.5.3 released

2017-09-12 Thread ikod via Digitalmars-d-announce
Hello, Since last announced version 0.5.1 several bugfixes and improvements were added: 1. Improvement: "bind" local address enabled on outgoing connections (https://github.com/ikod/dlang-requests/issues/51) 2. Improvement: SNI for ssl connection implemented, as some servers require SNI

Adding empty static this() causes exception

2017-09-12 Thread Joseph via Digitalmars-d-learn
I have two nearly duplicate files I added a static this() to initialize some static members of an interface. On one file when I add an empty static this() it crashes while the other one does not. The exception that happens is Cyclic dependency between module A and B. Why does this occur on

Re: Problems with the DLangUI TreeWidget

2017-09-12 Thread Vadim Lopatin via Digitalmars-d-learn
On Monday, 11 September 2017 at 17:57:14 UTC, pezi_pink wrote: On Monday, 11 September 2017 at 09:00:36 UTC, Vadim Lopatin Fixed in v0.9.121 See example1 / TreeWidget for sample of adding / removing of items. Fantasic! Thank you very much :) Feel free to submit issues on

Re: extern(C) and slices

2017-09-12 Thread Per Nordlöw via Digitalmars-d-learn
On Tuesday, 12 September 2017 at 06:23:57 UTC, Jacob Carlborg wrote: It looks like the length needs to come first [1]. I think it would be technically possible if you flipped the parameters but you would become dependent on the ABI as well. I would recommend a wrapper instead. [1]

Re: D-Man emoji

2017-09-12 Thread Ali Çehreli via Digitalmars-d
It looks like dlang comic strips now continue on twitter: https://dlangcomicstrips.tumblr.com/ Ali

Re: Array Printing

2017-09-12 Thread Anton Fediushin via Digitalmars-d-learn
On Tuesday, 12 September 2017 at 06:29:53 UTC, Vino.B wrote: Hi All, Request your help in printing the below array output as per the below required output Array Output: ["C:\\Temp\\TEST2\\BACKUP\\dir1", "34", "C:\\Temp\\TEST2\\BACKUP\\dir2", "36", "C:\\Temp\\TEST3\\BACKUP\\dir1", "69"]

D books for $10

2017-09-12 Thread Kai Nacke via Digitalmars-d-announce
Hi all, Packt Publishing offers eBooks for $10 for a limited time. If your collection of D eBooks is still incomplete then this is a great chance for you. :-) Some of the eBook + Print bundles are reduced, too. Otherwise you can upgrade to print later at 50% off. D Cookbook by Adam D. Ruppe

Array Printing

2017-09-12 Thread Vino.B via Digitalmars-d-learn
Hi All, Request your help in printing the below array output as per the below required output Array Output: ["C:\\Temp\\TEST2\\BACKUP\\dir1", "34", "C:\\Temp\\TEST2\\BACKUP\\dir2", "36", "C:\\Temp\\TEST3\\BACKUP\\dir1", "69"] ["C:\\Temp\\TEST2\\PROD_TEAM\\dir1", "34",

Re: LDC 1.4.0

2017-09-12 Thread Kai Nacke via Digitalmars-d-announce
On Monday, 11 September 2017 at 23:32:55 UTC, kinke wrote: Hi everyone, on behalf of the LDC team, I'm glad to announce LDC 1.4.0. The highlights of version 1.4 in a nutshell: * Based on D 2.074.1. * Shipping with ldc-build-runtime, a small D tool to easily (cross-)compile the runtime

Re: extern(C) and slices

2017-09-12 Thread Jacob Carlborg via Digitalmars-d-learn
On 2017-09-12 01:03, Nordlöw wrote: If I have a function like `extern(C) void f(void *x, size_t x_sz)` can I instead declare it as `extern(C) void f(void[] x)` ? It looks like the length needs to come first [1]. I think it would be technically possible if you flipped the parameters but

Re: D-Man emoji

2017-09-12 Thread Seb via Digitalmars-d
On Monday, 11 September 2017 at 23:01:06 UTC, Walter Bright wrote: Here are some D-Man cartoons: https://github.com/dlang/dlang.org/pull/1648 which we sometimes use to decorate D related web pages: http://dlang.org/safed.html http://dlang.org/dstyle.html It seems we are under-utilizing our