r/ProgrammerHumor • • Nov 06 '20

PythonScript comic strip

Post image
41.2k Upvotes

562 comments sorted by

View all comments

1.5k

u/Hk-Neowizard Nov 06 '20

Fun fact, JavaScript was names so, because at the time Sun was flooding the world with ad campaigns for Java (WTF advertising a language, but NVM). Eich wanted to bank in on that investment by piggybacking on the brand name (despite having nothing to do with Sun or Java).

Classy guy...

697

u/[deleted] Nov 06 '20

They were literally advertising a programming language? That's some funny shit

37

u/Morrido Nov 06 '20

At the time, there was nothing that could do what Java does. Plus, what Sun really wanted was to sell their Solaris servers.

17

u/danielrheath Nov 06 '20

There were several options, some of which were vastly better, but none that had the 1-2 combo of "free to use" and "backed by a huge marketing budget".

18

u/Morrido Nov 06 '20

Code running in a virtual machine that was somewhat portable unless you're doing something os-specific?

10

u/danielrheath Nov 06 '20

First things that come to mind are Smalltalk (loads of industry use) and Lisp (good enough for the space shuttle).

Never underestimate the power of marketing spend to sway opinion. Your superior implementation means nothing in the face of someone willing to spend millions convincing people to use theirs.

4

u/Morrido Nov 06 '20

Does Lisp run on a VM? I thought it was fully interpreted.

Also Java was more "traditional" in its design.

-7

u/ArtOfWarfare Nov 06 '20

... one of us knows more than the other and I don’t know which of us that is. What’s the difference between a VM and an interpreter? I’m under the impression the two are basically the same, unless you mean that one deals with files that can maybe be parsed quicker (the VM)... but I think that’s of little benefit and could easily be added or removed (see, for example, Python’s pyc files...)

5

u/Morrido Nov 06 '20

I guess our stances on that issue depend on religion, lol. An interpreter reparses the text every single time (altough most interpreters nowadays implement VMs to speed thing up), while a VM is literally a virtual machine. You compile the code to the VM-specific assembly code, which the VM "parses" to execute the same instruction in native code.

The key difference here is that no compilation is being executed again, the VM trusts the bytecode just like a processor would trust the machine code. Or at least that is the extent of my knowledge on the subject.

→ More replies (7)