r/javascript • • Dec 16 '18

Coming from Python to JS NSFW

const print = console.log

I found my safe space.

607 Upvotes

156 comments sorted by

View all comments

337

u/Pavlo100 Dec 16 '18

Here is the Java implementation for those who want to make their life harder

const System = {out: {println: console.log}};
System.out.println("why?");

98

u/blasto_blastocyst Dec 17 '18 edited Dec 17 '18
import com.half.your.ram.is.gone.for.no.reason;

0

u/[deleted] Dec 17 '18

[deleted]

211

u/themaincop Dec 17 '18
Java apps      Javascript apps 
           🤝  
    Using half your ram
   for no goddamn reason

69

u/rangeDSP Dec 17 '18

A text meme. This is amazing

13

u/mutexjp Dec 17 '18

shots fired

6

u/placidified Dec 17 '18

Was using VS Code to as my editor for our Python backend. VS Code kept using 10GB of memory !

Switched to PyCharm.

13

u/PM_ME_HTML_SNIPPETS Dec 17 '18

Oddly enough, I don’t think I’ve ever had that problem with Code, but have had a few runaway memory sessions with ST3.

9

u/AlexAegis Dec 17 '18

there was a bug a month or two ago in the Python Language Server which caused heavy memory leaks. Probably still has some issues.

4

u/unquietwiki Dec 17 '18

Must install outdated JDK, to support libraries not updated since 2006 on SourceForge...

2

u/YasZedOP Dec 17 '18

Could you explain why this would result in more RAM usage?

4

u/LaSalsiccione Dec 17 '18

It’s a joke about Java/JVM being memory hungry I believe

0

u/jasie3k Dec 17 '18

Oh, JaVa iS BaD circlejerk.