#10005 - 01/11/03 09:17 AM
Re: learning to program what language first?
|
Joined: Mar 2002
Posts: 1,136
pergesu
UGN Elite Poster
|
UGN Elite Poster

Joined: Mar 2002
Posts: 1,136
Pimpin the Colorizzle
|
Are you kidding? Sure it's slower than C/C++, but not noticably unless you're writing apps that require ultra-high performance. With the resources available to computers today, the overhead is negligible. I'm not one for bloated code, but Java code gets compiled cleanly and runs on any OS. Sure, programs use more resources than C programs, but it's that way with any language other than assembly and there are enough available resources that it doesn't matter. As for speed and resource usage, it's good enough that amazon.com uses servlets as the backend. Google did a massive study on the different technologies, spending about 50k in determining what they should use. They ended up going with PHP with the IonCube Accellarator, because the servers they run are FreeBSD and threads support on FreeBSD isn't that great.
There's no way java is slower than VB. Profile equivalent programs and the java one will be a lot faster. The MFC overhead is just too great in VB, though it's still not noticeable to the average person.
|
|
|
#10007 - 01/31/03 01:04 AM
Re: learning to program what language first?
|
Joined: Mar 2002
Posts: 1,273
SilentRage
DollarDNS Owner
|
DollarDNS Owner

Joined: Mar 2002
Posts: 1,273
OH, USA
|
Well, I just did a speed test. This test did not involve the use of objects. All I did was loop from 0 to 10 million. Within the loop I incremented a long variable by one. Here's the results:
VB: 672 milliseconds Java: 47 milliseconds C: 16 milliseconds
This next test has to do with the fact java is forced to use objects, while VB and C may use the API. Again, we have a loop going from 0 to 10 million. However, this time within the loop, we have a single line where we store the system tick count into a long variable. (Java: System.currentTimeMillis)
VB: 1094 milliseconds Java: 1313 milliseconds C: 94 milliseconds
Conclusion. C kicks [censored]. Java as a language is faster than VB. VB's access to API's makes it capable of going faster than Java.
Also, in response to pergesu's popular argument concerning speed and system resources. I don't give a damn how fast you are. When it comes to intensive code, such as compression, encryption, sorting large lists, or anything that involves a heck of a lot of data, - the faster the better. The faster our computers get, the higher our demands become, so things are kept in balance.
|
|
|
#10009 - 02/01/03 08:52 AM
Re: learning to program what language first?
|
Joined: Aug 2002
Posts: 68
Scalli0n
Junior Member
|
Junior Member
Joined: Aug 2002
Posts: 68
|
OK, Here's the DL on programming languages:
1. C++ is great - there's minor differences b/t ANSI C++ and VC (MS) C++, just the same as GNU (G++) has it's differences. It's a fast, good language that most exploits are written in - so you can do something other than print out exploits and pretend to read them.
2. Java is not slower than C++. The Virtual Machine that's installed on your system. On some systems, it's faster, on others, it's slower. And, it depends on what VM you install; embedded devices use Micro Runtime Edition or something like that. It's damn fast, but limited. J2RE is also PDQ. Writing your code tightly and efficiently is also a must. Java is good because it's 100% portable 99% of the time.
3. Perl/PHP - Not similiar at all, but often grouped together. Perl is a scripting/sysadmin language (IMO) which is unsuited for the internet. It's hideous to read too. PHP, on the other hand is secure, fast as hell, free, and interfaces well with common databases. Just one problem: bad coding habits are easy to pick up with this language. Watch out. (i.e. register_global, non-strict datatypes)
4. HTML/JavaScript/DHTML - These should be a whiz to learn after the above 3; you'll get the hang of it if you've been programming as long as I have.
Also, common languages (Ruby being determined as "common") always have tutorials on the web. Use google. PageRank actually works.
|
|
|
|
Forums41
Topics33,701
Posts68,795
Average Daily Posts0
|
Members2,174
Most Online1,567 Apr 25th, 2010
|
|
|
Okay WTF?
by HenryMiring on 09/27/17 08:45 AM
|
|
|
|
|
|
|
|