digitalmars.D - D's DbC used in comparison for C++ proposal
- Kramer (6/6) Nov 01 2005 http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2005/n1773.html#compa...
-
Walter Bright
(6/9)
Nov 01 2005
"Kramer"
wrote in message - Kyle Furlong (3/20) Nov 02 2005 Does this remind anyone of the politics in the US? Some third party
- Walter Bright (8/23) Nov 02 2005 http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2005/n1773.html#compa...
- Sean Kelly (15/19) Nov 02 2005 Definately. I think it's great that C++ is incorporating features that
- Ivan Senji (3/29) Nov 02 2005 Makes you wonder how great it would be if DMD fron-end was written in D.
- Sean Kelly (3/6) Nov 02 2005 It probably wouldn't be too hard to port, given the design.
- Ivan Senji (3/14) Nov 02 2005 I thought that the problem with porting would be interfacing to back-end...
- Sean Kelly (7/18) Nov 02 2005 That doesn't affect how hard the code would be to port, only its
- Ivan Senji (15/41) Nov 02 2005 Well i did write a code generator for D but never did finish it really,
- R'emy Mou:eza (10/16) Nov 03 2005 Peri Hankey as written a D to D translator as a proof of concept for his
- Georg Wrede (6/16) Nov 02 2005 Killer!
http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2005/n1773.html#comparison-of-contract-programming-in-d-eiffel-and-c I randomly happened upon the link above while looking for information on contract programming. This was back in March 2005; it's nice to see D show up in something like this. Anyways, I just though some people might enjoy. -Kramer
Nov 01 2005
"Kramer" <Kramer_member pathlink.com> wrote in message news:dk8f6e$ncv$1 digitaldaemon.com...http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2005/n1773.html#comparison-of-contract-programming-in-d-eiffel-and-cI randomly happened upon the link above while looking for information on contract programming. This was back in March 2005; it's nice to see Dshow upin something like this.D was the motivating force behind that proposal, I expect we'll see more of D showing up in C++.
Nov 01 2005
Walter Bright wrote:"Kramer" <Kramer_member pathlink.com> wrote in message news:dk8f6e$ncv$1 digitaldaemon.com... http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2005/n1773.html#comparison-of-contract-programming-in-d-eiffel-and-cDoes this remind anyone of the politics in the US? Some third party comes up with a great idea, and one or both of the main parties absorbs it?I randomly happened upon the link above while looking for information on contract programming. This was back in March 2005; it's nice to see Dshow upin something like this.D was the motivating force behind that proposal, I expect we'll see more of D showing up in C++.
Nov 02 2005
"Kyle Furlong" <kylefurlong gmail.com> wrote in message news:dk9tjl$26ar$1 digitaldaemon.com...Walter Bright wrote:http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2005/n1773.html#comparison-of-contract-programming-in-d-eiffel-and-c"Kramer" <Kramer_member pathlink.com> wrote in message news:dk8f6e$ncv$1 digitaldaemon.com...ofI randomly happened upon the link above while looking for information on contract programming. This was back in March 2005; it's nice to see Dshow upin something like this.D was the motivating force behind that proposal, I expect we'll see moreit? C++ can absorb all it wants, but it'll never be D, because C++ has too many backwards compatibility issues throwing a wrench into what's really needed to fix it.D showing up in C++.Does this remind anyone of the politics in the US? Some third party comes up with a great idea, and one or both of the main parties absorbs
Nov 02 2005
Walter Bright wrote:C++ can absorb all it wants, but it'll never be D, because C++ has too many backwards compatibility issues throwing a wrench into what's really needed to fix it.Definately. I think it's great that C++ is incorporating features that I like because it will make my life easier, but the language isn't nearly as elegant as D. And in some respects I am concerned that the next iteration of C++ will include so much stuff that the learning curve will be enormous. Interestingly, it wasn't until I started playing with the DMD front-end code that I began to understand and appreciate the finer points of the D design (since the DMD front-end is basically written in a C++ approximation of its D equivalent). As a result, I'm gaining a growing distaste for all the constructs C++ provides to handle simple things like memory management and object ownership--they clutter the code tremendously and never feel particularly natural to use. If complex library code is necessary to facilitate such routine tasks, part of me is left wondering if it isn't a fault of the language design. Sean
Nov 02 2005
Sean Kelly wrote:Walter Bright wrote:Makes you wonder how great it would be if DMD fron-end was written in D. It would be many times easier to understand, maintain, change, debug...C++ can absorb all it wants, but it'll never be D, because C++ has too many backwards compatibility issues throwing a wrench into what's really needed to fix it.Definately. I think it's great that C++ is incorporating features that I like because it will make my life easier, but the language isn't nearly as elegant as D. And in some respects I am concerned that the next iteration of C++ will include so much stuff that the learning curve will be enormous. Interestingly, it wasn't until I started playing with the DMD front-end code that I began to understand and appreciate the finer points of the D design (since the DMD front-end is basically written in a C++ approximation of its D equivalent). As a result, I'm gaining a growing distaste for all the constructs C++ provides to handle simple things like memory management and object ownership--they clutter the code tremendously and never feel particularly natural to use. If complex library code is necessary to facilitate such routine tasks, part of me is left wondering if it isn't a fault of the language design.Sean
Nov 02 2005
Ivan Senji wrote:Makes you wonder how great it would be if DMD fron-end was written in D. It would be many times easier to understand, maintain, change, debug...It probably wouldn't be too hard to port, given the design. Sean
Nov 02 2005
Sean Kelly wrote:Ivan Senji wrote:I thought that the problem with porting would be interfacing to back-end wich is C++.Makes you wonder how great it would be if DMD fron-end was written in D. It would be many times easier to understand, maintain, change, debug...It probably wouldn't be too hard to port, given the design.Sean
Nov 02 2005
Ivan Senji wrote:Sean Kelly wrote:That doesn't affect how hard the code would be to port, only its usefulness for integration with a C++ back-end. I suspect that a D version of the front-end still might be useful for anyone hoping to write an IDE for D in D, etc. Beyond that... perhaps someone feel like writing an intermediate code generator in D? ;-) SeanIvan Senji wrote:I thought that the problem with porting would be interfacing to back-end wich is C++.Makes you wonder how great it would be if DMD fron-end was written in D. It would be many times easier to understand, maintain, change, debug...It probably wouldn't be too hard to port, given the design.
Nov 02 2005
Sean Kelly wrote:Ivan Senji wrote:Well i did write a code generator for D but never did finish it really, it was more of a D->extendedD translator but i didn't hook it up to a good lexer, so it was limited and it was grammar based so it was suffering from my inability to write a good D grammar. But it was fun to write and play with some syntax extensions for D. One of my favorite ones (would be nice to have it in D) was (part taken int[] numbers, roots; numbers.length = 10; (each[int index] numbers) = index*2; //numbers[i] = i*2; numbers.{writefln(it);}; //print all numbers numbers.{roots ~= sqrt(it);} //wich is also equal to (each[int index] roots) = sqrt(numbers[index]);Sean Kelly wrote:That doesn't affect how hard the code would be to port, only its usefulness for integration with a C++ back-end. I suspect that a D version of the front-end still might be useful for anyone hoping to write an IDE for D in D, etc. Beyond that... perhaps someone feel like writing an intermediate code generator in D? ;-)Ivan Senji wrote:I thought that the problem with porting would be interfacing to back-end wich is C++.Makes you wonder how great it would be if DMD fron-end was written in D. It would be many times easier to understand, maintain, change, debug...It probably wouldn't be too hard to port, given the design.Sean
Nov 02 2005
Peri Hankey as written a D to D translator as a proof of concept for his analytical grammar machine [http://www.dsource.org/projects/languagemachine/]. The whole thing may seem very counter intuitive at first sight but it is really a powerfull way to manipulate languages. I have played with it to change the front-end grammar into something close to C++ so as to get the back-end generate the appropriate D code. So far it works nicely for the subset it can recognize. One can tune this front( or back )-end to implement new features that will be translated into current D code. It could help to taste the look and feel of ideas prior to have them directly implemented in the compiler.Ivan Senji wrote: That doesn't affect how hard the code would be to port, only its usefulness for integration with a C++ back-end. I suspect that a D version of the front-end still might be useful for anyone hoping to write an IDE for D in D, etc. Beyond that... perhaps someone feel like writing an intermediate code generator in D? ;-)
Nov 03 2005
Walter Bright wrote:"Kramer" <Kramer_member pathlink.com> wrote in message news:dk8f6e$ncv$1 digitaldaemon.com... http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2005/n1773.html#comparison-of-contract-programming-in-d-eiffel-and-cMakes me so proud! (As in my Dad is stronger than your dad.)I randomly happened upon the link above while looking for information on contract programming. This was back in March 2005; it's nice to see D show up in something like this.D was the motivating force behind that proposal, I expect we'll see more of D showing up in C++.Killer! So D is making inroads to the academically minded! A new, implicit campaign for D in CS! What caught my eye was the __old stuff. Seemed practical.
Nov 02 2005