Lost Password?


Go Back   CodeCall Programming Forum > Software Development > General Programming

General Programming Non language specific, Assembly, Linux/Unix, Mac and anything not covered in other topics. Talk about Programming Theory here.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #171 (permalink)  
Old 08-16-2008, 07:09 PM
G_Morgan G_Morgan is offline
Guru
 
Join Date: Oct 2007
Age: 24
Posts: 474
Last Blog:
Just over the next hil...
Rep Power: 10
G_Morgan has a spectacular aura aboutG_Morgan has a spectacular aura aboutG_Morgan has a spectacular aura about
Default Re: Contest: C# vs. Java vs. Visual Basic

Quote:
Originally Posted by axessterminated View Post
Compare .NET to C++, then no, it's slow. I wouldn't write a major 3-D game graphics engine in C#. However, I wouldn't want to write even a word processor in Java. The framework, especially on Windows, is is incredibly unreliable, regardless of version. On both Linux and Windows, it's slower than crap. If I needed managed code for Linux, I'd rather write a .NET 1.1 app with mono than write a Java app.
There's nothing wrong with the JVM. In fact the Java JIT is probably the best that has ever been written. The problem with Java is they've made some fundamental errors in the API's. Firstly the fact that all the API's are written in bytecode. That's entirely pointless. Swing and the rest should be compiled all the way down to machine code, this will probably happen with a future version of Java (they are adding pre-JIT to Java 7, that will probably evolve into a pre-JITed rt.jar).

The second is fundamentally using Java based libraries where inserting platform specific libraries would be preferential. An example is the use of Java based trigonometry functions in place of the x86 ones on the x86 JVM. The reason they did this was accuracy (the x86 trig functions are a piece of junk but can give you the wrong answer very fast). What they should have done was create something like Math.accurateCos() and use the fast version for the normal calls.

Comparatively the .NET API's are just about entirely native code. They use a series of bytecode assemblies to link raw binary code into the VM. This is quite sane by MS but they weren't blinded by the WORA mantra. You don't need everything to be bytecode to get WORA. Of course hindsight helps.

Executing raw mathematical code on the JVM is very fast. It's when you need to load all these gigantic bytecode archives (which are of course needed for any useful program) that problems begin. Comparatively the .NET runtime only loads a lightweight assembly. Nearly the entire performance difference between the two is in this distinction.

Java will evolve this direction now that the first principles are being built into the JVM and the fact the JDK and runtime are now open source. I'm almost certain that Linux will eventually see the pre-JIT evolve to an assembly + native code set up like .NET on Windows. Whether the same will happen on the Windows JVM depends largely on Sun Microsystems. Using libraries that depend on JNI as opposed to be written directly in Java already gives a huge benefit. SWT apps load much quicker and more smoothly than Swing.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #172 (permalink)  
Old 08-16-2008, 09:12 PM
axessterminated axessterminated is offline
Newbie
 
Join Date: Nov 2007
Location: All over the place
Age: 21
Posts: 7
Rep Power: 0
axessterminated is on a distinguished road
Send a message via AIM to axessterminated Send a message via Yahoo to axessterminated
Default Re: Contest: C# vs. Java vs. Visual Basic

Quote:
Originally Posted by G_Morgan View Post
There's nothing wrong with the JVM. In fact the Java JIT is probably the best that has ever been written. The problem with Java is they've made some fundamental errors in the API's. Firstly the fact that all the API's are written in bytecode. That's entirely pointless. Swing and the rest should be compiled all the way down to machine code, this will probably happen with a future version of Java (they are adding pre-JIT to Java 7, that will probably evolve into a pre-JITed rt.jar).

The second is fundamentally using Java based libraries where inserting platform specific libraries would be preferential. An example is the use of Java based trigonometry functions in place of the x86 ones on the x86 JVM. The reason they did this was accuracy (the x86 trig functions are a piece of junk but can give you the wrong answer very fast). What they should have done was create something like Math.accurateCos() and use the fast version for the normal calls.

Comparatively the .NET API's are just about entirely native code. They use a series of bytecode assemblies to link raw binary code into the VM. This is quite sane by MS but they weren't blinded by the WORA mantra. You don't need everything to be bytecode to get WORA. Of course hindsight helps.

Executing raw mathematical code on the JVM is very fast. It's when you need to load all these gigantic bytecode archives (which are of course needed for any useful program) that problems begin. Comparatively the .NET runtime only loads a lightweight assembly. Nearly the entire performance difference between the two is in this distinction.

Java will evolve this direction now that the first principles are being built into the JVM and the fact the JDK and runtime are now open source. I'm almost certain that Linux will eventually see the pre-JIT evolve to an assembly + native code set up like .NET on Windows. Whether the same will happen on the Windows JVM depends largely on Sun Microsystems. Using libraries that depend on JNI as opposed to be written directly in Java already gives a huge benefit. SWT apps load much quicker and more smoothly than Swing.
You obviously have much more knowledge on the subject than I do; I've been on quite a long hiatus from the programming road for a while. Anyways, regardless of whether it's the JVM or Sun's inherently wrong choices in programming methodology, Java suffers, and hence my problem with it.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #173 (permalink)  
Old 08-19-2008, 07:44 AM
Jordan's Avatar   
Jordan Jordan is offline
Administrator
 
Join Date: Nov 2005
Location: Hendersonville, NC
Posts: 9,224
Last Blog:
Ext JS or Ext GWT
Rep Power: 20
Jordan is just really niceJordan is just really niceJordan is just really niceJordan is just really nice
Send a message via ICQ to Jordan Send a message via AIM to Jordan Send a message via MSN to Jordan
Default Re: Contest: C# vs. Java vs. Visual Basic

I've deleted several posts in this thread. This is not a casual chatting thread. It is a contest. If your post is not about Java, Visual Basic or C# it will be deleted.
__________________
CodeCall Blog | CodeCall Wiki | Shareware Site | Linux Forum | Write a Blog
The CodeCall Wiki is now fully integrated with vBulletin users! Check it out and add some new pages!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #174 (permalink)  
Old 08-19-2008, 01:46 PM
Xav's Avatar   
Xav Xav is offline
Code Warrior
 
Join Date: Mar 2008
Location: On God's Planet
Posts: 9,589
Last Blog:
Web slideshow in JavaS...
Rep Power: 76
Xav has much to be proud ofXav has much to be proud ofXav has much to be proud ofXav has much to be proud ofXav has much to be proud ofXav has much to be proud ofXav has much to be proud ofXav has much to be proud of
Send a message via MSN to Xav
Default Re: Contest: C# vs. Java vs. Visual Basic

C# has the balance between Java and VB - a nice {} syntax, mixed with .NET.
__________________


Mr. Xav | Website | Forums | Blog
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #175 (permalink)  
Old 08-19-2008, 02:18 PM
TcM's Avatar   
TcM TcM is offline
Code Warrior
 
Join Date: Aug 2006
Location: In a technologic world :p
Posts: 8,332
Rep Power: 68
TcM is a glorious beacon of lightTcM is a glorious beacon of lightTcM is a glorious beacon of lightTcM is a glorious beacon of lightTcM is a glorious beacon of light
Default Re: Contest: C# vs. Java vs. Visual Basic

I don't see much similar things between VB and C# actually..
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

Sponsored Links
  #176 (permalink)  
Old 08-19-2008, 02:22 PM
axessterminated axessterminated is offline
Newbie
 
Join Date: Nov 2007
Location: All over the place
Age: 21
Posts: 7
Rep Power: 0
axessterminated is on a distinguished road
Send a message via AIM to axessterminated Send a message via Yahoo to axessterminated
Default Re: Contest: C# vs. Java vs. Visual Basic

Quote:
Originally Posted by TcM View Post
I don't see much similar things between VB and C# actually..
I see the one that matters: .NET

VB.NET and C# are simply two different ways of communicating with the CLR and the .NET API. However, there are issues with the interpretation of the code which may bring about problems. Though even if VB.NET was just as fast, stable, and capable as C# is, I still wouldn't use it based off nothing more than the horrible taste that VB6 left in my mouth.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #177 (permalink)  
Old 08-19-2008, 02:22 PM
Xav's Avatar   
Xav Xav is offline
Code Warrior
 
Join Date: Mar 2008
Location: On God's Planet
Posts: 9,589
Last Blog:
Web slideshow in JavaS...
Rep Power: 76
Xav has much to be proud ofXav has much to be proud ofXav has much to be proud ofXav has much to be proud ofXav has much to be proud ofXav has much to be proud ofXav has much to be proud ofXav has much to be proud of
Send a message via MSN to Xav
Default Re: Contest: C# vs. Java vs. Visual Basic

I do, because I've used VB.NET with C#. All the objects and classes are the same, save for the Microsoft.VisualBasic namespace.
__________________


Mr. Xav | Website | Forums | Blog
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #178 (permalink)  
Old 08-19-2008, 09:19 PM
G_Morgan G_Morgan is offline
Guru
 
Join Date: Oct 2007
Age: 24
Posts: 474
Last Blog:
Just over the next hil...
Rep Power: 10
G_Morgan has a spectacular aura aboutG_Morgan has a spectacular aura aboutG_Morgan has a spectacular aura about
Default Re: Contest: C# vs. Java vs. Visual Basic

Quote:
Originally Posted by axessterminated View Post
You obviously have much more knowledge on the subject than I do; I've been on quite a long hiatus from the programming road for a while. Anyways, regardless of whether it's the JVM or Sun's inherently wrong choices in programming methodology, Java suffers, and hence my problem with it.
Don't get me wrong. Sun have made some fundamental mistakes with Java and where the problem lies is partially besides the point. It isn't fundamental to the core of Java as many claim though and should be salvageable now that Sun and the JCP are moving in the right direction.

Of course what I'd really like to see Sun do is adopt Scala as a second language on the JVM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #179 (permalink)  
Old 08-21-2008, 06:27 AM
TcM's Avatar   
TcM TcM is offline
Code Warrior
 
Join Date: Aug 2006
Location: In a technologic world :p
Posts: 8,332
Rep Power: 68
TcM is a glorious beacon of lightTcM is a glorious beacon of lightTcM is a glorious beacon of lightTcM is a glorious beacon of lightTcM is a glorious beacon of light
Default Re: Contest: C# vs. Java vs. Visual Basic

I thought you were referring to VB 6.0.. yeah VB.NET and C# are similar..
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #180 (permalink)  
Old 08-21-2008, 09:06 AM
Xav's Avatar   
Xav Xav is offline
Code Warrior
 
Join Date: Mar 2008
Location: On God's Planet
Posts: 9,589
Last Blog:
Web slideshow in JavaS...
Rep Power: 76
Xav has much to be proud ofXav has much to be proud ofXav has much to be proud ofXav has much to be proud ofXav has much to be proud ofXav has much to be proud ofXav has much to be proud ofXav has much to be proud of
Send a message via MSN to Xav
Default Re: Contest: C# vs. Java vs. Visual Basic

I've never done anything at all in VB6, so I can't comment on that.
__________________


Mr. Xav | Website | Forums | Blog
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

Sponsored Links
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
what is the bast of basic java programming myothant Java Help 7 02-25-2008 05:36 PM
For the novice in visual basic littlefranciscan Visual Basic Programming 2 02-06-2007 09:30 PM
Visual Studio 2005 and Windows Vista Jordan General Programming 3 01-22-2007 04:21 PM
Graphical programming add-in for Visual Basic 6.0 xXHalfSliceXx Visual Basic Programming 10 01-03-2007 08:14 AM
Parallel Port Programming Using Visual Basic kevintcp85 Visual Basic Programming 12 12-06-2006 01:09 PM


All times are GMT -5. The time now is 02:01 PM.