Most Impacting/Powerful Future Programming Language

Status
Not open for further replies.
Hello.

I began my journey to learn and practice programming using C++ four nearly four months ago and everything has been full speed thus far. I have little problem learning C++ because I practice and practice. I made up my own projects. I have one of them done, which I believe it quite impressive. I am working on the second project, which is going well especially because of all the insight from members throughout the web.

Sometimes I see students programming with Java. C++ is the first programming language I enjoy and made use of with in terms of practicality via projects. Frankly, I love C++! I would like to know how does C++ compare to Java in terms of extensiveness and future? Does C++ have the tools for anything if the programmer chooses to use them?

I know Java is a server based language. However, I am seeing more and more people programming with Java. Is it easier to learn? Not that I have any big problem with C++. I wonder why people sometimes move from C++ to Java.

Lastly, what is the future of C++ once Microsoft releases .NET? Already I am hearing people boast C#. Is it true C# is relatively Jave-clone? If yes, then that could make Java one step ahead of C++ if it infact has something that Microsoft has implemented in C#.

Frankly, I do not see any limitation with C++. Maybe that is just because of my inexperience. What do you think?

Kuphryn

P.S. Is it better to know one language really, really well? Or is it better to know many languages?
 

slakker

Seniorius Lurkius
14
Java is cross platform and can be used (language/platform) everywhere from industrial servers to Picojava type devices.

I would say that Java is the future as far as programming is concerned. I even read awhile back that Java is going to overtake C or C++ or both, which is pretty impressive when you figure its only been around for a handful of years.

Java is taking over the universities too. My college(and from what I gather most are doing this over time) is replacing the C/C++ classes with Java classes as the mandatory programming classes.
 

MooseAreFun

Ars Legatus Legionis
10,827
Subscriptor
I know Java is a server based language.
No it isn't, it can run anywhere.
Server, client, mac, PC, linux, embedded devices...

The only problems I see with java really are
- Speed. It has none.
- It needs you to install the java runtime stuff and load your programs through that (i.e. much more hassle than clicking an EXE file).
 
I would also vote for Java, because Java pioneered a lot of things, and it has finally outgrown most of its early illnesses. Oh, and Java itself isn't that slow, it just appears slow because the Java GUI libraries aren't exactly the fastest.

Although it might not be a programming language in the strict sense, XML is also going to be pretty important in the future.
 

wb

Ars Legatus Legionis
25,208
Subscriptor
Ada????

How is that the future? You might as well say Fortran.

Anyway, I've been thinking about this, and I believe that programming languages are going to change dramatically when we finally start building quantum computers and/or nanotechnology really takes off. I mean you literally have to build new languages just to effectively capture the paradigm shift (I can't believe I just used that phrase) between "conventional" computers and these future computing technologies.
 

anuj

Ars Legatus Legionis
10,199
Subscriptor++
ADA is feckin' EVIL incarnate.

pure unadulterated EVIL.

and it was a required class at my univ. until, well, the evil one changed the course to Haskell. Now instead of a course based around a language that both the prof. and students hate, it's based around a language that only the students hate. yay.

Anyhow, back on topic. Ada is EVIL.

~A
 
After reading responses from members here and at other forums, I acknowledge that I agree that C++ is still the impacting/powerful language in the overall spectrum of software development, if not elite (it is to me).

Again and again I see members post two positive points about Java: platform independence and built in memory and input validation standard class libraries.

Platform independence:

I do admire Java because of this even though I have no experience with it if in fact is how I envisioned it (programming in any OS). However, I do not quite understand how C++ could not be used in the same way. After all, a programming language is a language that we understand, while a computer understands only zero and one. Are there performance issues because of platform independence? SUN had to have implemented something, maybe build in libraries, that comes with all installation like DLL.

Easy and Safe:

This is really effective since the programmer would not have to spend as much time developing a unique way to safeguard against erroneous user input, and it is a timesaver since the programmer is confident that there is no memory leak; however, I believe that it is better to learn and develope the ability to solve programs using a language rather than relying extensively on something that someone else made for trivial issues. The fundamental of programming is to design a program that would make a job easier or solve problems. Is it not better to gain experience through doing rather than using? There are exceptions however. The exceptions are C++'s STL various SCL like string.

One interesting point I read is knowing Java gives the programmer a different perspective on OOP since Java is OO.

Kuphryn
 

earl

Well-known member
3,066
kuphryn:
C/C++ can be used the same way as Java. The C run time is a good example: a set of standard functions / interfaces that work the same way on all platforms. It is the responsibility of the provider to figure out how to make it work on a specific platform.

However, the problem is that the C/C++ standard is far narrower than Java, and without talking to platform specific libraries, you end up not being able to do all that much besides pure computation. You can't
-talk to a network
-do anything related to a GUI/mouse/other
-create threads / do process control
-respond to most user input

among other things while staying inside the standard. As such, these are the parts that don't port between platforms. Given that most programs these days are GUI programs, they are composed in large part of nonstandard code, which is platform specific.

Java has an interesting approach, but quite a few problems. The biggest is speed: for interactive GUI applications Java is dog slow...

-earl-
 
Okay. The issue of GUI and network application is very interesting.

I agree that C++ is difficult to make use of when implementing GUI. I have no experience with MFC or Borland C++ Builder. I heard have read from that GUI is difficult to make using C++. That is one draw of an extensive, dynamic language like C++.

For network applications, C++ is also a mystery. I have no idea where to start if I were to start designing a network application like a simple message program over a network.

Kuphryn
 

_klamath_

Ars Scholae Palatinae
770
Call me when you can use Java to write a device driver or 200fps shooter

OT: Why would you want a 200 FPS shooter? If you have a shooter, why does it need to go @ 200 FPS? I'd much rather have a 100 FPS shooter with much better graphics, or AI, or whatever -- i.e. a better game. Aiming for 200 FPS is just dumb.

I would also vote for Java, because Java pioneered a lot of things

What did Java pioneer?
 

gumbo

Ars Tribunus Angusticlavius
6,107
Java uses the platform dependent libs in the end - that is why there is a different d/l for each. Java just hides the platform dependent part, adding on an abstraction layer. This is the problem. The layer, which AFAIK is written in Java, is slow. The Java language itself is slower than C or C++, but that IMO is beacause of all the bounds checking, mem freeing, and other automated tasks the JVM has to do in order to make Java run.
Write a GUI layer that uses the native Win32 or X windows API calls, and is fast. That will make Java take off.

gubmo
 

gumbo

Ars Tribunus Angusticlavius
6,107
Originally posted by MrCatbert:
Quote: "I would say that Java is the future as far as programming is concerned"Call me when you can use Java to write a device driver or 200fps shooter. Until then I'll stick with C/C++. ;)

Umm, it wasn't meant to. Use each language for it's strengths. Java can do drivers w/ native code, but then you are better off w/ a C/C++ driver instead. (As that is actually what most of the code would end up being.)

gubmo
 
I agree that C++ is difficult to make use of when implementing GUI. I have no experience with MFC or Borland C++ Builder. I heard have read from that GUI is difficult to make using C++. That is one draw of an extensive, dynamic language like C++.
It has nothing to do with C++, but everything to do with the library used. MFC is a piss-poor design because it wraps win32 too thinly to be clean, yet just enough to make things really more complex than they should be. I've worked with 12 year old class libraries which had a better design than MFC. That's pathetic.
 

EgalitarianBovine

Ars Tribunus Angusticlavius
8,086
Haskell - Makes functional programming more accessible, and kills a lot of the performance problems with functional languages using lazy evaluation. Something that's on my slate to learn at some point.

Java - because it was the first focused initiative at a _truly_ cross platform language. And because it's going to keep growing in influence. A lot of applications can deal with a performance loss in exchange for a clean, well designed, simple and modular platform that scales well.

.NET - not a language, but the CLR expands on java to provide a more versatile platform. It's also going to rather influential in the future.

Python - a well grounded, general purpose language that stays practical. I've found no other language that is more enjoyable to program in than python. Thing simply work the way you expect them to. Python's point of beauty is that it is a perfect blend of a structured programming language, and a scripting language. It gives you all the power and design capabilities of a more formal language, but makes using them a snap. Not to mention the superior libraries it provides. Ok, I'm gushing now, better stop :)

There are other languages and platforms with cool ideas, but these four, I think, will keep being used well into the future.

-EB
 

EgalitarianBovine

Ars Tribunus Angusticlavius
8,086
As cool as smalltalk is (and having played a bit with 'squeak'), it is still mired by other issues - it was not seriously pushed by Xerox as a cross platform development environment. I see it more of a research project than an initiative towards bringing its benefits into mainstream usage.

I should have been a bit more clear.

Right now, AFAIK smalltalk is used in a few places (internally at IBM, apparently, but i can't go into details because of confidentiality issues - and apparently also used at Disney, which uses squeak a bit internally from what I've heard). I think it lacks the amount of impact that java does because there was not as much of a focus to bring it into the mainstream.

-EB
 
OT: Why would you want a 200 FPS shooter? If you have a shooter, why does it need to go @ 200 FPS? I'd much rather have a 100 FPS shooter with much better graphics, or AI, or whatever -- i.e. a better game. Aiming for 200 FPS is just dumb.

His point wasn't that any game running less than 200fps is crap, it was more along the lines of a 200fps shooter being entirely feasible in C/C++ whereas with Java your chances of getting 200fps are much lower than say, going on a snipe hunt one weekend and returning home not only with a snipe, but a grue and a wumpus as well.
 

dockeen

Ars Tribunus Militum
1,600
Any feedback on Eiffel. One of the first languages to
really push the "design by contract" idea....

I worked in Ada for seven years btw. Part of me thinks
of Ada as Pascal made harder. In that vein, in its early
years, PASCAL (yes, I am old) was quite revolutionary
as a teaching language. It showed that it was possible
to have a teaching langauge which emphasized precedural
programming.

Somewhat of a mind bender in trying to enfluence the thinking
process of programming was APL, and its current alpha-numeric
relative, J. The idea of expressing a programming language
in terms of spoken language has had some subtle influence.
(Its funny, I always thought you could learn the rudiments
of a language and be useful in a few days, once you know in
general "how to program". If you think that way, try J.

Yes, I first learned to program in BASIC, so I am both old
and brain damaged...

Wayne
 

EgalitarianBovine

Ars Tribunus Angusticlavius
8,086
His point wasn't that any game running less than 200fps is crap, it was more along the lines of a 200fps shooter being entirely feasible in C/C++ whereas with Java your chances of getting 200fps are much lower than say, going on a snipe hunt one weekend and returning home not only with a snipe, but a grue and a wumpus as well.

So? The point of Java is not to write shooters. It's for application and infrastructure development. It's features are focused towards that. First of all, it eliminates entire classes of potential programming errors, specifically buffer overflows, memory leaks (ignoring stale references).

It provides a clean and simple OO structure (*snort* C++). It provides strict type enforecement, which C++ doesn't. It allows you to catch ALL errors in a particular part of a program (I don't know of any error conditions that aren't catchable exceptions).

Of course, the people feel that anything that doesn't allow them to (write aribrary all over the programspace/overrun buffers/use stack allocation everywhere/forcecast pointers to completely different types/overload the shift operators for braindead things like IO/leak memory) is not "hardcore" will probably never be satisfied with java.

So There!! :p :p :p

-EB
 

MrCatbert

Ars Tribunus Angusticlavius
9,107
Subscriptor
with Java your chances of getting 200fps are much lower than say, going on a snipe hunt one weekend and returning home not only with a snipe, but a grue and a wumpus as well.
I'm going to have to write this one down. :)
So? The point of Java is not to write shooters.
Do a search on google for java 3d shooters and see how many hits you get. Apparently you need to clue these folks in...
is not "hardcore" will probably never be satisfied with java.
Some people prefer electric shopping carts, others prefer muscle cars. :p

[This message was edited by MrCatbert on December 06, 2001 at 22:58.]
 
Originally posted by dockeen:
Any feedback on Eiffel. One of the first languages to
really push the "design by contract" idea....

I worked in Ada for seven years btw. Part of me thinks
of Ada as Pascal made harder. In that vein, in its early
years, PASCAL (yes, I am old) was quite revolutionary
as a teaching language. It showed that it was possible
to have a teaching langauge which emphasized precedural
programming.

Somewhat of a mind bender in trying to enfluence the thinking
process of programming was APL, and its current alpha-numeric
relative, J. The idea of expressing a programming language
in terms of spoken language has had some subtle influence.
(Its funny, I always thought you could learn the rudiments
of a language and be useful in a few days, once you know in
general "how to program". If you think that way, try J.

Yes, I first learned to program in BASIC, so I am both old
and brain damaged...

Wayne


I use Eiffel at work by choice, and forced to use C when management demands.

It is a great language. I felt that it enables me to write clearer and safer code. And once I hear from someone refer to Eiffel as the language to turn to for a deeply troubled project simply because the language construct encourages a good design.

The problem with the language is that it is not main-stream enough and there isn't much support and 3rd party libraries available to it.

I wish Eiffel will catch on, but I think it will remain a niche language.
 

EgalitarianBovine

Ars Tribunus Angusticlavius
8,086
Some of us don't get to work on one-man projects where we can actually trust the quality of the code we work with. Some of us don't want our programs to crash because some shitty programmer from the next department thinks his clever bitmanipulation "eficiency tricks" are the shit. Some of us don't want to spend our time writing threadsafe reference counting classes just so that we can manage common object pools being used by multiple threads in a sane way.

Shit, this is getting into a flamewar quick. I should say that I don't think C++ sucks. I've used it to write some reasonably large projects. It's just that I get annoyed whenever someone goes off on Java by spouting some irrelavent statistic about a field that java was never meant to target. Or when someone ignores the benefits of typesafety, garbage collection, bytecode verification, not having base class fragility issues, being able to load and inspect objects at runtime, and a bunch of other really nice high level features that java (and a bunch of other languages) provides that C++ doesn't.

-EB
 

EgalitarianBovine

Ars Tribunus Angusticlavius
8,086
Originally posted by kuphryn:
C++ is to Java as Linux is to WindowsXP?

Kuphryn

OS analogies don't really work.

You could make the claim that C++ -- Java compares to MacOS9 -- Any Modern OS.

Justification: Most modern OSes provide high level safety features such as memory protection, abstracted hardware access, premptive multiprocessing, etc. MacOS9 is provides few of these, but still manages to deliver a half-decent user experience, but it's despite, not because of it's lack of these features. It's an old infrastructure that's been modified heavily to still be valid.

But that doesn't really fit, since C++ is still relavent for system programming where performance is an issue, where the benefits of finer control and quick execution outweigh the lack of certain high level features. C++ and Java can and will coexist, and be used for different purposes, and are better than the other in certain environments. This is not true for MacOS9, any modern OS can easily replace it in nearly all situations.


You could also make an argument for your statement about C++ -- Java being comparable to Linux -- Windows. Since C++ is more open and Java is more proprietary.

But the same can be said for C++ -- Java being comparable to Windows (9x/ME) -- Linux. Since C++ has more cruft in it to maintain compatiblity, and since certain features have been hacked on as time went by, and a lot of these feature's dont mesh well, and are confusing to think about (there is at least one great example of this in 'More C++ Gems', a seemingly simple problem that turns out to be a lot more complicated than it looks at first glance, mostly due to certain characteristics of inheritance, destructors, exceptions, etc.). While Java adheres to a more 'conceptually clean' model by implementing many OO concepts as simply as possibe.

But whatever .. fundamentally, all the analogies are flawed. C++ is still a useful language. Java came out being targeted at a class of problems that could be (and pre-java probably would have been) solved with C++, but easier solved with access to certain features that Java provides.

Oh yeah, your comment might have been a joke, but I really dont want to be studying for my concurrency exam tomorrow night, and I wanted to waste some time - and this was a pretty decent excuse :)

-EB
 
C++ originated from C.

Java derived from C++ (syntax, I think).

C# derives from both C++ and Java (right?).

Ultimately, what do you think C++ *needs* so that it is the language to know like, say, English?

I understand that C++ does have the tools for practically anything if the programmer wants to create an entirely new class template for a partically unique problem. However, I have seen members posting that C++ is a hack of from C. What is the difference better a hack and an innovative change? Is it the differece between modifying and incorporating a whole new algorithm?

So in the end, what does C++ need in order to eliminate some familiar flaws and how will developers come up with such solutions (since C++ is not backed by big corporations)?

Kuphryn
 
So in the end, what does C++ need in order to eliminate some familiar flaws and how will developers come up with such solutions (since C++ is not backed by big corporations)?
It needs better programmers. GC would also help out a lot of dumb asses (but isn't necessary). Removing some "C compatibility" features would also help (C casts, automatic conversions, etc). And last, but not the least: standard compilers (no more VC++ 6).
 
Originally posted by MrCatbert:
No more Borland C++ Builder, either. It scores worse in overall in two compatibility tests (Dinkumware's and Perennial's) and only a little higher using the validation tools from Plum Hall (compiler score only - the library scores were identical). Source - CUJ April 2001. [Edit - I put 2000 instead of 2001.]
Meh. At least it compiles templates. IME it's better than VC++. And if you've read that article, they mention the scores are largely irrelevant... as failing with one minor point might have large repercussions depending on how the tests are built. In any case, I'll have to agree Borland's compiler would be due for a small update. Doesn't seem like there's one in sight though. At least MS has a decent compiler in sight, but nothing right now.
 
Status
Not open for further replies.