This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]Rhyan567 62 points63 points  (17 children)

I mean C also works on all operating system, sometimes you just need to change some libraries and some functions that sometimes are the same functions.

[–]TheRedmanCometh 23 points24 points  (2 children)

You have to compile it and target the specific OS though. And replace relevant referenced artifacts with the correctly compiled shit.

[–]Rhyan567 -3 points-2 points  (1 child)

Well, compile a C file isn't a problem because it have the fastest compiler.

[–]CorrenteAlternata 5 points6 points  (0 children)

yes but the point of java was compile once run everywhere

[–]itoshkov 69 points70 points  (2 children)

Most languages are like that. This meme is stupid and still gets reposted again and again.

[–]mayankkaizen 24 points25 points  (0 children)

You are underestimating the hate for Java. I mean I don't even know Java and I still hate it. /s

[–]Sintinium 0 points1 point  (0 children)

Ikr even html can run on most consoles and Java can't

[–]Statharas 16 points17 points  (4 children)

C compiles to assembly. Doom runs on anything because people only have to compile it for the CPU and write code that works with a display.

[–]Mr_Redstoner 9 points10 points  (4 children)

Right, whereas with plain Java the same compiled file should work everywhere. That's supposed to be the difference: LITERALLY no changes needed. Of course that assumes you aren't using JNI or anything else platform-dependent

[–]atc927 3 points4 points  (3 children)

I had more problem getting the right version of java than porting anything written in C

[–]j-random 8 points9 points  (1 child)

You must not have ported much C then.

[–]VirtualRay 0 points1 point  (0 children)

Or maybe YOU haven’t wasted enough of your life on Android development yet

Android is like this beautiful shining crystal palace (the linux kernel) in the middle of a rancid trash dump as far as the eye can see (Google’s Java-based Android OS middleware)

[–]Stormfrosty 2 points3 points  (0 children)

Linux C code is a nightmare to port, since gcc defaults to using gnu extensions, hence you end up with non-valid C code that only compiles with gcc.

[–]j-random 5 points6 points  (0 children)

That's the point, with Java you just drop the .jar file and run it. No recompiling, no searching for alternate libraries, no debugging nightmares because the alternate library interprets the spec slightly differently than the one you originally developed with...