![]() |
| | #1 |
| Registered User Join Date: Jun 2005 Location: New York
Posts: 1,465
| Visit from Bjarne Stroustroup I love the new features -- auto types and concepts are impressive to me, and I know even on this board I've talked about variadic templates and local template arguments before I knew of the planned improvements..I'm hyped on the new features. What do you guys think of the new deal?
__________________ ╔╗╔╦══╦╗╔╦══╦╗ ║╚╝║╔╗║╚╝║╔╗║║ ║╔╗║╠╣║╔╗║╠╣╠╣ ╚╝╚╩╝╚╩╝╚╩╝╚╩╝ codez http://code.google.com/p/zxcvbn/ |
| Tonto is offline | |
| | #2 | |
| Mysterious C++ User Join Date: Oct 2007
Posts: 14,785
| Myself, I cannot wait for C++0x! It features so many new wonderful features. I can only hope someone implements them soon.
__________________ Using: Microsoft Windows™ 7 Professional (x64), Microsoft Visual Studio™ 2008 Team System I dedicated my life to helping others. This is only a small sample of what they said: "Thanks Elysia. You're a programming master! How the hell do you know every thing?" Quoted... at least once. Quote:
| |
| Elysia is offline | |
| | #3 |
| Malum in se Join Date: Apr 2007
Posts: 3,188
| Forgive me, but I personally don't use templates very much, or really at all. I would be much more impressed with the addition of other features such as auto-expanded type support. The specification already defines 128 bit integers and floats, yet most compilers dont support them. It would be realatively trivial to support the automatic generation of code to support these larger types through software at least until they are supprted by hardware. For example, if I declared float128, the compiler should automatically generate code to handle a 128 bit float. But it should also handle float1024, float65536 etc. through the same feature. There is already hardware that supports 128 bit floating point (GPU's). This woudl ensure support for new hardware capabilities as they become available. This is of course something that would only benefit a small segment of the programming population, but then again, templates also only benefit a small segment of the population.
__________________ Until you can build a working general purpose reprogrammable computer out of basic components from radio shack, you are not fit to call yourself a programmer in my presence. This is cwhizard, signing off. |
| abachler is offline | |
| | #4 | ||
| Mysterious C++ User Join Date: Oct 2007
Posts: 14,785
| Quote:
Although, I would not mind standardized types that are of exact sizes such as int64, etc, and 128-bit types would not hurt either.
__________________ Using: Microsoft Windows™ 7 Professional (x64), Microsoft Visual Studio™ 2008 Team System I dedicated my life to helping others. This is only a small sample of what they said: "Thanks Elysia. You're a programming master! How the hell do you know every thing?" Quoted... at least once. Quote:
| ||
| Elysia is offline | |
| | #5 | |
| C++ Witch Join Date: Oct 2003 Location: Singapore
Posts: 11,372
| Quote:
__________________ C + C++ Compiler: MinGW port of GCC Build + Version Control System: SCons + Bazaar Look up a C/C++ Reference and learn How To Ask Questions The Smart Way | |
| laserlight is offline | |
| | #6 | |
| Mysterious C++ User Join Date: Oct 2007
Posts: 14,785
| Oh. Well, templates is one of the features I heavily depend upon, so improvements there are very welcomed by me.
__________________ Using: Microsoft Windows™ 7 Professional (x64), Microsoft Visual Studio™ 2008 Team System I dedicated my life to helping others. This is only a small sample of what they said: "Thanks Elysia. You're a programming master! How the hell do you know every thing?" Quoted... at least once. Quote:
| |
| Elysia is offline | |
| | #7 |
| MENTAL DETECTOR Join Date: Apr 2006 Location: United States
Posts: 3,295
| >> Although, I would not mind standardized types that are of exact sizes such as int64, Well we get some of that in C++0x or so I've heard. stdint will finally be supported for C++ by the standard. As far as 128 bit floats, I don't think there is a problem in doing it so much as the standard nor its implementers should make an assumption on the part of the programmer. For example, you could dedicate sign bits, 62 bits to an exponent and the rest to the mantissa, but the programmer might want a longer mantissa (greater precision). Even if the standard didn't mandate the particulars (range requirements) I don't think it solves many problems that could arise in implementation of automatic type expansion.
__________________ <Niggawatts> Writing is both mechanical and organic <Niggawatts> It's like a cyborg dragon. <Niggawatts> Writing is like a cyborg dragon. |
| whiteflags is offline | |
| | #8 | |
| Cat without Hat Join Date: Apr 2003
Posts: 8,492
| Quote:
Code: template<int bits>
class floating {... };
Code: floating<32> f32; // Maps to float floating<64> f64; // Maps to double floating<80> f80; // Maps to 80-bit long double, if available, or perhaps a truncating 128-bit long double floating<128> f128; // Maps to 128-bit long double, if available, or perhaps SSE intrinsics floating<1024> f1024; // Software emulation Code: template <int mantissa_bits, int exponent_bits, bool denormals, bool signaling> class floating; Yes, it's work. But the great thing about templates is that it makes this stuff possible.
__________________ All the buzzt! CornedBee"There is not now, nor has there ever been, nor will there ever be, any programming language in which it is the least bit difficult to write bad code." - Flon's Law | |
| CornedBee is offline | |
| | #9 | |
| Registered User Join Date: Nov 2006
Posts: 510
| Quote:
Code: class floating(int bits){...};
__________________ http://sourceforge.net/projects/path-finder-as | |
| pheres is offline | |
| | #10 |
| Hail to the king, baby. Join Date: Oct 2008 Location: Faroe Islands
Posts: 718
| Is a new C coming? :O Is it then wise to learn C++, now that I'm at such a low stage, or should I wait for C++0x?
__________________ Currently research OpenGL |
| Akkernight is offline | |
| | #11 |
| Reverse Engineer Join Date: Aug 2005 Location: Estonia
Posts: 2,260
| I wouldn't switch to a language that has been available for less than 5 years. I have a strange feeling this language will not be widely used in the near future. I think it will share the destiny with A++, B++, D++, E++ etc.
__________________ The duck is irrelevant to my point. |
| maxorator is offline | |
| | #12 |
| Super Moderator Join Date: Sep 2001
Posts: 4,746
| Furthermore - you've always got the universal response for any question on which language to learn: The concepts are the same - learn to program well in one language, and you will be more prepared to program well in another language. I would keep learning C++ now and make the decision to learn C++0x later. |
| sean is offline | |
| | #13 | |||
| Mysterious C++ User Join Date: Oct 2007
Posts: 14,785
| Quote:
1) It's a compile-time constant. 2) It doesn't use memory. 3) It doesn't take cpu time to copy and fetch. Quote:
You think that C++ will fall into obscurity?
__________________ Using: Microsoft Windows™ 7 Professional (x64), Microsoft Visual Studio™ 2008 Team System I dedicated my life to helping others. This is only a small sample of what they said: "Thanks Elysia. You're a programming master! How the hell do you know every thing?" Quoted... at least once. Quote:
Last edited by Elysia; 11-10-2008 at 10:39 AM. | |||
| Elysia is offline | |
| | #14 | |
| Unregistered User Join Date: Jul 2007
Posts: 982
| Quote:
It's too early to say, I mean, how many C programmers do you think said the same thing about C++ when it first came out?
__________________ May the Source be with you. | |
| Yarin is offline | |
| | #15 |
| Cat without Hat Join Date: Apr 2003
Posts: 8,492
| C++0x is not a new language. It's just an evolution of C++03.
__________________ All the buzzt! CornedBee"There is not now, nor has there ever been, nor will there ever be, any programming language in which it is the least bit difficult to write bad code." - Flon's Law |
| CornedBee is offline | |
![]() |
| Thread Tools | |
| Display Modes | |
|
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| FunctionType visit and binary search trees | MRAB54 | C++ Programming | 1 | 05-11-2004 05:20 AM |
| Request for comments | Prelude | A Brief History of Cprogramming.com | 15 | 01-02-2004 10:33 AM |
| Interview with Bjarne Stroustrup "C++ a joke" | novacain | A Brief History of Cprogramming.com | 4 | 03-31-2003 11:55 PM |
| Bjarne Stoustrup | ygfperson | A Brief History of Cprogramming.com | 8 | 09-05-2002 06:22 PM |