Re: TDPL a bad idea?

2010-02-05 Thread Bane
Walter Bright Wrote: > dsimcha wrote: > > == Quote from Walter Bright (newshou...@digitalmars.com)'s article > >> I love the news interface, too, and see no reason to give it up. But the > >> web forums have their advantages, too. That's why I'd like to have a > >> system that is accessible from b

Disable NaN and Inf

2010-02-05 Thread Jonathan Crapuchettes
I would like to divide one array by another using the slice syntax so that I can benefit from the vectorized operation, but I am running into a problem. Some of the numbers is my denominator array are 0, producing NaNs and Infs in the result. My question is: Is there a way to force 0/0 and x/0

Re: It's interesting how many old bugzilla issues are still open though they're done

2010-02-05 Thread Don
Trass3r wrote: The problem is with the bugzilla keywords. We need something like a 'partial-patch' keyword. In fact the current set of keywords is *far* from ideal, and the version selection is really terrible. I know it's probably infeasible but just imagine an automatic system that tests st

Re: A thought for template alias parameters?

2010-02-05 Thread Joel Anderson
On 2/5/2010 8:55 PM, Joel Anderson wrote: On 2/4/2010 4:41 PM, Trip Volpe wrote: Joel Anderson Wrote: That's one of the reasons I've wished D had a nicer syntax for the string mixin format. This one kinda scares people away :p What kind of syntax do you have in mind? Making mixins less obt

Re: A thought for template alias parameters?

2010-02-05 Thread Joel Anderson
On 2/4/2010 4:41 PM, Trip Volpe wrote: Joel Anderson Wrote: That's one of the reasons I've wished D had a nicer syntax for the string mixin format. This one kinda scares people away :p What kind of syntax do you have in mind? Making mixins less obtrusive might ease aggravation when they're

Re: TDPL a bad idea?

2010-02-05 Thread Walter Bright
dsimcha wrote: == Quote from Walter Bright (newshou...@digitalmars.com)'s article I love the news interface, too, and see no reason to give it up. But the web forums have their advantages, too. That's why I'd like to have a system that is accessible from both. Post on the web forum, and it is al

Re: TDPL a bad idea?

2010-02-05 Thread dsimcha
== Quote from Walter Bright (newshou...@digitalmars.com)'s article > I love the news interface, too, and see no reason to give it up. But the > web forums have their advantages, too. That's why I'd like to have a > system that is accessible from both. Post on the web forum, and it is > also posted

Re: TDPL a bad idea?

2010-02-05 Thread Walter Bright
retard wrote: It's interesting to see that even though modern web page/app developers have spent enormous effort on usability issues, techies still don't like it. The sad fact is that web forums are more or less a poor copy of the good old usenet newsgroups. The new format requires more bandwid

Re: TDPL a bad idea?

2010-02-05 Thread Walter Bright
BCS wrote: If D were to quit providing a NNTP interface, I'd loose interest in participating in these discussions. Heck, (HINT, HINT, HINT) the fact that Tango has a forum rather than a news group is half or more of the reason I don't use it. I love the news interface, too, and see no reason

Re: Array operation for computing the dot product?

2010-02-05 Thread Walter Bright
retard wrote: // compiles and runs just fine http://d.puremagic.com/issues/show_bug.cgi?id=3774

Re: Array operation for computing the dot product?

2010-02-05 Thread Walter Bright
Ali Çehreli wrote: It would be different from C++ if everything were in the same module, right? Right. If I understand it correctly, private is not honored for the code in the same module. Is that for all uses of private? Yes.

Re: Proposal: Dedicated-string-mixin templates/functions

2010-02-05 Thread Nick Sabalausky
"Chad J" wrote in message news:hkic29$ug...@digitalmars.com... > Nick Sabalausky wrote: >> ... > > I for one really want something like that. I think I posted a > suggestion like this as well: > http://www.digitalmars.com/pnews/read.php?server=news.digitalmars.com&group=digitalmars.D&artnum=9557

Re: @safe status

2010-02-05 Thread dsimcha
== Quote from strtr (st...@spam.com)'s article > Walter Bright Wrote: > > Every function in Phobos needs to be reviewed and tagged as safe, > > trusted or system as appropriate. > I am sorry if this is totally stupid, but shouldn't it be possible for the compiler to do this? addition to -profile ma

Re: Array operation for computing the dot product?

2010-02-05 Thread Ali Çehreli
Walter Bright wrote: > retard wrote: >> module m1; >> >> class Foo { >> public void bar() {} >> } >> >> class Bar : private foo { >> } >> >> module m2; >> import m1; >> >> void main() { >> Foo a = new Bar(); >> a.bar(); >> } >> >> // compiles and runs just fine > > That's a bug in dmd. It sh

Re: @safe status

2010-02-05 Thread Simen kjaeraas
On Sat, 06 Feb 2010 01:43:27 +0100, strtr wrote: Walter Bright Wrote: Every function in Phobos needs to be reviewed and tagged as safe, trusted or system as appropriate. I am sorry if this is totally stupid, but shouldn't it be possible for the compiler to do this? addition to -profile may

Re: Advertising D on Stackoverflow?

2010-02-05 Thread BCS
Hello Bernard, On 29/01/10 20:16, BCS wrote: Should we submit an add to this? http://blog.stackoverflow.com/2010/01/open-source-ad-stats/ What would we advertise? DMD? Phobos? Tango? LDC? GDC? All or any of the above? -- <

Re: Array operation for computing the dot product?

2010-02-05 Thread Walter Bright
retard wrote: Fri, 05 Feb 2010 16:03:22 -0800, Walter Bright wrote: retard wrote: Fri, 05 Feb 2010 13:24:44 -0800, Walter Bright wrote: retard wrote: {protection-attr} == perhaps one of these {public|protected|package| private} - I have no effing clue what this does It actually does th

Re: Array operation for computing the dot product?

2010-02-05 Thread strtr
Walter Bright Wrote: > retard wrote: > > {protection-attr} == perhaps one of these {public|protected|package| > > private} - I have no effing clue what this does > > It actually does the same thing as it does in C++ (with the addition of > package). I didn't know I could protect a superclass

Re: @safe status

2010-02-05 Thread strtr
Walter Bright Wrote: > Every function in Phobos needs to be reviewed and tagged as safe, > trusted or system as appropriate. I am sorry if this is totally stupid, but shouldn't it be possible for the compiler to do this? addition to -profile maybe It might also be interesting if the compiler we

Re: Array operation for computing the dot product?

2010-02-05 Thread retard
Fri, 05 Feb 2010 16:03:22 -0800, Walter Bright wrote: > retard wrote: >> Fri, 05 Feb 2010 13:24:44 -0800, Walter Bright wrote: >> >>> retard wrote: {protection-attr} == perhaps one of these {public|protected|package| private} - I have no effing clue what this does >>> It actual

Re: Proposal: Dedicated-string-mixin templates/functions

2010-02-05 Thread Chad J
Nick Sabalausky wrote: > ... I for one really want something like that. I think I posted a suggestion like this as well: http://www.digitalmars.com/pnews/read.php?server=news.digitalmars.com&group=digitalmars.D&artnum=95579 This also came up in another thread and was warmly received, in the cont

Re: Array operation for computing the dot product?

2010-02-05 Thread Walter Bright
retard wrote: Fri, 05 Feb 2010 13:24:44 -0800, Walter Bright wrote: retard wrote: {protection-attr} == perhaps one of these {public|protected|package| private} - I have no effing clue what this does It actually does the same thing as it does in C++ (with the addition of package). I see. I

Re: @safe status

2010-02-05 Thread Walter Bright
Michel Fortin wrote: So what's the plan? Should everything theoretically safe in Phobos be @trusted to avoid complains about unnecessary checks in programs that don't bother about safety? Or should we make things @safe and promote them to @trusted (for performance) only after a careful review?

Re: Array operation for computing the dot product?

2010-02-05 Thread retard
Fri, 05 Feb 2010 13:24:44 -0800, Walter Bright wrote: > retard wrote: >> {protection-attr} == perhaps one of these {public|protected|package| >> private} - I have no effing clue what this does > > It actually does the same thing as it does in C++ (with the addition of > package). I see. I only

@safe status

2010-02-05 Thread Michel Fortin
On 2010-02-05 15:22:44 -0500, Walter Bright said: Michel Fortin wrote: My only wish in relation to that is that SafeD be more usable. I know safe D isn't fully implemented, but can you say which missing part of it you need? First, I'd like to say that language itself isn't too bad. I thin

Re: Advertising D on Stackoverflow?

2010-02-05 Thread Bernard Helyer
On 29/01/10 20:16, BCS wrote: Should we submit an add to this? http://blog.stackoverflow.com/2010/01/open-source-ad-stats/ What would we advertise? DMD? Phobos?

Re: Array operation for computing the dot product?

2010-02-05 Thread Walter Bright
retard wrote: {protection-attr} == perhaps one of these {public|protected|package| private} - I have no effing clue what this does It actually does the same thing as it does in C++ (with the addition of package).

Re: TDPL a bad idea?

2010-02-05 Thread Jérôme M. Berger
Nick Sabalausky wrote: > - Actual user accounts. Anonymous reading/posting is great, and many web > forums can still do that anyway, but they can also have real user accounts > to, for example, prevent posters from pretending to be someone else. I > rather like user profiles, too (although they'

Re: Proposal: Dedicated-string-mixin templates/functions

2010-02-05 Thread Trass3r
Proposed: --- mixin template foo1 { const char[] foo1 = "int a;"; } mixin char[] foo2() { return "int b;"; } foo1!(); foo2(); --- Well, it's a little bit indistinctive, hard to tell if it's a normal function call or a mixin without e.g. using a

Re: Proposal: Dedicated-string-mixin templates/functions

2010-02-05 Thread Nick Sabalausky
"Simen kjaeraas" wrote in message news:op.u7n9c0nnvxi...@biotronic-pc.home... > Nick Sabalausky wrote: > >>> Actually, this is already in Bugzilla. >>> ( http://d.puremagic.com/issues/show_bug.cgi?id=3666 ) >>> And it will probably come as no surprise that I, as creator of that >>> request, very

Re: TDPL a bad idea?

2010-02-05 Thread Nick Sabalausky
"BCS" wrote in message news:a6268fffef38cc745343a81...@news.digitalmars.com... > Hello Gareth, > > >> I actually like the newsgroup format (more than modern web forums) now >> that I've gone to the trouble of setting up Thunderbrid but I guess >> they did put me off initially. >> I had the same

Re: Proposal: Dedicated-string-mixin templates/functions

2010-02-05 Thread Simen kjaeraas
Nick Sabalausky wrote: Actually, this is already in Bugzilla. ( http://d.puremagic.com/issues/show_bug.cgi?id=3666 ) And it will probably come as no surprise that I, as creator of that request, very much support this. Wow, that's kinda crazy, the same exact suggestion, and honestly I swear

Re: Proposal: Dedicated-string-mixin templates/functions

2010-02-05 Thread Nick Sabalausky
"Simen kjaeraas" wrote in message news:op.u7nl710qvxi...@biotronic-pc.home... > Nick Sabalausky wrote: > >> Point #1: It's often been noted that string mixin syntax is ugly. Which >> is a >> bad thing in and of itself, but it also tends to discourage use of string >> mixins despite their high d

Re: Array operation for computing the dot product?

2010-02-05 Thread retard
Fri, 05 Feb 2010 11:35:20 -0800, Ali Çehreli wrote: > I did need to change my text only a few times, e.g. when constant-sized > arrays became value types. You can easily check from the changelogs what happened between dmd 1.00 and 1.056. Quite a lot changed. You could even write a 200 page book

Re: Array operation for computing the dot product?

2010-02-05 Thread Walter Bright
Michel Fortin wrote: My only wish in relation to that is that SafeD be more usable. I know safe D isn't fully implemented, but can you say which missing part of it you need?

Re: Array operation for computing the dot product?

2010-02-05 Thread Walter Bright
grauzone wrote: Walter Bright wrote: retard wrote: I can easily come up with 100 other such features. Please do so, and submit them to bugzilla. You know, the problem with Bugzilla is, that most entries simply remain unreplied. Especially when they inquire about strange language features

Re: Array operation for computing the dot product?

2010-02-05 Thread grauzone
Walter Bright wrote: retard wrote: I can easily come up with 100 other such features. Please do so, and submit them to bugzilla. You know, the problem with Bugzilla is, that most entries simply remain unreplied. Especially when they inquire about strange language features or dark corner ca

Re: Array operation for computing the dot product?

2010-02-05 Thread Michel Fortin
On 2010-02-05 14:35:20 -0500, Ali Çehreli said: D2 obviously must stabilize before being useful; but it is great that it moves fast before that happens. D2 is already useful for small scale projects. I wrote the system to manage license codes for my Mac shareware (Magic Launch) with D2. It's

Re: Array operation for computing the dot product?

2010-02-05 Thread Ali Çehreli
retard wrote: > The funny thing about D is that if you start writing a book about it, > there's a high desire to change the core features and add more of them in > the community. I have started writing a D book in June and have not desired to change much about the language. I did find the half

Re: It's interesting how many old bugzilla issues are still open though they're done

2010-02-05 Thread Trass3r
The problem is with the bugzilla keywords. We need something like a 'partial-patch' keyword. In fact the current set of keywords is *far* from ideal, and the version selection is really terrible. I know it's probably infeasible but just imagine an automatic system that tests stuff like vers

Re: Making all strings UTF ranges has some risk of WTF

2010-02-05 Thread Andrei Alexandrescu
Steve Teale wrote: Andrei Alexandrescu Wrote: What would you do? Any ideas are welcome. Andrei, congratulations on starting the most interesting thread I have seen on dm.D for as long as I can remember. It has managed to stay really focused, and has produced a lot of interesting suggestio

Re: TDPL a bad idea?

2010-02-05 Thread retard
Fri, 05 Feb 2010 16:20:51 +, BCS wrote: > Hello Gareth, > > >> I actually like the newsgroup format (more than modern web forums) now >> that I've gone to the trouble of setting up Thunderbrid but I guess >> they did put me off initially. >> >> Well, that's one data point for you. >> >> >

Re: TDPL a bad idea?

2010-02-05 Thread BCS
Hello Gareth, I actually like the newsgroup format (more than modern web forums) now that I've gone to the trouble of setting up Thunderbrid but I guess they did put me off initially. Well, that's one data point for you. I've said it before, but I might as well say it again; I'm of the same

Re: Making all strings UTF ranges has some risk of WTF

2010-02-05 Thread Steve Teale
Andrei Alexandrescu Wrote: > > What would you do? Any ideas are welcome. > Andrei, congratulations on starting the most interesting thread I have seen on dm.D for as long as I can remember. It has managed to stay really focused, and has produced a lot of interesting suggestions. I don't env

Re: OT: I'm back

2010-02-05 Thread Joel Anderson
On 2/4/2010 3:55 PM, BCS wrote: Hello Joel, PPS: Riot is looking for some strong senior engineers (3years+ experienced) so if your looking for work you may check out www.riotgames.com. Well I'm in the market, but I rater suspect that I don't have enough experience (~3 year, but none in that d

Re: It's interesting how many old bugzilla issues are still open though they're done

2010-02-05 Thread Trass3r
Yes, but look at how many of the patches are marked as 'enhancement'. Most of the old patches have problems of various kinds: they are incorrect or incomplete, but still useful. The problem is with the bugzilla keywords. We need something like a 'partial-patch' keyword. In fact the current set

Re: Array operation for computing the dot product?

2010-02-05 Thread Trass3r
What about the simper: x.dot(y) x.dot(y) and dot(x,y) are already implementable without language change. As is std.numeric.dotProduct(x, y) without language _or_ library change :o). That's why I wondered if it could be reasonably included (without introducing a ton of new stuff to th

Re: TDPL a bad idea?

2010-02-05 Thread Gareth Charnock
Mike Parker wrote: Walter Bright wrote: Yigal Chripun wrote: I've thought about building such a system for these forums many times. Registration would not be required to post, but registering would enable features like voting on posts, establishing a profile, preferences, etc. That sounds a

Re: Proposal: Dedicated-string-mixin templates/functions

2010-02-05 Thread Pelle Månsson
On 02/05/2010 12:13 PM, Nick Sabalausky wrote: Point #1: It's often been noted that string mixin syntax is ugly. Which is a bad thing in and of itself, but it also tends to discourage use of string mixins despite their high degree of usefulness. Point #2: It seems to me that the vast majority of

Re: Proposal: Dedicated-string-mixin templates/functions

2010-02-05 Thread Simen kjaeraas
Nick Sabalausky wrote: Point #1: It's often been noted that string mixin syntax is ugly. Which is a bad thing in and of itself, but it also tends to discourage use of string mixins despite their high degree of usefulness. Point #2: It seems to me that the vast majority of templates and fun

Re: Making all strings UTF ranges has some risk of WTF

2010-02-05 Thread Michael Rynn
On Thu, 04 Feb 2010 18:41:48 -0700, Rainer Deyke wrote: > Andrei Alexandrescu wrote: >> One idea I've had for a while was to have a universal string type: >> >> struct UString { >> union { >> char[] utf8; >> wchar[] utf16; >> dchar[] utf32; >> } >> enum Discrim

Re: Array operation for computing the dot product?

2010-02-05 Thread Walter Bright
retard wrote: I can easily come up with 100 other such features. Please do so, and submit them to bugzilla. Some time ago I really wanted to write a wikibook about D. I also wanted to write a new compiler. It's just that D is a shitty language to work with because even the stable version i

Re: Array operation for computing the dot product?

2010-02-05 Thread retard
Fri, 05 Feb 2010 03:20:35 -0800, Walter Bright wrote: > retard wrote: >> I can easily come up with 100 other such features. > > Please do so, and submit them to bugzilla. OK > > >> Some time ago I really >> wanted to write a wikibook about D. I also wanted to write a new >> compiler. It's just

Proposal: Dedicated-string-mixin templates/functions

2010-02-05 Thread Nick Sabalausky
Point #1: It's often been noted that string mixin syntax is ugly. Which is a bad thing in and of itself, but it also tends to discourage use of string mixins despite their high degree of usefulness. Point #2: It seems to me that the vast majority of templates and functions are either designed s

Re: Array operation for computing the dot product?

2010-02-05 Thread retard
Fri, 05 Feb 2010 02:42:53 +, Stewart Gordon wrote: > Trass3r wrote: >> I wonder if an array operation could be reasonably included. It's a >> quite common case and there are direct SSE instructions for it since >> SSE 4.1. > > This would be achieved by adding array aggregate properties, an id

Re: OT: I'm back

2010-02-05 Thread Bane
BCS Wrote: > Hello Joel, > > > PPS: Riot is looking for some strong senior engineers (3years+ > > experienced) so if your looking for work you may check out > > www.riotgames.com. > > Well I'm in the market, but I rater suspect that I don't have enough > experience > (~3 year, but none in that

Re: It's interesting how many old bugzilla issues are still open though they're done

2010-02-05 Thread Don
Stewart Gordon wrote: Nick Sabalausky wrote: "Trass3r" wrote in message Some date back to dmd 0.164 and one even is for gdc! Shouldn't those be closed to keep the system clean? Just because there's a patch submitted doesn't mean it's been accepted and incorporated into DMD. That depend