Hacker Read top | best | new | newcomments | leaders | about | bookmarklet login

It might not be slow in general, but it's easy to write slow code in it.


sort by: page size:

There isn't much inherent in the language design which dictates it must be very slow, though. It's mostly a result of the canonical implementation.

It’s easy to write slow code in any language. I wrote some slow Fortran before I learned how not to. Generally you need to know a good amount about not only the language, but about the machine you’re targeting, to write really efficient code.

It is slow, and I presume that’s because competent developers wrote it clean. It’s quite possible that it’s not clean either and was just written by developers incapable of performance or cleanliness. That possibility doesn’t detract from my argument - there’s no point in discussing performance or clean code with them if they’re incapable of either.

Slow in what sense? I mean, for almost all actual use cases, it seems to be quick enough when done right.

Slow code is usually written due to ignorance rather than choice. Lots of people only know OOP, which is slow and unoptimisable by default.

Some people don't care that it's slow. Availability and uniformity is much more valuable for example in school environment, especially at one where they teach IT one hour per week and the teacher is not really a programmer themselves.

I didn't say it's just "slow". I said it's an expected performance hit in comparison with languages like C++. In some cases that hit is tolerable, in others not.

Likely not that much slower. I rather have slightly slower code that is easy to develop & maintain, than code that is fast but hard to read, hard to maintain and easy to introduce bugs in to.

The language itself I don't really have a problem with, but it's slow.

As a lot of the work is done by code library code, there's a very good chance that the code is not all that slow.

It's not the fastest IDE out there, but it's certainly not unbearably slow.

Slow from a performance perspective, or to read and write code?

But as ergonomic as it is to use, compared to doing most things in C++, I think I can forgive its slowness.

You could call the compiler slow, but at runtime it's comparable to Java (= fast!).

The compiler is much slower, though.

C++ is slow as well.

Speed is also a reason not to use it, as programming and compilation are relatively slow in it.

I meant slow to compile. Think runtime performance is pretty solid.

I'm finding it instantaneous here on a large dirty codebase. In what way is it slow for you?
next

Legal | privacy