Addressing the "Java is Slow" Myth

  • (7 Pages)
  • +
  • « First
  • 5
  • 6
  • 7

91 Replies - 16625 Views - Last Post: 11 June 2009 - 08:47 PM

#81 Dantheman   User is offline

  • D.I.C Regular

Reputation: 34
  • View blog
  • Posts: 445
  • Joined: 27-May 09

Re: Addressing the "Java is Slow" Myth

Posted 11 June 2009 - 03:40 PM

No, what I'm saying is that there are applications where raw pointers are not needed. In such cases, they should be avoided in order to reduce the risk of bugs, memory leaks, and increased development time.

You're the only person here that's arguing against it.

This post has been edited by Dantheman: 11 June 2009 - 03:41 PM

Was This Post Helpful? 0
  • +
  • -

#82 KYA   User is offline

  • Wubba lubba dub dub!
  • member icon

Reputation: 3213
  • View blog
  • Posts: 19,241
  • Joined: 14-September 07

Re: Addressing the "Java is Slow" Myth

Posted 11 June 2009 - 03:44 PM

View PostDantheman, on 11 Jun, 2009 - 03:40 PM, said:

No, what I'm saying is that there are applications where raw pointers are not needed. In such cases, they should be avoided in order to reduce the risk of bugs, memory leaks, and increased development time.

You're the only person here that's arguing against it.



Then you didn't read what I wrote. I had several examples where that would be decided in the design/planning stage. Human error/failure is not an acceptable avenue by which to recommend the non use of a computer language or concept. If that were the case 85% of the population would not be allowed to use a computer.



If everyone always avoided pointers, then we wouldn't have computers, we wouldn't have C or C++, and we'd certainly not have Java.

This post has been edited by KYA: 11 June 2009 - 03:47 PM

Was This Post Helpful? 0
  • +
  • -

#83 Dantheman   User is offline

  • D.I.C Regular

Reputation: 34
  • View blog
  • Posts: 445
  • Joined: 27-May 09

Re: Addressing the "Java is Slow" Myth

Posted 11 June 2009 - 03:51 PM

View PostKYA, on 11 Jun, 2009 - 02:44 PM, said:

View PostDantheman, on 11 Jun, 2009 - 03:40 PM, said:

No, what I'm saying is that there are applications where raw pointers are not needed. In such cases, they should be avoided in order to reduce the risk of bugs, memory leaks, and increased development time.

You're the only person here that's arguing against it.



Then you didn't read what I wrote. I had several examples where that would be decided in the design/planning stage. Human error/failure is not an acceptable avenue by which to recommend the non use of a computer language or concept. If that were the case 85% of the population would not be allowed to use a computer.

Ok, here's what I'm saying. You need to write a program. And, while designing it, you figure out that C++\Java are both suitable for it (after analysing a shitload of different aspects about them - speed, portability, libraries, etc...).

I'm saying that you should choose Java, because it has a lower risk of bugs. Note, the fact that it doesn't have pointers, was not the only reason behind the choice. This is exactly the situation I am talking about - the situation where you have different alternatives.

If you're working with a real-time system, use C++. That's the situation you have no other alternative.

Quote

If everyone always avoided pointers, then we wouldn't have computers, we wouldn't have C or C++, and we'd certainly not have Java.

Again, pointers were needed in that situation.

P.S. My argument could also be interpreted as "don't use C++ if you don't need pointers". I haven't explicitly mentioned it, but I'll do it now anyway - no, that's not what I meant. Do use C++ if you need it for other situations like performance, and low-level facilities. But even as you are using it, try to avoid pointers when not needed. For example - you want to traverse array? Don't use pointer arithmetic. Use a for-loop and a counter.

This post has been edited by Dantheman: 11 June 2009 - 04:00 PM

Was This Post Helpful? 0
  • +
  • -

#84 KYA   User is offline

  • Wubba lubba dub dub!
  • member icon

Reputation: 3213
  • View blog
  • Posts: 19,241
  • Joined: 14-September 07

Re: Addressing the "Java is Slow" Myth

Posted 11 June 2009 - 03:58 PM

See, we agree. Why are we fighting? :/
Was This Post Helpful? 0
  • +
  • -

#85 Dantheman   User is offline

  • D.I.C Regular

Reputation: 34
  • View blog
  • Posts: 445
  • Joined: 27-May 09

Re: Addressing the "Java is Slow" Myth

Posted 11 June 2009 - 04:02 PM

View PostKYA, on 11 Jun, 2009 - 02:58 PM, said:

See, we agree. Why are we fighting? :/

Misunderstanding. I never told people to base the choice on the pointers alone. I simply meant what I said, if they are not needed, if there are safer alternatives that produce the same results, use those alternatives.

This was the recurring theme of Dijkstra's essays. He always made the claim that programming is so inherently difficult and complex that programmers need to harness every trick and abstraction possible in hopes of managing the complexity of it successfully.

This post has been edited by Dantheman: 11 June 2009 - 04:08 PM

Was This Post Helpful? 0
  • +
  • -

#86 NeoTifa   User is offline

  • NeoTifa Codebreaker, the Scourge of Devtester
  • member icon





Reputation: 4933
  • View blog
  • Posts: 20,259
  • Joined: 24-September 08

Re: Addressing the "Java is Slow" Myth

Posted 11 June 2009 - 04:48 PM

Who the fuck cares? Do the pointers contribute to the slowness? If no, then stfu.
Was This Post Helpful? 0
  • +
  • -

#87 c0mrade   User is offline

  • D.I.C Regular

Reputation: 20
  • View blog
  • Posts: 412
  • Joined: 16-November 07

Re: Addressing the "Java is Slow" Myth

Posted 11 June 2009 - 07:47 PM

View PostNeoTifa, on 11 Jun, 2009 - 03:48 PM, said:

Who the fuck cares? Do the pointers contribute to the slowness? If no, then stfu.

I guess the people who know what pointers are care...
Was This Post Helpful? 0
  • +
  • -

#88 NeoTifa   User is offline

  • NeoTifa Codebreaker, the Scourge of Devtester
  • member icon





Reputation: 4933
  • View blog
  • Posts: 20,259
  • Joined: 24-September 08

Re: Addressing the "Java is Slow" Myth

Posted 11 June 2009 - 08:26 PM

I know what pointers are... sorta. But that has nothing to do with the original conversation. So...
Was This Post Helpful? 0
  • +
  • -

#89 c0mrade   User is offline

  • D.I.C Regular

Reputation: 20
  • View blog
  • Posts: 412
  • Joined: 16-November 07

Re: Addressing the "Java is Slow" Myth

Posted 11 June 2009 - 08:36 PM

But it does... Java trades (some, at least) performance for a higher level of abstraction and safer programming environment. Pointers are relevant in both cases.

I wouldn't usually say anything but the phrases "who the fuck cares" and "stfu" swayed my attitude.

If you're over your head and can't manage to keep up with the conversation, don't try to join in with offensive comments!
Was This Post Helpful? 0
  • +
  • -

#90 Locke   User is offline

  • Sarcasm Extraordinaire!
  • member icon

Reputation: 552
  • View blog
  • Posts: 5,624
  • Joined: 20-March 08

Re: Addressing the "Java is Slow" Myth

Posted 11 June 2009 - 08:39 PM

View Postc0mrade, on 11 Jun, 2009 - 09:36 PM, said:

If you're over your head and can't manage to keep up with the conversation, don't try to join in with offensive comments!


You haven't known NeoTifa very long, have you? :lol: ;)

This post has been edited by Locke: 11 June 2009 - 08:40 PM

Was This Post Helpful? 0
  • +
  • -

#91 Dantheman   User is offline

  • D.I.C Regular

Reputation: 34
  • View blog
  • Posts: 445
  • Joined: 27-May 09

Re: Addressing the "Java is Slow" Myth

Posted 11 June 2009 - 08:40 PM

PLEASE CLOSE THIS THREAD
Was This Post Helpful? 0
  • +
  • -

#92 skyhawk133   User is offline

  • Head DIC Head
  • member icon

Reputation: 1981
  • View blog
  • Posts: 20,434
  • Joined: 17-March 01

Re: Addressing the "Java is Slow" Myth

Posted 11 June 2009 - 08:47 PM

Shame this thread turned in to such an unprofessional and immature mud slinging contest.

In the future, let's try to keep things on topic, and leave the "feeeeeelings" out of it.

Thread closed.
Was This Post Helpful? 0
  • +
  • -

  • (7 Pages)
  • +
  • « First
  • 5
  • 6
  • 7