Re: Splitting up large dirty file

2018-05-15 Thread Jon Degenhardt via Digitalmars-d-learn
On Tuesday, 15 May 2018 at 20:36:21 UTC, Dennis wrote: I have a file with two problems: - It's too big to fit in memory (apparently, I thought 1.5 Gb would fit but I get an out of memory error when using std.file.read) - It is dirty (contains invalid Unicode characters, null bytes in the

Re: Splitting up large dirty file

2018-05-15 Thread Jonathan M Davis via Digitalmars-d-learn
On Tuesday, May 15, 2018 20:36:21 Dennis via Digitalmars-d-learn wrote: > I have a file with two problems: > - It's too big to fit in memory (apparently, I thought 1.5 Gb > would fit but I get an out of memory error when using > std.file.read) > - It is dirty (contains invalid Unicode characters,

Re: Splitting up large dirty file

2018-05-15 Thread Steven Schveighoffer via Digitalmars-d-learn
On 5/15/18 4:36 PM, Dennis wrote: I have a file with two problems: - It's too big to fit in memory (apparently, I thought 1.5 Gb would fit but I get an out of memory error when using std.file.read) - It is dirty (contains invalid Unicode characters, null bytes in the middle of lines) I want

Splitting up large dirty file

2018-05-15 Thread Dennis via Digitalmars-d-learn
I have a file with two problems: - It's too big to fit in memory (apparently, I thought 1.5 Gb would fit but I get an out of memory error when using std.file.read) - It is dirty (contains invalid Unicode characters, null bytes in the middle of lines) I want to write a program that splits it

Re: there's no gdc for windows?

2018-05-15 Thread Eugene Wissner via Digitalmars-d-learn
On Tuesday, 15 May 2018 at 14:25:31 UTC, Dr.No wrote: Has gdc been supported for Windows? if so, where can I find it? I've only find Linux versions so far... Just the same as GCC, you need mingw or cygwin to run gdc on windows. Unfortunately GDC doesn't provide pre-built binaries currently,

there's no gdc for windows?

2018-05-15 Thread Dr.No via Digitalmars-d-learn
Has gdc been supported for Windows? if so, where can I find it? I've only find Linux versions so far...

Re: How do I make the debugger break when an exception is thrown in D?

2018-05-15 Thread WebFreak001 via Digitalmars-d-learn
On Tuesday, 15 May 2018 at 10:50:15 UTC, Ethan Scott wrote: I constantly keep getting this error. Please help. you can override the default exception handling to skip the global try/catch block and then GDB will halt instead of letting it run.

Re: How do I make the debugger break when an exception is thrown in D?

2018-05-15 Thread Basile B. via Digitalmars-d-learn
On Tuesday, 15 May 2018 at 10:50:15 UTC, Ethan Scott wrote: I constantly keep getting this error. Please help. an example: $ gdb myprog $ break _d_throwc $ break _d_throwdwarf $ run then when it breaks, $ bt because the breaks are always a bit deeper than the interesting stuff. Baz.

How do I make the debugger break when an exception is thrown in D?

2018-05-15 Thread Ethan Scott via Digitalmars-d-learn
I constantly keep getting this error. Please help.

Re: Why The D Style constants are written in camelCase?

2018-05-15 Thread Jonathan M Davis via Digitalmars-d-learn
On Tuesday, May 15, 2018 08:48:45 Martin Tschierschke via Digitalmars-d- learn wrote: > On Wednesday, 9 May 2018 at 11:52:11 UTC, Jonathan M Davis wrote: > > On Wednesday, May 09, 2018 09:38:14 BoQsc via > > > > Digitalmars-d-learn wrote: > >> [...] > > > > Every language makes its own choices

Re: Why The D Style constants are written in camelCase?

2018-05-15 Thread Martin Tschierschke via Digitalmars-d-learn
On Wednesday, 9 May 2018 at 11:52:11 UTC, Jonathan M Davis wrote: On Wednesday, May 09, 2018 09:38:14 BoQsc via Digitalmars-d-learn wrote: [...] Every language makes its own choices with regards to how it goes about things, some of which are purely subjective. [...] - Jonathan M Davis