Re: DMD 1.036 and 2.020 releases

2008-10-22 Thread Andrei Alexandrescu
Lars Ivar Igesund wrote: Sean Kelly wrote: Don wrote: We also now have two modules called 'bitmanip', which is somewhat ironic since we brainstormed for ages trying to come up with a better name for it. Modules with duplicate names have caused linking problems in the past -- not sure if that

Adding Unicode operators to D

2008-10-22 Thread Andrei Alexandrescu
Please vote up before the haters take it down, and discuss: http://www.reddit.com/r/programming/comments/78rjk/allowing_unicode_operators_in_d_similarly_to/ Andrei

Re: Adding Unicode operators to D

2008-10-25 Thread Andrei Alexandrescu
Spacen Jasset wrote: Andrei Alexandrescu wrote: Spacen Jasset wrote: Bill Baxter wrote: On Thu, Oct 23, 2008 at 7:27 AM, Andrei Alexandrescu [EMAIL PROTECTED] wrote: Please vote up before the haters take it down, and discuss: http://www.reddit.com/r/programming/comments/78rjk

Re: Adding Unicode operators to D

2008-10-26 Thread Andrei Alexandrescu
Bill Baxter wrote: On Mon, Oct 27, 2008 at 11:43 AM, Andrei Alexandrescu [EMAIL PROTECTED] wrote: Bill Baxter wrote: On Mon, Oct 27, 2008 at 9:04 AM, Andrei Alexandrescu [EMAIL PROTECTED] wrote: What's the precedence of your user-defined in-fix operator? --bb Yup, I realized this myself

Re: Adding Unicode operators to D [use cases]

2008-10-28 Thread Andrei Alexandrescu
Sergey Gromov wrote: Don wrote: If you could completely ignore keyboard and display issues, and use any unicode character as an operator, which ones would you actually use? I'd use dot ⋅ and cross × products for 3D, union ∪ and intersection ∩, subset ⊂ and superset ⊃ and their negative forms.

Re: Adding Unicode operators to D [use cases]

2008-10-29 Thread Andrei Alexandrescu
Walter Bright wrote: Andrei Alexandrescu wrote: * There is a way of specifying that precedence of a function defined as above is the same as precedence of a built-in operator. That throws out the ability to parse without semantic analysis. It's not worth it. It doesn't per a previous post

Re: Tango Conference 2008 - DReactor talk by Rick Richardson

2008-11-02 Thread Andrei Alexandrescu
Peter Modzelewski wrote: And yet another video from Tango Conf 2008. DReactor this time: http://petermodzelewski.blogspot.com/2008/11/tango-conference-2008-dreactor-talk.html slides can be found here: http://team0xf.com/conference/DReactor.pdf Enjoy! :D Other videos: DWT:

Re: DMD 1.038 and 2.022 releases

2008-12-14 Thread Andrei Alexandrescu
Bill Baxter wrote: On Mon, Dec 15, 2008 at 6:20 AM, Andrei Alexandrescu seewebsiteforem...@erdani.org wrote: Bill Baxter wrote: On Sun, Dec 14, 2008 at 8:40 PM, Daniel de Kok dan...@nowhere.nospam wrote: On Sun, 14 Dec 2008 20:10:26 +0900, Bill Baxter wrote: Version D 1.038 Dec 11, 2008

Re: NWCPP january talk

2008-12-18 Thread Andrei Alexandrescu
Georg Wrede wrote: Walter Bright wrote: Janderson wrote: Walter Bright wrote: Bartosz has signed me up to give a presentation at the January meeting of the NWCPP. http://www.nwcpp.org/ I am not sure what to talk about, though. Any particular D topics you'd find particularly interesting?

Re: NP=P

2008-12-20 Thread Andrei Alexandrescu
Tim M wrote: If they really did find proof that p==np wouldn't they be millionaires and probably should have kept it to themselves. (I haven't read that all the way through btw) On Sun, 14 Dec 2008 08:43:48 +1300, BCS a...@pathlink.com wrote: Reply to Knud, Læs lige denne artikel

Re: DMD 1.039 and 2.023 releases

2009-01-07 Thread Andrei Alexandrescu
Jason House wrote: Walter Bright Wrote: Faster long divides! http://www.digitalmars.com/d/1.0/changelog.html http://ftp.digitalmars.com/dmd.1.039.zip http://www.digitalmars.com/d/2.0/changelog.html http://ftp.digitalmars.com/dmd.2.023.zip It's nice to see the backend uses pure. When will

Re: RFC on range design for D2

2009-01-09 Thread Andrei Alexandrescu
dsimcha wrote: == Quote from Andrei Alexandrescu (seewebsiteforem...@erdani.org)'s article [snip] One definite problem that I've just realized is that there's no putNext(T[]). What if you need to append another array to your ArrayAppender, not just a single element? My current codebase has

Re: RFC on range design for D2

2009-01-09 Thread Andrei Alexandrescu
jq wrote: dsimcha Wrote: == Quote from Andrei Alexandrescu (seewebsiteforem...@erdani.org)'s article The idea is very simple: just use D's native append operation, but cache the capacity to avoid too many lookups (I understand that that's the bottleneck). I paste the code below, I'd

Re: rdmd and popen

2009-01-17 Thread Andrei Alexandrescu
Max Samukha wrote: On Sat, 17 Jan 2009 16:09:43 +0200, Max Samukha samu...@voliacable.com.removethis wrote: rebuild is pretty unusable with dmd 2.023, so I've taken the liberty to port a popen implementation to D for Windows and modify rdmd to use that. The handle returned by the popen st

Re: rdmd and popen

2009-01-17 Thread Andrei Alexandrescu
Max Samukha wrote: On Sat, 17 Jan 2009 09:19:38 -0800, Andrei Alexandrescu seewebsiteforem...@erdani.org wrote: Max Samukha wrote: On Sat, 17 Jan 2009 16:09:43 +0200, Max Samukha samu...@voliacable.com.removethis wrote: rebuild is pretty unusable with dmd 2.023, so I've taken the liberty

Re: QtD. first results.

2009-01-27 Thread Andrei Alexandrescu
Eldar Insafutdinov wrote: 2 month passed since the work on Qt binding started and we got first results now. I think that's awesome news! Quick question - are you using D1, D2, or both for compiling? Andrei

Re: QtD 0.1 is out!

2009-02-28 Thread Andrei Alexandrescu
Walter Bright wrote: Jarrett Billingsley wrote: See it's funny, since in the other post, you said that using an autogenerated header file is semantically indistinguishable from compiling it to a metadata file. And here you're pointing out an obvious shortcoming! You can make hand-generated

Re: Boost.ScopeExit based on D's scope(exit)

2009-03-02 Thread Andrei Alexandrescu
Leandro Lucarella wrote: Boost 1.38.0 includes a new library ScopeExit: http://www.boost.org/users/news/version_1_38_0 This library is based on D's scope(exit) according to the documentation, see at the end of the link:

Re: Boost.ScopeExit based on D's scope(exit)

2009-03-02 Thread Andrei Alexandrescu
Jarrett Billingsley wrote: On Mon, Mar 2, 2009 at 2:23 PM, Andrei Alexandrescu seewebsiteforem...@erdani.org wrote: I'm, if anything, at the very low end of credit-beggars foodchain. You wouldn't believe if I told you about some (rather notorious within the community) people I know that ought

Re: Boost.ScopeExit based on D's scope(exit)

2009-03-03 Thread Andrei Alexandrescu
Georg Wrede wrote: Andrei Alexandrescu wrote: Leandro Lucarella wrote: Andrei Alexandrescu, el 2 de marzo a las 10:42 me escribiste: Leandro Lucarella wrote: Boost 1.38.0 includes a new library ScopeExit: http://www.boost.org/users/news/version_1_38_0 This library is based on D's scope(exit

Re: Boost.ScopeExit based on D's scope(exit)

2009-03-04 Thread Andrei Alexandrescu
Georg Wrede wrote: I had no idea. Good you told me, I've put an ack in the source file. Thanks. I tried to locate the source in the dmd tree, but in vain. So probably it should appear when rdmd is run with no arguments for there to be any effect... :-) It's on dsource under phobos/tools. On

Re: rdmd

2009-03-04 Thread Andrei Alexandrescu
Georg Wrede wrote: Should I be able to $ rdmd --eval='printf(Yay, rdmd!)' Yah. For my money, I can't fathom working in D without rdmd. Now with --eval and passable regexes it's even better because I can easily do tasks (from shell files) that would take longer in Perl. Since the current

Re: rdmd

2009-03-05 Thread Andrei Alexandrescu
Georg Wrede wrote: Just downloaded D 2.026 and tried rdmd. No eval? Sorry, inclusion of the new rdmd has not been done due to rdmd's dependency of the new phobos. I'd *really* appreciate a --version switch. (Probably, instead of fancy version numbers, either the repo version, and/or

Re: Open source dmd on Reddit!

2009-03-06 Thread Andrei Alexandrescu
Walter Bright wrote: Sean Kelly wrote: Seems kind of silly to me. The big deal with the full source for DMD being available is that if DigitalMars disappears in a puff of smoke tomorrow, customers have a means of preserving their investment in the language. This can be a big deal for

Re: Open source dmd on Reddit!

2009-03-06 Thread Andrei Alexandrescu
Michel Fortin wrote: On 2009-03-06 14:35:59 -0500, Walter Bright newshou...@digitalmars.com said: Andrei Alexandrescu wrote: Can't live without bitfields! Give me bitfields and I'll lift the Earth! Here they are, std.bitmanip. Well-defined and more portable and flexible than C's. Meh

Re: rdmd

2009-03-07 Thread Andrei Alexandrescu
Christopher Wright wrote: Okay, here's an improved version of rdmd with config files. Thanks, that's interesting. Added features: - Config file - Specify a compiler - Specify default imports for --eval - Specify build flags I'm sorry, I think a config file is overkill. Perl has many

Re: Open source dmd on Reddit!

2009-03-07 Thread Andrei Alexandrescu
Charles Hixson wrote: mixin(bitfields!( uint x : 2, int y : 3, uint z : 2, bool flag : 1, ) so that it would be easier to shuffle the fields during development. This has it's pluses and minuses, but by and large I think it's optional presence would be a benefit.

Re: dmd 1.041 and 2.026 releases

2009-03-07 Thread Andrei Alexandrescu
Walter Bright wrote: Andrei Alexandrescu wrote: I wish somehow all this nice philosophy about aircraft would somehow found its way in the compiler implementation. I was referring to the language design, but yes, I think some of it is in the compiler implementation. In your criticism, you

Re: rdmd

2009-03-08 Thread Andrei Alexandrescu
Christopher Wright wrote: Andrei Alexandrescu wrote: Christopher Wright wrote: Okay, here's an improved version of rdmd with config files. Thanks, that's interesting. Added features: - Config file - Specify a compiler - Specify default imports for --eval - Specify build flags I'm

Re: dmd 2.029 release

2009-04-20 Thread Andrei Alexandrescu
Georg Wrede wrote: Walter Bright wrote: This is a major revision to Phobos, including Andrei's revolutionary new range support. http://www.digitalmars.com/d/2.0/changelog.html http://ftp.digitalmars.com/dmd.2.029.zip The documentation for completeSort in std.algorithm says: Performs

Re: dmd 2.029 release

2009-04-20 Thread Andrei Alexandrescu
Andrei Alexandrescu wrote: Georg Wrede wrote: Walter Bright wrote: This is a major revision to Phobos, including Andrei's revolutionary new range support. http://www.digitalmars.com/d/2.0/changelog.html http://ftp.digitalmars.com/dmd.2.029.zip The documentation for completeSort

Re: dmd 2.029 release

2009-04-20 Thread Andrei Alexandrescu
bearophile wrote: In D1 I have written a very hairy (but not too much long) apply() function, that given a function and some arguments, returns the result of the function applied to them. (apply() is a basic higher-order thing common in most functional languages). So now I'm playing with

Re: dmd 2.029 release

2009-04-20 Thread Andrei Alexandrescu
dsimcha wrote: == Quote from dsimcha (dsim...@yahoo.com)'s article == Quote from Walter Bright (newshou...@digitalmars.com)'s article This is a major revision to Phobos, including Andrei's revolutionary new range support. http://www.digitalmars.com/d/2.0/changelog.html

Re: dmd 2.029 release

2009-04-20 Thread Andrei Alexandrescu
Walter Bright wrote: Andrei Alexandrescu wrote: Ok, I've undeprecated rand_seed, sigh. I was hoping I'd eliminate rand() entirely from this release, but Walter pointed out it would break too much code. So I left rand() and rand_seed() as deprecated. Now I only left rand() deprecated so

Re: dmd 2.029 release

2009-04-20 Thread Andrei Alexandrescu
Craig Black wrote: I like very much the direction D2 is going now. Language refactoring and enhancements driven by the goal of more elegant implementation of standard libraries. This approach seems very practical and promising. Thank you very much and keep it up! -Craig Thanks. Walter

Re: dmd 2.029 release

2009-04-20 Thread Andrei Alexandrescu
Russell Lewis wrote: Walter Bright wrote: This is a major revision to Phobos, including Andrei's revolutionary new range support. http://www.digitalmars.com/d/2.0/changelog.html http://ftp.digitalmars.com/dmd.2.029.zip Was fwritefln() removed intentionally? Or should I write up a

Re: dmd 2.029 release

2009-04-20 Thread Andrei Alexandrescu
bearophile wrote: Andrei Alexandrescu: extraneous arguments passed to writef will be ignored, not printed with default formatting. That sounds bad: = Errors should never pass silently. It's better to raise a compilation error. (And if that's not possible, then an exception at run-time

Re: dmd 2.029 release

2009-04-20 Thread Andrei Alexandrescu
bearophile wrote: Andrei Alexandrescu: If it were an error, I wouldn't let it go. It's an error. It will lead to troubles. Well at most you could say it's error-prone, something that is easier to argue. The problem is that forcing it into an error makes quite a number of valid uses

Re: dmd 2.029 release

2009-04-20 Thread Andrei Alexandrescu
BCS wrote: Reply to bearophile, Andrei Alexandrescu: If it were an error, I wouldn't let it go. It's an error. It will lead to troubles. Bye, bearophile Then there need to be a way for the format string to use an argument without generating output for it because as Andrei is saying

Re: dmd 2.029 release

2009-04-20 Thread Andrei Alexandrescu
Nick Sabalausky wrote: BCS a...@pathlink.com wrote in message news:78ccfa2d3e68b8cb8fe69f8b7...@news.digitalmars.com... Reply to Nick, Andrei Alexandrescu seewebsiteforem...@erdani.org wrote in message news:gsiqdr$1cs...@digitalmars.com... BCS wrote: One option would be to not throw

Re: dmd 2.029 release

2009-04-21 Thread Andrei Alexandrescu
Lars T. Kyllingstad wrote: Walter Bright wrote: This is a major revision to Phobos, including Andrei's revolutionary new range support. http://www.digitalmars.com/d/2.0/changelog.html http://ftp.digitalmars.com/dmd.2.029.zip This is looking very nice! I want to switch from D1 to D2,

Re: dmd 2.029 release

2009-04-21 Thread Andrei Alexandrescu
Max Samukha wrote: On Mon, 20 Apr 2009 09:57:55 +0200, Max Samukha samu...@voliacable.com.removethis wrote: On Mon, 20 Apr 2009 00:09:09 -0700, Walter Bright newshou...@digitalmars.com wrote: This is a major revision to Phobos, including Andrei's revolutionary new range support.

Re: dmd 2.029 release

2009-04-22 Thread Andrei Alexandrescu
Steven Schveighoffer wrote: On Wed, 22 Apr 2009 13:49:18 -0400, Andrei Alexandrescu seewebsiteforem...@erdani.org wrote: tama wrote: On Mon, 20 Apr 2009 16:09:09 +0900, Walter Bright newshou...@digitalmars.com wrote: This is a major revision to Phobos, including Andrei's revolutionary new

Re: dmd 2.029 release

2009-04-23 Thread Andrei Alexandrescu
Masahiro Nakagawa wrote: I submitted this problem to bugzilla. http://d.puremagic.com/issues/show_bug.cgi?id=2882 Thanks! I fixed it and checked in std.random. Andrei

Re: dmd 2.029 release

2009-04-23 Thread Andrei Alexandrescu
Don wrote: No! rant toString() is one of the most dreadful features in D. Trying to slightly improve it is a waste of time -- the whole concept needs to be redone. It's horribly inflexible, tedious, and hugely inefficient. What more could there be to hate? I agree. - the object being called

Re: dmd 2.029 release

2009-04-23 Thread Andrei Alexandrescu
Steven Schveighoffer wrote: On Thu, 23 Apr 2009 09:06:38 -0400, Andrei Alexandrescu seewebsiteforem...@erdani.org wrote: It ought to be at least as simple as: struct Foo(A, B, C){ A[10] a; B b; C c; void toString(Sink sink){ foreach(x; a) sink(x); sink(b); sink(c); } } ... but it's

Re: dmd 2.029 release

2009-04-23 Thread Andrei Alexandrescu
Steven Schveighoffer wrote: On Thu, 23 Apr 2009 09:24:59 -0400, Andrei Alexandrescu seewebsiteforem...@erdani.org wrote: Steven Schveighoffer wrote: This has to go into object.d and be part of the runtime, where std.range doesn't exist. There is nothing stopping you from calling

Re: dmd 2.029 release

2009-04-23 Thread Andrei Alexandrescu
Georg Wrede wrote: Second, since we have cool stuff in D, like templates, boxing, and other advanced things, then compared to them, it should not be a big deal to have automatic creation of toString for structs and objects. (This could even be on-demand, i.e. unless called, the toString is not

Re: dmd 2.029 release

2009-04-23 Thread Andrei Alexandrescu
Frits van Bommel wrote: Andrei Alexandrescu wrote: Steven Schveighoffer wrote: So I'd rather have a sink function. It must be a sink _object_ so it can hold its own state. And it must support put() so it integrates with statically-bound output ranges. interface OutRange { void put

Re: dmd 2.029 release

2009-04-23 Thread Andrei Alexandrescu
Georg Wrede wrote: Wow! What if writeln would automatically call to!string for any object or struct? That's the plan, I didn't get around to it. I want to do it the right way, i.e. with general streams, not strings. Andrei

Re: dmd 2.029 release

2009-04-23 Thread Andrei Alexandrescu
grauzone wrote: Andrei Alexandrescu wrote: grauzone wrote: Yes. The way it should be is not with sink, but with the standard output iterator method put(). void streamOut(T, R)(T object, R range) { foreach(x; a) range.put(x); range.put(b); range.put(c); } Eh. Is a sink callback

Re: dmd 2.029 release

2009-04-23 Thread Andrei Alexandrescu
Daniel Keep wrote: Andrei Alexandrescu wrote: Steven Schveighoffer wrote: On Thu, 23 Apr 2009 09:24:59 -0400, Andrei Alexandrescu seewebsiteforem...@erdani.org wrote: Steven Schveighoffer wrote: This has to go into object.d and be part of the runtime, where std.range doesn't exist

Re: dmd 2.029 release

2009-04-23 Thread Andrei Alexandrescu
Steven Schveighoffer wrote: As most ranges are structs (and rightfully so, who wants to call 3 virtual functions every loop!), they would have to be wrapped under the current compiler. Or am I missing something else? Yes, some wrapping would have to be done. Hopefully it will simple enough

Re: dmd 2.029 release

2009-04-24 Thread Andrei Alexandrescu
grauzone wrote: Simen Kjaeraas wrote: Do note that I might have misinterpreted it all, as Andrei's code would not do what I have outlined above, I only feel it makes the most sense. Yeah OK, but what about virtual functions? Not having it virtual is a real disadvantage, because

Re: Numpy Random Number Generators

2009-04-30 Thread Andrei Alexandrescu
dsimcha wrote: I've ported a large portion of the Numpy random number generation library to D. (I excluded the uniform random number generators because Phobos and Tango already have good implementations of these, and a few distributions because they were obscure and hard to test properly. I

Slide design

2009-05-04 Thread Andrei Alexandrescu
flGeorg Wrede wrote: Walter Bright wrote: Everyone I talked to who was there didn't like it. I think there's the *subconscious* notion of not respecting the audience by bothering to do a Proper Presentation. And they let it seep through, instead of pausing to think about the upsides. (The

Re: Split digitalmars.D newsgroup into .D and .D2 newsgroups?

2009-05-12 Thread Andrei Alexandrescu
Derek Parnell wrote: On Tue, 12 May 2009 15:59:05 -0500, Andrei Alexandrescu wrote: Walter Bright wrote: BLS wrote: No, promoting D also means having a couple of newsgroup entries each day. Otherwise you'll have several 10 entries a month D newsgroups and this imo not very appealing to new

Re: Please test: black holes and white holes

2009-05-19 Thread Andrei Alexandrescu
Shin Fujishiro wrote: I've implemented two templates: defineBlackHole and defineWhiteHole. Given a class or interface C, they generate a declaration of a new class which automatically implements all abstract methods defined in C and its ancestors. They seems to be working fine (dmd 2.030).

Re: Please test: black holes and white holes

2009-05-19 Thread Andrei Alexandrescu
Shin Fujishiro wrote: I've implemented two templates: defineBlackHole and defineWhiteHole. Given a class or interface C, they generate a declaration of a new class which automatically implements all abstract methods defined in C and its ancestors. They seems to be working fine (dmd 2.030).

Re: Please test: black holes and white holes

2009-05-19 Thread Andrei Alexandrescu
Shin Fujishiro wrote: I wrote: Now it came to my mind that the problem could be solved by inserting alias ReturnType!(C.foo) X; in generated code. I'll try this. OK, I did it! I checked in a new version. http://code.google.com/p/kabe/source/browse/branches/bhwh/test.d

Re: ldc 0.9.1 released

2009-05-27 Thread Andrei Alexandrescu
Christian Kamm wrote: The release 0.9.1 of LDC, the LLVM based compiler for the D programming language, contains the following major improvements: * lots of bug fixes (http://www.dsource.org/projects/ldc/report/15) * x86-64 support is mature * inline asm improved (we now define

TDPL available for preorder on amazon.com

2009-06-09 Thread Andrei Alexandrescu
Hope you like the cover - my sister's art. http://tinyurl.com/lyrsyk Andrei

Re: TDPL available for preorder on amazon.com

2009-06-11 Thread Andrei Alexandrescu
Saaa wrote: Hope you like the cover - my sister's art. http://tinyurl.com/lyrsyk Andrei The first programming book I'll buy :) 500 pages.. is that normal for programming books? That's just an estimate. Any relation to a stable D2? Well, one begets the other. Andrei

Re: dmd 1.046 and 2.031 releases

2009-07-06 Thread Andrei Alexandrescu
Jason House wrote: Walter Bright Wrote: ���� (noshiika) wrote: Thank you for the great work, Walter and all the other contributors. But I am a bit disappointed with the CaseRangeStatement syntax. Why is it case 0: .. case 9: instead of case 0 .. 9: With the latter notation,

Re: dmd 1.046 and 2.031 releases

2009-07-06 Thread Andrei Alexandrescu
bearophile wrote: Jason House: Hardly. There seemed to mostly be complaints about it with Andrei saying things like I can't believe you don't see the elegance of the syntax. In the end, Andrei commented that he shouldn't involve the community in such small changes and went silent. He was

Re: dmd 1.046 and 2.031 releases

2009-07-06 Thread Andrei Alexandrescu
bearophile wrote: Regarding switch(), can be a static switch useful? To solve the semantic special case of .. in switch cases D2 may use a compromise, keep the case-case syntax of Andrei, but use three points: case 0: ... case 10: Why? Andrei

Re: dmd 1.046 and 2.031 releases

2009-07-06 Thread Andrei Alexandrescu
Ary Borenszweig wrote: Andrei Alexandrescu wrote: Ary Borenszweig wrote: のしいか (noshiika) escribió: Thank you for the great work, Walter and all the other contributors. But I am a bit disappointed with the CaseRangeStatement syntax. Why is it case 0: .. case 9: instead of case 0 .. 9

Re: dmd 1.046 and 2.031 releases

2009-07-06 Thread Andrei Alexandrescu
Chad J wrote: Walter Bright wrote: grauzone wrote: No. Also, this final switch feature seems to be only marginally useful, and normal switch statements do the same, just at runtime. So much for more pressing issues but it's his language and not mine so I'll shut up. The final switch deals

Re: dmd 1.046 and 2.031 releases

2009-07-06 Thread Andrei Alexandrescu
Denis Koroskin wrote: Reuse goto? So any case-labeled code should end either with a control flow statement that transfers control elswhere? That sounds like a great idea. Fall-through is so rare and so rarely intended, it makes sense to require the programmer to state the intent explicitly

Re: dmd 1.046 and 2.031 releases

2009-07-06 Thread Andrei Alexandrescu
Derek Parnell wrote: On Mon, 06 Jul 2009 13:47:44 -0500, Andrei Alexandrescu wrote: Chad J wrote: Walter Bright wrote: grauzone wrote: No. Also, this final switch feature seems to be only marginally useful, and normal switch statements do the same, just at runtime. So much for more pressing

Re: dmd 1.046 and 2.031 releases

2009-07-06 Thread Andrei Alexandrescu
Chad J wrote: Andrei Alexandrescu wrote: Chad J wrote: These bugs always take me no less than 2 hours to find, unless I am specifically looking for fall-through bugs. I agree. Probably a good option would be to keep on requiring break, but also requiring the user to explicitly specify

Re: dmd 1.046 and 2.031 releases

2009-07-06 Thread Andrei Alexandrescu
grauzone wrote: You are just saying it's ugly. I don't think it's ugly. Walter doesn't think it's ugly. Other people don't think it's ugly. Many of the people who said it's ugly actually came up with proposals that are arguably ugly, hopelessly confusing, or both. Look at only some of the

Re: dmd 1.046 and 2.031 releases

2009-07-06 Thread Andrei Alexandrescu
Nick Sabalausky wrote: Walter Bright newshou...@digitalmars.com wrote in message news:h2u735$sn...@digitalmars.com... grauzone wrote: I oriented this on the syntax of array slices. Which work that way. Not inconsistent at all. It's also consistent with foreach(_; x..y). It would look

Re: dmd 1.046 and 2.031 releases

2009-07-06 Thread Andrei Alexandrescu
Nick Sabalausky wrote: Andrei Alexandrescu seewebsiteforem...@erdani.org wrote in message news:h2udmf$1b0...@digitalmars.com... Nick Sabalausky wrote: Walter Bright newshou...@digitalmars.com wrote in message news:h2u735$sn...@digitalmars.com... grauzone wrote: I oriented this on the syntax

Re: dmd 1.046 and 2.031 releases

2009-07-06 Thread Andrei Alexandrescu
Derek Parnell wrote: On Mon, 06 Jul 2009 21:59:54 -0500, Andrei Alexandrescu wrote: There's a lot of punctuation that has different roles depending on the context. Agreed. No argument here. The meaning of punctuation depends on its context. Got it. However, that aside, the syntax you have

Re: dmd 1.046 and 2.031 releases - is() expression

2009-07-06 Thread Andrei Alexandrescu
The Anh Tran wrote: Andrei Alexandrescu wrote: I agree there are ugly constructs in D, and is-expressions would near the top of the list (particularly the absolutely awful is(T : T[])), but you have no case (heh) with the switch statement. Andrei Just a funny suggestion: could we change

Re: dmd 1.046 and 2.031 releases

2009-07-07 Thread Andrei Alexandrescu
Robert Jacques wrote: On Mon, 06 Jul 2009 01:05:10 -0400, Walter Bright newshou...@digitalmars.com wrote: Something for everyone here. http://www.digitalmars.com/d/1.0/changelog.html http://ftp.digitalmars.com/dmd.1.046.zip http://www.digitalmars.com/d/2.0/changelog.html

Re: dmd 1.046 and 2.031 releases

2009-07-07 Thread Andrei Alexandrescu
Derek Parnell wrote: Because 1. case X..Y: looks like 2. foreach(e; X..Y) 3. array[X..Y] 4. case X:..caseY: yet the X..Y has a VERY DIFFERENT meaning. (1) is inclusive of Y, and (2) and (3) are exclusive of Y, and (4) is inclusive of Y ... oh, hang on... Sorry, but

Re: dmd 1.046 and 2.031 releases

2009-07-07 Thread Andrei Alexandrescu
Robert Jacques wrote: On Tue, 07 Jul 2009 01:48:41 -0400, Andrei Alexandrescu seewebsiteforem...@erdani.org wrote: Robert Jacques wrote: On Mon, 06 Jul 2009 01:05:10 -0400, Walter Bright newshou...@digitalmars.com wrote: Something for everyone here. http://www.digitalmars.com/d/1.0

Re: dmd 1.046 and 2.031 releases

2009-07-07 Thread Andrei Alexandrescu
Robert Jacques wrote: Another inconsistency: byte[] x,y,z; z[] = x[]*y[]; // Compiles Bugzilla is its name. Andrei

Re: dmd 1.046 and 2.031 releases

2009-07-07 Thread Andrei Alexandrescu
Brad Roberts wrote: That's really cool. But I don't think that's actually happening (Or are these the bugs you're talking about?): byte x,y; short z; z = x+y; // Error: cannot implicitly convert expression (cast(int)x + cast(int)y) of type int to short // Repeat for ubyte,

Re: dmd 1.046 and 2.031 releases

2009-07-07 Thread Andrei Alexandrescu
Robert Jacques wrote: On Tue, 07 Jul 2009 03:33:24 -0400, Andrei Alexandrescu seewebsiteforem...@erdani.org wrote: Robert Jacques wrote: That's really cool. But I don't think that's actually happening (Or are these the bugs you're talking about?): byte x,y; short z; z = x+y

Re: dmd 1.046 and 2.031 releases

2009-07-07 Thread Andrei Alexandrescu
Jérôme M. Berger wrote: Andrei Alexandrescu wrote: Derek Parnell wrote: It seems that D would benefit from having a standard syntax format for expressing various range sets; a. Include begin Include end, i.e. [] b. Include begin Exclude end, i.e. [) c. Exclude begin Include end, i.e. (] d

Re: dmd 1.046 and 2.031 releases

2009-07-07 Thread Andrei Alexandrescu
Bill Baxter wrote: 2009/7/7 Andrei Alexandrescu seewebsiteforem...@erdani.org: I think Walter's message really rendered the whole discussion moot. Post of the year: = I like: a .. b+1 to mean inclusive range. = Not everything is an integer

Re: dmd 1.046 and 2.031 releases

2009-07-07 Thread Andrei Alexandrescu
Jérôme M. Berger wrote: - A floating point range should allow you to specify the iteration step, or else it should allow you to iterate through all numbers that can be represented with the corresponding precision; We don't have that, so you'd need to use a straigh for statement. - The

Re: dmd 1.046 and 2.031 releases

2009-07-07 Thread Andrei Alexandrescu
Nick Sabalausky wrote: Andrei Alexandrescu seewebsiteforem...@erdani.org wrote in message news:h2vprn$1t7...@digitalmars.com... This is a different beast. We simply couldn't devise a satisfactory scheme within the constraints we have. No simple solution we could think of has worked, nor have

Re: dmd 1.046 and 2.031 releases

2009-07-07 Thread Andrei Alexandrescu
bearophile wrote: Andrei Alexandrescu: How often did you encounter that issue? Please, let's be serious, and let's stop adding special cases to D, or they will kill the language. Don't get me going about what could kill the language. Lately I have seen too many special cases. For example

Re: dmd 1.046 and 2.031 releases

2009-07-07 Thread Andrei Alexandrescu
Leandro Lucarella wrote: Andrei Alexandrescu, el 7 de julio a las 10:56 me escribiste: Leandro Lucarella wrote: This seems nice. I think it would be nice if this kind of things are commented in the NG before a compiler release, to allow community input and discussion. Yup, that's what

Re: dmd 1.046 and 2.031 releases

2009-07-07 Thread Andrei Alexandrescu
Jérôme M. Berger wrote: Andrei Alexandrescu wrote: Jérôme M. Berger wrote: - A floating point range should allow you to specify the iteration step, or else it should allow you to iterate through all numbers that can be represented with the corresponding precision; We don't have that, so

Re: dmd 1.046 and 2.031 releases

2009-07-07 Thread Andrei Alexandrescu
Leandro Lucarella wrote: Andrei Alexandrescu, el 7 de julio a las 15:12 me escribiste: Leandro Lucarella wrote: Andrei Alexandrescu, el 7 de julio a las 10:56 me escribiste: Leandro Lucarella wrote: This seems nice. I think it would be nice if this kind of things are commented in the NG

Re: dmd 1.046 and 2.031 releases

2009-07-07 Thread Andrei Alexandrescu
Nick Sabalausky wrote: Andrei Alexandrescu seewebsiteforem...@erdani.org wrote in message news:h30907$2lk...@digitalmars.com... Nick Sabalausky wrote: Andrei Alexandrescu seewebsiteforem...@erdani.org wrote in message news:h2vprn$1t7...@digitalmars.com... This is a different beast. We simply

Re: dmd 1.046 and 2.031 releases

2009-07-07 Thread Andrei Alexandrescu
Nick Sabalausky wrote: bearophile bearophileh...@lycos.com wrote in message news:h3093m$2mu...@digitalmars.com... Before adding a feature X let's discuss them, ... If not enough people like a solution then let's not add it. Something like that was attempted once before. Andrei didn't like

Re: dmd 1.046 and 2.031 releases

2009-07-07 Thread Andrei Alexandrescu
Derek Parnell wrote: Here is where I propose having a signal to the compiler about which specific variables I'm worried about, and if I code an assignment to one of these that can potentially overflow, then the compiler must issue a message. You can implement that as a library. In fact I

Re: dmd 1.046 and 2.031 releases

2009-07-08 Thread Andrei Alexandrescu
Leandro Lucarella wrote: Walter Bright, el 5 de julio a las 22:05 me escribiste: Something for everyone here. http://www.digitalmars.com/d/1.0/changelog.html http://ftp.digitalmars.com/dmd.1.046.zip http://www.digitalmars.com/d/2.0/changelog.html http://ftp.digitalmars.com/dmd.2.031.zip

Re: dmd 1.046 and 2.031 releases

2009-07-08 Thread Andrei Alexandrescu
Walter Bright wrote: Andrei Alexandrescu wrote: P.S. With the help of a dictionary I think I figured most of this joke: MP: Cómo está, estimado Bellini? B: Muy bien, Mario, astrologando. MP: Qué tengo? B: Un balcón-terraza. MP: No, en mi mano, Bellini... B: Un

ACCU 2010 Call for Papers

2009-07-19 Thread Andrei Alexandrescu
Hello, Giovanni Asproni, chair of the ACCU 2010 conference, asked me personally to relay the message below to the community. Although not specified in the CfP below, there will be a one-day tutorial on D just before the conference. Naturally, there is a strong interest in D-related

Re: ACCU 2010 Call for Papers

2009-07-20 Thread Andrei Alexandrescu
Michel Fortin wrote: On 2009-07-20 17:30:19 -0400, Andrei Alexandrescu seewebsiteforem...@erdani.org said: * Talking about a particular library or framework is always very popular. Example: Dux: A High-Performance windowing/building/constraint solving/matrix/math/logging/networking

Iterators Must Go video online

2009-08-03 Thread Andrei Alexandrescu
A while ago I mentioned the video of my BoostCon keynote Iterators Must Go will be soon available online. Here it is: http://boostcon.blip.tv/ Andrei

Re: reddit.com: first Chapter of TDPL available for free

2009-08-03 Thread Andrei Alexandrescu
Nick Sabalausky wrote: Andrei Alexandrescu seewebsiteforem...@erdani.org wrote in message news:h57mno$26g...@digitalmars.com... http://www.reddit.com/r/programming/comments/975ng/diving_into_the_d_programming_language_tdpl/ (Don't tell anyone, but I plan to rewrite it.) Andrei I just read

Re: reddit.com: first Chapter of TDPL available for free

2009-08-04 Thread Andrei Alexandrescu
MIURA Masahiro wrote: Andrei Alexandrescu wrote: http://www.reddit.com/r/programming/comments/975ng/diving_into_the_d_programming_language_tdpl/ Thanks for sharing it! Typos: in section 1.1, there are inchPerFoot's and inchperfoot's. Noted, thanks. Andrei

  1   2   3   4   5   6   7   8   9   10   >