Re: File append Limit

2011-08-05 Thread Joshua Niehus
@Kagamin > What if > > foreach(i;0..512) { > append("/Users/dirList.txt", text("line ",i,'\n')); > } That works, but I misrepresented the problem and found that the following may be the issue (this looks more like the code im using): import std.conv, std.stdio; void main() { string[] strAr

Re: File append limit?

2011-08-05 Thread Dmitry Olshansky
On 05.08.2011 19:35, Joshua Niehus wrote: Hello, I am running a script that creates a file which lists all the folders in a directory: foreach (string name; dirEntries("/Users/josh/", SpanMode.shallow)) { append("/Users/dirList.txt", name ~ "\n"); } But it seems to stop append

Re: Interface to C page has been screwed up a little

2011-08-05 Thread Jacob Carlborg
On 2011-08-05 20:36, Andrej Mitrovic wrote: http://d-programming-language.org/interfaceToC.html Originally the table just showed D and C types, the 32/64 bit columns weren't there. On my last commit I had this: D type | C type c_long (in core.stdc.config) | long c_ulong (in core.stdc.config) |

Re: NaCl stable ABI

2011-08-05 Thread Andrej Mitrovic
On 8/5/11, Kagamin wrote: > Andrej Mitrovic Wrote: > >> Don't forget having to minimize all the time >> to chat to someone on MSN while playing a game. So there are some >> benefits to having a browser based interface for a game, imo. > > Older games work even better in windowed mode because they

Re: NaCl stable ABI

2011-08-05 Thread Kagamin
Andrej Mitrovic Wrote: > Don't forget having to minimize all the time > to chat to someone on MSN while playing a game. So there are some > benefits to having a browser based interface for a game, imo. Older games work even better in windowed mode because they expect the screen with 4:3 aspect r

Re: File append limit?

2011-08-05 Thread Kagamin
Joshua Niehus Wrote: > Hello, > > I am running a script that creates a file which lists all the folders in a > directory: > > foreach (string name; dirEntries("/Users/josh/", SpanMode.shallow)) { > append("/Users/dirList.txt", name ~ "\n"); > } > > But it seems to stop appending

Interface to C page has been screwed up a little

2011-08-05 Thread Andrej Mitrovic
http://d-programming-language.org/interfaceToC.html Originally the table just showed D and C types, the 32/64 bit columns weren't there. On my last commit I had this: D type | C type c_long (in core.stdc.config) | long c_ulong (in core.stdc.config) | unsigned long long | long long ulong | unsign

Re: Multi-file byte comparison tool. What would you have done differently?

2011-08-05 Thread Kai Meyer
On 08/05/2011 11:13 AM, Jonathan M Davis wrote: On 08/05/2011 03:02 AM, Pelle wrote: On Fri, 05 Aug 2011 00:25:38 +0200, Kai Meyer wrote: I have a need for detecting incorrect byte sequences in multiple files (>2) at a time (as a part of our porting effort to new platforms.) Ideally the files

Re: Minimum value in a range

2011-08-05 Thread bearophile
Kai Meyer: > minCount is, or the usage of minCount in his particular problem? Your usage seems OK. What I meant is that I don't like the design of min/max/minCount. I have expressed my ideas here: http://d.puremagic.com/issues/show_bug.cgi?id=4705 I'd like to know what Andrei thinks about it. Th

Re: Multi-file byte comparison tool. What would you have done differently?

2011-08-05 Thread Jonathan M Davis
> On 08/05/2011 03:02 AM, Pelle wrote: > > On Fri, 05 Aug 2011 00:25:38 +0200, Kai Meyer wrote: > >> I have a need for detecting incorrect byte sequences in multiple files > >> (>2) at a time (as a part of our porting effort to new platforms.) > >> Ideally the files should be identical for all but

Re: Multi-file byte comparison tool. What would you have done differently?

2011-08-05 Thread Kai Meyer
On 08/05/2011 03:02 AM, Pelle wrote: On Fri, 05 Aug 2011 00:25:38 +0200, Kai Meyer wrote: I have a need for detecting incorrect byte sequences in multiple files (>2) at a time (as a part of our porting effort to new platforms.) Ideally the files should be identical for all but a handful of byt

Re: Multi-file byte comparison tool. What would you have done differently?

2011-08-05 Thread Kai Meyer
On 08/04/2011 05:03 PM, Timon Gehr wrote: Kai Meyer wrote: So the question is, how would you make it more D-ish? (Do we have a term analogous to "pythonic" for D? :)) An easy first step to improve the D-Factor would be to replace all these for loops with foreach loops and ref foreach loops.

Re: Minimum value in a range

2011-08-05 Thread Kai Meyer
On 08/04/2011 07:54 PM, bearophile wrote: Kai Meyer: Looking at std.algorithm, I think what you really want is minCount: http://www.d-programming-language.org/phobos/std_algorithm.html#minCount It's a bad design. Bye, bearophile minCount is, or the usage of minCount in his particular probl

File append limit?

2011-08-05 Thread Joshua Niehus
Hello, I am running a script that creates a file which lists all the folders in a directory: foreach (string name; dirEntries("/Users/josh/", SpanMode.shallow)) { append("/Users/dirList.txt", name ~ "\n"); } But it seems to stop appending after 255 lines (this particular folder h

Re: NaCl stable ABI

2011-08-05 Thread Pelle
On Thu, 04 Aug 2011 21:56:16 +0200, Nick Sabalausky wrote: OT: Who the hell uses MSN? Almost everyone below 60 in Sweden, at least a few years ago.

Re: Multi-file byte comparison tool. What would you have done differently?

2011-08-05 Thread Pelle
On Fri, 05 Aug 2011 00:25:38 +0200, Kai Meyer wrote: I have a need for detecting incorrect byte sequences in multiple files (>2) at a time (as a part of our porting effort to new platforms.) Ideally the files should be identical for all but a handful of byte sequences (in a header section)