473,405 Members | 2,272 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,405 software developers and data experts.

Java vs C++

Java has packages (libraries) for everything. EVERYTHING.

Instead, C++ is too poor in its classes.

Is there a concept to extend C++ with other standard libraries, about
multithreading, socket programming etc?

I do not speak about libraries programmed only in one platform (e.g. MFC)
but about standard C++ libraries.

Is there a plan to add in C++ those capabilities in the future?

Why we not use standard C++ for e.g. socket programming?
Why we must move to Java for a non-platform specific program?
Regards
Paul Gessos
Jul 19 '05 #1
9 4010
- Chameleon - wrote:
Is there a concept to extend C++ with other standard libraries, about
multithreading, socket programming etc?


www.boost.org

--
----- stephan beal
Registered Linux User #71917 http://counter.li.org
I speak for myself, not my employer. Contents may
be hot. Slippery when wet. Reading disclaimers makes
you go blind. Writing them is worse. You have been Warned.

Jul 19 '05 #2
<- Chameleon -> wrote:
Java has packages (libraries) for everything. EVERYTHING.

Instead, C++ is too poor in its classes.

Is there a concept to extend C++ with other standard libraries, about
multithreading, socket programming etc?

I do not speak about libraries programmed only in one platform (e.g. MFC)
but about standard C++ libraries.

Is there a plan to add in C++ those capabilities in the future?

Why we not use standard C++ for e.g. socket programming?
Why we must move to Java for a non-platform specific program?


Because in C++-land, standard really means *standard*; i.e. those
features which are available to *all* platforms that can run C++. Not
all C++-capable platforms have TCP/IP stacks, for instance. Or
threading capability, or graphics displays, etc. therefore these things
are considered nonstandard. That doesn't mean, of course, that you
can't *have* graphics, or sockets, or threads, but only by using
third-party libraries that are not part of the standard language itself.

--
Mike Smith

Jul 19 '05 #3
On Thu, 17 Jul 2003 21:06:09 +0300
"<- Chameleon ->" <ch******@hotmail.NOSPAM.com> wrote:
Why we not use standard C++ for e.g. socket programming?
Why we must move to Java for a non-platform specific program?


www.wxwindows.org

br
socketd
Jul 19 '05 #4
> > Java has packages (libraries) for everything. EVERYTHING.

Instead, C++ is too poor in its classes.

Is there a concept to extend C++ with other standard libraries, about
multithreading, socket programming etc?

I do not speak about libraries programmed only in one platform (e.g. MFC) but about standard C++ libraries.

Is there a plan to add in C++ those capabilities in the future?

Why we not use standard C++ for e.g. socket programming?
Why we must move to Java for a non-platform specific program?


Because in C++-land, standard really means *standard*; i.e. those
features which are available to *all* platforms that can run C++. Not
all C++-capable platforms have TCP/IP stacks, for instance. Or
threading capability, or graphics displays, etc. therefore these things
are considered nonstandard. That doesn't mean, of course, that you
can't *have* graphics, or sockets, or threads, but only by using
third-party libraries that are not part of the standard language itself.


there is a logic...
but of course this logic decreases too much abilities of C++ (I speak always
for cross-platform developments)
I mean: In how many machines Java is not working?
And what is the problem if my C++ program says in Unix or DOS console: "This
program requires graphical interface"?

All the machine unsuported functions can return an error message. (such as
fopen() returns 0)

do you agree?

Regards
Paul Gessos
Jul 19 '05 #5
>
Why we not use standard C++ for e.g. socket programming?
Why we must move to Java for a non-platform specific program?


www.wxwindows.org


very usefull! Thanks!
Jul 19 '05 #6
> multithreading, socket programming etc?
If you want free and cross-platform, look at the Adaptive
Communications library. It supports both multithreading and network
programming, as well as IPC, shared memory, filesystem access, dynamic
module loading, and XML parsing. For the GUI bit, use wxwindows if you
want something free and Qt if you are willing to pay.
Why we must move to Java for a non-platform specific program?

You don't. You just need to spend some time looking for libraries
appropriate to your application and researching the best ones to use.
The fact that stuff like ACE is available should be common knowledge
to C++ programmers. If it isn't for you, Google is always there to
bail you out.
Jul 19 '05 #7
Paul Gessos wrote:
Java has packages (libraries) for everything. EVERYTHING.

Instead, C++ is too poor in its classes.
There are hundreds of times as many C++ classes.
Is there a concept to extend C++ with other standard libraries,
about multithreading, socket programming etc?
There is *no* Java standard.
There are *no* standard Java libraries.
I do not speak about libraries programmed only in one platform (e.g. MFC)
but about standard C++ libraries.
Then don't speak about the Java libraries.
They won't port to anything that doesn't implement JVM.
Is there a plan to add in C++ those capabilities in the future?
I hope not.
C++ compiler developers are *not* generally the best library developers.
Why we not use standard C++ for e.g. socket programming?
Because there is no reason why sockets should be included
in the C++ standard library.
Why we must move to Java for a non-platform specific program?


I agree that there should be standard library APIs
which include C++ language bindings for sockets
and all of the other objects that you find in the Java library.
But these standards have nothing to do
with the ANSI/ISO C++ language standards
and should be specified separately.

Why don't you propose a standard API (ADT plus C++ language binding)
for a socket library? If you can get people interested, you may want
to visit the American National Standards Institute (ANSI) web site:

http://www.ansi.org/

and investigate Standards Activities to find out how to work through
the standards approval process.

Jul 19 '05 #8
Are you a C++ theologian - dogmatist?
Everyone which ask new ideas is troll?
Is there a concept to extend C++ with other standard libraries,
about multithreading, socket programming etc?


There is *no* Java standard.
There are *no* standard Java libraries.

I do not speak about libraries programmed only in one platform (e.g. MFC) but about standard C++ libraries.


Then don't speak about the Java libraries.
They won't port to anything that doesn't implement JVM.
Is there a plan to add in C++ those capabilities in the future?


I hope not.
C++ compiler developers are *not* generally the best library developers.
Why we not use standard C++ for e.g. socket programming?


Because there is no reason why sockets should be included
in the C++ standard library.
Why we must move to Java for a non-platform specific program?


I agree that there should be standard library APIs
which include C++ language bindings for sockets
and all of the other objects that you find in the Java library.
But these standards have nothing to do
with the ANSI/ISO C++ language standards
and should be specified separately.

Why don't you propose a standard API (ADT plus C++ language binding)
for a socket library? If you can get people interested, you may want
to visit the American National Standards Institute (ANSI) web site:

http://www.ansi.org/

and investigate Standards Activities to find out how to work through
the standards approval process.


A standard API for a socket library, a managing windows library etc...

You are correct
I agree with you
Thanks!

Regards
Paul Gessos
Jul 19 '05 #9
<- Chameleon -> wrote:

there is a logic...
but of course this logic decreases too much abilities of C++ (I speak always
for cross-platform developments)
I mean: In how many machines Java is not working?
I don't know exactly, but the number is greater for Java than for C++,
I'll bet.

Compare that to the question: How much work and cost is required to
create a C++ implementation for a platform, versus a Java implementation?
And what is the problem if my C++ program says in Unix or DOS console: "This
program requires graphical interface"?

All the machine unsuported functions can return an error message. (such as
fopen() returns 0)

do you agree?


It's not a question of whether I agree, but of whether the C++ standards
bodies agree, and apparently, they don't.

--
Mike Smith

Jul 19 '05 #10

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Ravi Tallury | last post by:
Hi We are having issues with our application, certain portions of it stop responding while the rest of the application is fine. I am attaching the Java Core dump. If someone can let me know what...
1
by: ptaz | last post by:
Hi I'm trying to run a web page but I get the following error. Ca anyone please tell me a solution to this. Thanks Ptaz HTTP Status 500 - type Exception report
11
by: DrUg13 | last post by:
In java, this seems so easy. You need a new object Object test = new Object() gives me exactly what I want. could someone please help me understand the different ways to do the same thing in...
0
by: mailkhurana | last post by:
Hii , I am trying to use a type 2 driver to connect to DB2 0n AIX 5 I have a small java test to class to establish a conneciton with the db .. I am NOT using WAS or any appserver When I try to...
1
by: David Van D | last post by:
Hi there, A few weeks until I begin my journey towards a degree in Computer Science at Canterbury University in New Zealand, Anyway the course tutors are going to be teaching us JAVA wth bluej...
12
by: Mark Fink | last post by:
I wrote a Jython class that inherits from a Java class and (thats the plan) overrides one method. Everything should stay the same. If I run this nothing happens whereas if I run the Java class it...
0
by: jaywak | last post by:
Just tried running some code on Linux (2.4.21-32.0.1.EL and Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_04-b05)) and Windows XPSP2 (with Java HotSpot(TM) Client VM (build...
1
by: jaimemartin | last post by:
hello, I want to validate an xml by means of a schema (xsd). To do that first of all I´m using a SchemaFactory. The problem is that if I run the code in Windows all works fine, but If I run it in...
0
oll3i
by: oll3i | last post by:
package library.common; import java.sql.ResultSet; public interface LibraryInterface { public ResultSet getBookByAuthor(String author); public ResultSet getBookByName(String name);
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.