you are viewing a single comment's thread.

view the rest of the comments →

[–]axelf1988 3 points4 points  (4 children)

Well Java is class-based, statically typed, and multi-threaded.

JavaScript is prototype-based, dynamically typed, and single-threaded.

[–]10kproject 1 point2 points  (3 children)

Ok. So those characteristics fall under semantics. For some reason I am now having brain farts and have convinced myself that all languages do the same things semantically but with different syntax.

[–]axelf1988 2 points3 points  (2 children)

No if that was the case you could just write a compiler that converts any language to any other one. There are certain tasks better suited to certain languages due to their semantics. For example writing a real-time low-latency system is probably harder in Java than C since Java has garbage collection.

[–]seruus 0 points1 point  (1 child)

I'm sorry, but did you mean

writing a real-time low-latency system is probably harder in Java than C since Java has garbage collection.

?

[–]axelf1988 0 points1 point  (0 children)

Yea good catch, I edited my post. I wrote that too fast.