Re: Error: out of memory

2017-03-19 Thread Era Scarecrow via Digitalmars-d-learn
On Saturday, 18 March 2017 at 20:39:20 UTC, StarGrazer wrote: I have some CTFE's and meta programming that cause dmd to run out of memory ;/ I am generating simple classes, but a lot of them. dmd uses about 2GB before it quits. It also only uses about 12% of cpu. I've noticed heavy use of

Re: std.digest toHexString

2017-03-19 Thread Vladimir Panteleev via Digitalmars-d-learn
On Thursday, 16 March 2017 at 16:13:33 UTC, Carl Sturtivant wrote: What's going on here? Looks like this bug: https://issues.dlang.org/show_bug.cgi?id=9279 Has it not been fixed?

Re: exceptions thrown when running app with failed unittests

2017-03-19 Thread Ervin Bosenbacher via Digitalmars-d-learn
On Sunday, 19 March 2017 at 23:23:48 UTC, Adam D. Ruppe wrote: On Sunday, 19 March 2017 at 22:33:26 UTC, Ervin Bosenbacher wrote: Is it normal to see the long trace output instead of just a failed unit test message? Yeah, it is normal, though IMO useless and ought to just be removed (or at

Re: exceptions thrown when running app with failed unittests

2017-03-19 Thread Adam D. Ruppe via Digitalmars-d-learn
On Sunday, 19 March 2017 at 22:33:26 UTC, Ervin Bosenbacher wrote: Is it normal to see the long trace output instead of just a failed unit test message? Yeah, it is normal, though IMO useless and ought to just be removed (or at least shortened to just the top few lines).

Re: exceptions thrown when running app with failed unittests

2017-03-19 Thread Ervin Bosenbacher via Digitalmars-d-learn
On Sunday, 19 March 2017 at 22:33:26 UTC, Ervin Bosenbacher wrote: On Sunday, 19 March 2017 at 22:20:58 UTC, cym13 wrote: On Sunday, 19 March 2017 at 22:13:21 UTC, Ervin Bosenbacher wrote: Its my 2nd day into D, I am already in deep love (:D), and I would like to understand whether this is

Re: Error: out of memory

2017-03-19 Thread Stefan Koch via Digitalmars-d-learn
On Saturday, 18 March 2017 at 20:39:20 UTC, StarGrazer wrote: I have some CTFE's and meta programming that cause dmd to run out of memory ;/ I am generating simple classes, but a lot of them. dmd uses about 2GB before it quites. It also only uses about 12% of cpu. I have 16 GB total memory

Re: Error: out of memory

2017-03-19 Thread XavierAP via Digitalmars-d-learn
On Sunday, 19 March 2017 at 20:50:50 UTC, Gand Alf wrote: just use DMD with the -m64 parameter ;) then you should get a x64 DMD No, at least afaik, then you tell DMD to make a x64 exe, but DMD itself (this particular Windows version) is still a 32-bit exe.

Re: exceptions thrown when running app with failed unittests

2017-03-19 Thread Ervin Bosenbacher via Digitalmars-d-learn
On Sunday, 19 March 2017 at 22:20:58 UTC, cym13 wrote: On Sunday, 19 March 2017 at 22:13:21 UTC, Ervin Bosenbacher wrote: Its my 2nd day into D, I am already in deep love (:D), and I would like to understand whether this is normal behavior or something went terribly wrong, so all help is

Re: exceptions thrown when running app with failed unittests

2017-03-19 Thread Ali Çehreli via Digitalmars-d-learn
On 03/19/2017 03:13 PM, Ervin Bosenbacher wrote: > Its my 2nd day into D, I am already in deep love (:D), and I would like > to understand whether this is normal behavior or something went terribly > wrong, so all help is greatly appreciated. > > Following the book of The D Programming language

Re: exceptions thrown when running app with failed unittests

2017-03-19 Thread cym13 via Digitalmars-d-learn
On Sunday, 19 March 2017 at 22:13:21 UTC, Ervin Bosenbacher wrote: Its my 2nd day into D, I am already in deep love (:D), and I would like to understand whether this is normal behavior or something went terribly wrong, so all help is greatly appreciated. [...] Well, unittests can pass or

exceptions thrown when running app with failed unittests

2017-03-19 Thread Ervin Bosenbacher via Digitalmars-d-learn
Its my 2nd day into D, I am already in deep love (:D), and I would like to understand whether this is normal behavior or something went terribly wrong, so all help is greatly appreciated. Following the book of The D Programming language I have the code below: bool binarySearch(T)(T[]

Re: Inplace toLower()

2017-03-19 Thread ag0aep6g via Digitalmars-d-learn
On 03/19/2017 10:32 PM, Nordlöw wrote: Is there an in-place version of std.uni.toLower() toLowerInPlace

Re: GitHub detects .d source as Makefile?

2017-03-19 Thread Seb via Digitalmars-d-learn
On Saturday, 18 March 2017 at 01:33:13 UTC, David Nadlinger wrote: On Saturday, 18 March 2017 at 00:34:57 UTC, XavierAP wrote: Is this a known issue with D on GitHub? Should I report it I guess? How smart is GH that it doesn't look at the file extension? What happened? The extension .d can

Inplace toLower()

2017-03-19 Thread Nordlöw via Digitalmars-d-learn
Is there an in-place version of std.uni.toLower() If not, how do I most elegantly construct one?

Re: Error: out of memory

2017-03-19 Thread Gand Alf via Digitalmars-d-learn
On Sunday, 19 March 2017 at 20:49:02 UTC, Gand Alf wrote: On Saturday, 18 March 2017 at 23:24:40 UTC, kinke wrote: The Win64 LDC releases [https://github.com/ldc-developers/ldc/releases] feature a 64-bit compiler. just use DMD with the -m64 parameter ;) then you should get a x64 DMD

Re: Error: out of memory

2017-03-19 Thread Gand Alf via Digitalmars-d-learn
On Saturday, 18 March 2017 at 23:24:40 UTC, kinke wrote: The Win64 LDC releases [https://github.com/ldc-developers/ldc/releases] feature a 64-bit compiler. just use DMD with the -m64 parameter ;)

Re: 'Access Violation Error' with parallel-foreach loop

2017-03-19 Thread ikod via Digitalmars-d-learn
On Sunday, 19 March 2017 at 00:46:29 UTC, ooyu wrote: On Saturday, 18 March 2017 at 22:27:27 UTC, Vladimir Panteleev wrote: [...] Aha! Thank you. I try again using std.file.write and input ubyte[] data. auto rq = Request(); auto d =

Re: What is PostgreSQL driver is most stable?

2017-03-19 Thread denizzzka via Digitalmars-d-learn
On Wednesday, 15 March 2017 at 08:54:59 UTC, Paolo Invernizzi wrote: I'm curious: ddb does not support yet arbitrary precision numbers [1], does dpq support them? Does Dlang supports them?