Re: The D programming language newsgroup should lift its game

2010-04-05 Thread Mike Parker
Walter Bright wrote: Yet I don't have to mess with any of that stuff with a newsreader! I don't have to configure it, zoom it, install ad blockers, etc. It just works, and since little data is transferred, it's fast, too. I also like how it's archived as a bunch of text files. Conversely,

Re: The D programming language newsgroup should lift its game

2010-04-05 Thread Mike Parker
Mathias Laurenz Baumann wrote: So, the users used to a forum might not even appreciate a threaded view over a flat view. Though, I can't confirm that opinion. That makes sense to me. People who use forum software more than newsgroups, if they've used newsgroups at all, are /used/ to it.

Re: "bstring"

2010-04-05 Thread Justin Spahr-Summers
On Mon, 5 Apr 2010 18:48:58 -0400, Michel Fortin wrote: > > Lately I've been using the type "immutable(ubyte)[]" a lot to pass > around binary data of various kinds. In a couple of places now, to save > some typing, I'm using this alias: > > alias immutable(ubyte)[] bstring; > > Would

Re: Binary size with dmd 2.042

2010-04-05 Thread Robert Clipsham
On 06/04/10 00:44, anonymous troll wrote: Does the binary size matter these days? The 1..2 TB drives bring the best gigabyte / dollar ratio. You can store 10 million such programs on a single drive. I believe the issue wasn't with binary size, but rather with why including std.stdio miraculo

Re: Implementation of open_cl

2010-04-05 Thread Trass3r
Why should it be infeasible? It's a simple C API. I started an OO wrapper some time ago but never had the time to finish it. You might use it as a base. http://www.dsource.org/projects/cl4d

data corruption

2010-04-05 Thread Ellery Newcomer
Hey folks, I've got this screwy problem with my old version of dmdz. One of the functions runs through a loop that appends to a string[] about four or five times. When it's chewing through a large amount of source code, maybe 1 call out of 200 the third element of the array gets corrupted jus

Re: Binary size with dmd 2.042

2010-04-05 Thread anonymous troll
bearophile Wrote: > Using dmd 2.042 if I compile on Windows this program: > > import std.stdio; > void main() {} > > The binary is 195_612 bytes. And its asm is 38_574 bytes, it contains tons of > functions like: > _D6object28__T16AssociativeArrayTAyaTiZ16AssociativeArray4keysMFNdZAAya > > >

Re: Bug 4070 and so on

2010-04-05 Thread anonymous troll
bearophile Wrote: > Walter is an expert of writing C code, so he has designed D to avoid such C > traps. But D introduces *many* other constructs and features missing in C, > and they too can contain traps. So it's much better to design D to avoid them > too. Otherwise for each C trap that D av

"bstring"

2010-04-05 Thread Michel Fortin
Lately I've been using the type "immutable(ubyte)[]" a lot to pass around binary data of various kinds. In a couple of places now, to save some typing, I'm using this alias: alias immutable(ubyte)[] bstring; Would that make a worthy addition to the other standard string formats define

Re: The D programming language newsgroup should lift its game

2010-04-05 Thread Steven Schveighoffer
On Mon, 05 Apr 2010 16:51:36 -0400, Walter Bright wrote: Robert Clipsham wrote: You could also add them as newsgroups and http thanks to gmane: news://news.gmane.org/gmane.comp.lang.d.dmd.beta news://news.gmane.org/gmane.comp.lang.d.concurrency news://news.gmane.org/gmane.comp.lang.d.dmd.de

Re: The D programming language newsgroup should lift its game

2010-04-05 Thread Walter Bright
Robert Clipsham wrote: You could also add them as newsgroups and http thanks to gmane: news://news.gmane.org/gmane.comp.lang.d.dmd.beta news://news.gmane.org/gmane.comp.lang.d.concurrency news://news.gmane.org/gmane.comp.lang.d.dmd.devel (dmd-internal) news://news.gmane.org/gmane.comp.lang.d.pho

Re: The D programming language newsgroup should lift its game

2010-04-05 Thread Mathias Laurenz Baumann
After a bit of googling, threaded view is possible, just requires a little work: http://www.simplemachines.org/community/index.php?topic=255510.0 The guy who did this wrote: "If you remember, I added that particular feature to my board some time ago -- http://www.simplemachines.org/communit

Bug 4070 and so on

2010-04-05 Thread bearophile
I am not the only one to ask for small breaking changes that have the purpose of tidying up the language! :-) Days ago I was thinking about a possible new enhancement request, but Simen Kjaeraas and Steven Schveighoffer have written it before me. The meat of this enhancement request is simple:

Re: Memory Corruption with AAs

2010-04-05 Thread Steven Schveighoffer
On Sun, 04 Apr 2010 09:28:44 -0400, Michel Fortin wrote: On 2010-04-03 23:21:48 -0400, Andrei Alexandrescu said: On 04/02/2010 03:53 PM, Walter Bright wrote: dsimcha wrote: I almost never do this with any data structure other than an array because, even if it works for now, I consider