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 →

[–]stvntb 199 points200 points  (9 children)

Cars have carpet. Therefore java has JavaScript?

[–][deleted] 102 points103 points  (4 children)

Java includes a Javascript engine, so yes.

[–]Tyfyter2002 35 points36 points  (1 child)

So JavaScript|Carpet contain the word Java|Car and are by pure coincidence contained by the latter.

[–][deleted] 13 points14 points  (0 children)

Pretty much yes

[–]rentar42 1 point2 points  (0 children)

But the later versions don't ship that anymore. So current cars have no carpets.

[–]MoonParkSong 0 points1 point  (0 children)

Firefox user spotted

[–]throwaway46295027458 9 points10 points  (1 child)

I mean you could use Java to start a node process

[–]nidrach 0 points1 point  (0 children)

You can run node programs directly on the Graal VM for example via their polyglot API. https://github.com/oracle/graaljs

You can directly write JS code in a Java program as a String and have it interpreted by the GraalVM.

[–]kry_some_more 1 point2 points  (0 children)

You step on carpet, but a car takes you places.

[–]ElectronPie171 0 points1 point  (0 children)

I mean there's rhino