C Board  

Go Back   C Board > Community Boards > General Discussions

Reply
 
LinkBack Thread Tools Display Modes
Old 10-30-2008, 09:00 AM   #1
Registered User
 
Tonto's Avatar
 
Join Date: Jun 2005
Location: New York
Posts: 1,465
Visit from Bjarne Stroustroup

My school as a part of a distinguished lecture series presentation had bjarne stroustroup come to speak about c++0x. I've been largely aloof from programming but I was really excited for this. He came and talked to us about the new features and the bureaucracy of the commitee. It was definitely inspiring.

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   Reply With Quote
Old 10-30-2008, 10:51 AM   #2
Mysterious C++ User
 
Elysia's Avatar
 
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:
Originally Posted by cpjust
If C++ is 2 steps forward from C, then I'd say Java is 1 step forward and 2 steps back.
Elysia is offline   Reply With Quote
Old 10-30-2008, 12:47 PM   #3
Malum in se
 
abachler's Avatar
 
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   Reply With Quote
Old 10-30-2008, 12:52 PM   #4
Mysterious C++ User
 
Elysia's Avatar
 
Join Date: Oct 2007
Posts: 14,785
Quote:
Originally Posted by abachler View Post
...but then again, templates also only benefit a small segment of the population.
Forgive me, but I find templates pretty much everywhere and very, very convenient. I think it is one of the most important features of C++.
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:
Originally Posted by cpjust
If C++ is 2 steps forward from C, then I'd say Java is 1 step forward and 2 steps back.
Elysia is offline   Reply With Quote
Old 10-30-2008, 12:55 PM   #5
C++ Witch
 
laserlight's Avatar
 
Join Date: Oct 2003
Location: Singapore
Posts: 11,372
Quote:
Originally Posted by Elysia
Forgive me, but I find templates pretty much everywhere and very, very convenient. I think it is one of the most important features of C++.
Yes, but abachler does have a point in that advanced template programmers are a minority, even though their work benefits the majority.
__________________
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   Reply With Quote
Old 10-30-2008, 01:00 PM   #6
Mysterious C++ User
 
Elysia's Avatar
 
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:
Originally Posted by cpjust
If C++ is 2 steps forward from C, then I'd say Java is 1 step forward and 2 steps back.
Elysia is offline   Reply With Quote
Old 10-30-2008, 01:04 PM   #7
MENTAL DETECTOR
 
whiteflags's Avatar
 
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   Reply With Quote
Old 10-30-2008, 03:09 PM   #8
Cat without Hat
 
CornedBee's Avatar
 
Join Date: Apr 2003
Posts: 8,492
Quote:
Originally Posted by abachler View Post
but then again, templates also only benefit a small segment of the population.
Wrong. For example, you could use templates to implement
Code:
template<int bits>
class floating {... };
and, with good specializations and good underlying libraries, get exactly what you're proposing.

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
Of course, you could also have
Code:
template <int mantissa_bits, int exponent_bits, bool denormals, bool signaling> class floating;
But of course you need very special hardware if you don't want most of these to be emulated.

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   Reply With Quote
Old 11-10-2008, 06:11 AM   #9
Registered User
 
Join Date: Nov 2006
Posts: 510
Quote:
Originally Posted by CornedBee View Post
Wrong. For example, you could use templates to implement
Code:
template<int bits>
class floating {... };
Does that have any other advantages against
Code:
class floating(int bits){...};
but the one what it saves the floating-ctor from selecting the needed implementation?
pheres is offline   Reply With Quote
Old 11-10-2008, 06:48 AM   #10
Hail to the king, baby.
 
Akkernight's Avatar
 
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   Reply With Quote
Old 11-10-2008, 07:58 AM   #11
Reverse Engineer
 
maxorator's Avatar
 
Join Date: Aug 2005
Location: Estonia
Posts: 2,260
Quote:
Originally Posted by Akkernight View Post
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?
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   Reply With Quote
Old 11-10-2008, 08:10 AM   #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   Reply With Quote
Old 11-10-2008, 10:33 AM   #13
Mysterious C++ User
 
Elysia's Avatar
 
Join Date: Oct 2007
Posts: 14,785
Quote:
Originally Posted by pheres View Post
Does that have any other advantages against
Code:
class floating(int bits){...};
but the one what it saves the floating-ctor from selecting the needed implementation?
Yes.
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:
Originally Posted by Akkernight View Post
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?
No need to wait for C++0x. It adds new features to the C++ language, so you still need the base. Go forth and master that which already is!

Quote:
Originally Posted by maxorator View Post
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.
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:
Originally Posted by cpjust
If C++ is 2 steps forward from C, then I'd say Java is 1 step forward and 2 steps back.

Last edited by Elysia; 11-10-2008 at 10:39 AM.
Elysia is offline   Reply With Quote
Old 11-10-2008, 03:33 PM   #14
Unregistered User
 
Yarin's Avatar
 
Join Date: Jul 2007
Posts: 982
Quote:
Originally Posted by Elysia View Post
Forgive me, but I find templates pretty much everywhere and very, very convenient. I think it is one of the most important features of C++.
I also don't hardley use templates, it's just that everytime I need to use them there's always another way of doing it. Far from the most important feature.

Quote:
Originally Posted by maxorator View Post
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.
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   Reply With Quote
Old 11-10-2008, 04:09 PM   #15
Cat without Hat
 
CornedBee's Avatar
 
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   Reply With Quote
Reply

Thread Tools
Display Modes

Forum Jump

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


All times are GMT -6. The time now is 11:33 PM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.2

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22