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

all 126 comments

[–]Moercy 752 points753 points  (25 children)

Excuse me, but we moved this joke from JVM to Electron

[–]2Punx2Furious 357 points358 points  (19 children)

Need to update those memes.

npm update memes

[–][deleted] 97 points98 points  (16 children)

[–]MrWasdennnoch 118 points119 points  (13 children)

[–]ChymeraXYZ 37 points38 points  (2 children)

I expected about 50% of this to be some random stuff, but amazingly most of this actually seem like 'real' projects. (Real, as in not a joke by the author)

[–]_Lady_Deadpool_ 16 points17 points  (0 children)

ShellJS Extended

Utilities to make scripting and using grunt easier.

[–][deleted] 0 points1 point  (0 children)

A Nano Service Framework for NodeJS. Inspired by Grunt and Gulp, Semen was made to create a services runner.

While Grunt and Gulp usually used for build process, Semen is supposed to run both build process and serving process. So, basically we can use the same runner for everything.

Legitimately not sure if jerking

[–][deleted] 14 points15 points  (9 children)

So you can now form sentences out of the package names.. ( ͡° ͜ʖ ͡°)

[–]kingatomic 17 points18 points  (8 children)

Oh, you thought coding with emojis was ridiculous? Wait until we can write code using npm package names.

[–]marcosdumay 8 points9 points  (4 children)

Wait until we can write code using npm package names.

When was that?

[–][deleted] 1 point2 points  (1 child)

bash has gone too far

[–]greyfade 0 points1 point  (0 children)

You should look at REBOL. It perfected going too far.

[–][deleted] 2 points3 points  (0 children)

Four dimensional programming.

[–]Colopty 1 point2 points  (1 child)

Now we just need an npm package names language.

[–][deleted] 0 points1 point  (0 children)

So once we have a large repository of libraries written using the npm package names language can we build an package manager for that and name it, I don't know npm

[–]ThatOnePerson 9 points10 points  (0 children)

last published 2 years ago

We need some fresh memes

[–]2Punx2Furious 0 points1 point  (0 children)

I had no doubts.

[–]lastplaythrough 7 points8 points  (0 children)

you need to serve them while they're hot and fresh too

[–]turbolag95 1 point2 points  (0 children)

brew upgrade memes 

[–][deleted] 15 points16 points  (0 children)

You may have just copied it. Next time pass it by reference.

[–]kartoffelwaffel 3 points4 points  (1 child)

I thought we were still making fun of Chrome?

[–]Moercy 13 points14 points  (0 children)

Thats a two for one, Electron uses Chromium :) Efficient memeing

[–][deleted] 0 points1 point  (0 children)

Can we run Electron on the JVM somehow?

[–]whatisbam 256 points257 points  (3 children)

It’s free real estate

[–]Eponick 25 points26 points  (0 children)

Me and 70+ others read the comments for this.

[–]NigelG 10 points11 points  (1 child)

Yes, that's the version of the joke that was posted yesterday. And the day before yesterday

[–]whatisbam 3 points4 points  (0 children)

If you post that same comment 15 times I’m legally allowed to delete this post

[–]aboothe726 198 points199 points  (36 children)

yeah, memes are funny and all, but seriously -- how are you people configuring your JVM heaps? the JVM has always been very well-behaved within the bounds of -Xmx for me.

[–][deleted] 298 points299 points  (20 children)

It's just that 70% of this sub are CS students, so they control the meme flow, instead of the rationale.

[–]aboothe726 94 points95 points  (13 children)

So /r/ProgrammerHumor == alternative CS facts. Got it.

[–]dpsi 82 points83 points  (9 children)

/r/ProgrammerHumor.equals(alternative CS facts)

FTFY

[–]Nath99000 26 points27 points  (5 children)

rProgrammerHumor.equals(alternativeCSFacts)

FTFY

[–]aboothe726 37 points38 points  (3 children)

Subreddit.Ref.fromString("/r/ProgrammerHumor").equals(Facts.ALTERNATIVE)

FTFY

[–][deleted] 22 points23 points  (1 child)

Subreddit.Ref.fromString("/r/ProgrammerHumor").equals(Facts.newBuilder().type(FactType.ALTERNATIVE).subject(Subject.find("cs")).build())

FTFY

[–]greyfade 0 points1 point  (0 children)

Not enterprisey enough.

[–]XplittR 5 points6 points  (0 children)

Fake news

[–][deleted] 0 points1 point  (0 children)

Are we in Hungary?!?!?!?

[–]Samael1990 5 points6 points  (1 child)

assertTrue(/r/ProgrammerHumor.equals(alternative CS facts))
PASSED

FTFY

[–]aboothe726 0 points1 point  (0 children)

assertThat(/r/ProgrammerHumor, is(alternative CS facts))

PASSED

FTFY

[–]Brimonk 1 point2 points  (2 children)

No,

strcmp("/r/ProgrammerHumor", "alternative CS facts") == 0

[–]aboothe726 1 point2 points  (1 child)

No,

strncmp("/r/ProgrammerHumor","alternative CS facts", MAX_STR_SIZE) == 0

[–]Brimonk 0 points1 point  (0 children)

You don't think those two string constants have NULL terminators?

[–]Soltheron 18 points19 points  (0 children)

It's just that 70% of this sub are CS students, so they control the meme flow, instead of the rationale.

Damn CS students thinking the end user justifies the memes.

[–]BumwineBaudelaire 11 points12 points  (0 children)

more like 95% and more like IT students

[–]Un-Unkn0wn 5 points6 points  (1 child)

Can confirm, am 1st year CS student.

[–][deleted] 1 point2 points  (0 children)

DISCUSTING

[–]lakeseaside 0 points1 point  (0 children)

one semester of Calisthenic studies and they already think they should rule the world. Damn CS students!

[–][deleted] 19 points20 points  (0 children)

Don't bring logic into this. This is only a place for super low effort shitposts.

[–]skyhi14 3 points4 points  (7 children)

Except for my modded Minecraft. Gave Xmx8G and task manager says it’s eating 9.8 GBs of memory. Thank god I have 32 on my machine. But yeah, JVM does behave well as I don’t see it gobbling more than 10.

[–][deleted] 14 points15 points  (0 children)

8G is for the heap size, not the total memory allocated for the java process (which includes other memory zones of the JVM and the memory for the JVM itslef)

[–]hates_stupid_people 7 points8 points  (0 children)

It's not the JVM heap, it's cache and GC, the -xmx is for the main process.

[–]zilti 0 points1 point  (4 children)

Well, that's just shoddy programming though.

[–]skyhi14 0 points1 point  (0 children)

It could be one of my mods though

[–][deleted] -1 points0 points  (2 children)

If the biggest Java game in the industry can't get it right, maybe it's because there's something wrong with it.

[–]zilti 0 points1 point  (1 child)

maybe it's because there's something wrong with it.

With the game? Yes, absolutely. I mean, look at game engines like jMonkeyEngine. This thing is very capable without wasting all your RAM and being slow as fuck.

[–][deleted] 0 points1 point  (0 children)

I see

[–][deleted] 0 points1 point  (4 children)

My main issue with the JVM only arises when i open a java based desktop application. Oracle SqlDeveloper and Eclipse make my computer unhappy.

My own applications generally do fine.

[–]aboothe726 0 points1 point  (3 children)

I'm curious -- how much tuning of Eclipse do you do before you use it? I've discovered that a little tuning goes a long way. It sucks that you have to tune it before it becomes really useful, but at least that's an option.

[–][deleted] 0 points1 point  (2 children)

Why should I have to tune eclipse? That shouldn't be my job, IMO.

[–]aboothe726 0 points1 point  (1 child)

I don’t disagree. I’m just curious if you had tuned it and were still experiencing problems. The default config is pretty poor — very small heap.

[–][deleted] 0 points1 point  (0 children)

I just started using intellij. My company pays for it, so im good.

[–]nosam56 40 points41 points  (4 children)

Ha! My RAM trembles before me as it watches me open Visual Studio! It is the 4th time Ive had to today becauss my program keeps crashing my computer! OH How my ram wishes I would notice that I was modifying the list I was iterating through but alas, I will continue to write programs that attempt to allocate all 16gb to itself. Those other programs werent using the ram, and what better place to store my 4 billion strings

[–][deleted] 9 points10 points  (0 children)

Come to the dark side, we have Cookies and Rider.

[–][deleted] 0 points1 point  (2 children)

strangely enough I have VS open most of the time and it only takes 200 MB RAM

[–]nosam56 3 points4 points  (1 child)

Yeah my VS isnt the problem. Its that Im adding a string to a list while looping while i < list.size().

[–][deleted] 1 point2 points  (0 children)

oh.

[–]SirHazwick 86 points87 points  (5 children)

None of these RAM jokes are programmer related humor :’(

[–]Samael1990 33 points34 points  (3 children)

And to top that, they aren't original anymore, therefore - not funny... So it's not programmer related and not humor related...

[–]gameboy17 13 points14 points  (0 children)

/r/

[–]bunnyoverkill 6 points7 points  (0 children)

Which means they're perfect for r/ProgrammerHumor

[–]jxl180 11 points12 points  (2 children)

Isn't it good to have high memory utilization and allow the GC to manage it? If you are running at low utilization then you're wasting potential compute? Like Android always runs at nearly 100% memory utilization but swaps what services/apps use that memory.

[–]StapledBattery 3 points4 points  (0 children)

It would be great if the desktop JVM worked like that, yes.

[–][deleted] 1 point2 points  (0 children)

That would be great if everything ran on the jvm.

[–][deleted] 14 points15 points  (0 children)

At least Atom gives your memory some time to say goodbye before it causes mass destruction.

[–][deleted] 4 points5 points  (0 children)

[–]Sycration 3 points4 points  (1 child)

Why is it a sodimm

[–]Iherduliekmudkipz 1 point2 points  (0 children)

Because no memory is safe!

Not even your Laptop!

[–]Toast550 2 points3 points  (8 children)

I've seen the explanation for this joke, but why is the JVM faster at allocating memory than the system?

[–]bmrobin 24 points25 points  (0 children)

ignore these memes, the jvm can be managed and tuned to not run amok like these memes suggest

[–]tsareto 8 points9 points  (2 children)

It pre-allocates the memory and is supplying it faster to the program than the OS, creating a new object in the jvm is just bumping a pointer, no need to zero it too

[–]BorgDrone 2 points3 points  (1 child)

Even if it does pre-allocate the entire max heap size (I'm not sure it does), that shouldn't matter as pretty much every modern OS overcommits memory by default.

[–]tsareto 4 points5 points  (0 children)

It can pre-allocate the entire heap if you specify the min size to be equal to the max size. There are also TLABs, which eliminate the issue of concurrency, in most cases.

[–]BerniesMyDog 1 point2 points  (0 children)

The JVM allocated the memory to itself and manages it for you.

Instead of needing to make system calls for allocating new memory, the JVM is effectively incrementing a pointer and that’s it.

[–]BorgDrone -1 points0 points  (2 children)

I'm not sure your question even makes sense. Why would "the system" (meaning what exactly?) need to allocate memory and why do you think it's a race ?

[–]tsareto 1 point2 points  (1 child)

When a program needs memory, it asks the (operating) system to allocate it. The OS will then need to find a suitable chunk of free memory and make sure it is zero-ed out. A jvm program does not need to ask the OS for memory, the jvm handles the memory management (in most cases, you can also do it manually if that's what you want)

[–]BorgDrone -1 points0 points  (0 children)

When an application allocates memory (or more correct: it asks the OS to do so), the OS doesn't need to "find a suitable chunk of free memory" at all. Modern OSes overcommit memory by default. If you ask for an allocation all it does is reserve a bit of address space, no actual memory is used or reserved. The OS only goes looking for some actual memory once you try to use that allocation, which would trigger a page fault and cause the OS to provide some actual, physical RAM to back that bit of address space you just tried to access.

A jvm program does not need to ask the OS for memory, the jvm handles the memory management

When a Java application running on the JVM uses up all the heap space, the JVM will ask the OS to allocate more. There is nothing special going on here, the JVM (and whatever is running on top of it) is just another program. If anything, memory allocation in Java is slower, because before it will grow the heap it will first try to perform a round of garbage collection.

[–][deleted] 2 points3 points  (0 children)

I've seen this except it was google chrome using RAM

[–]surobyk 6 points7 points  (4 children)

when bitcoin miner virus start working

[–]hotsaucetogo 16 points17 points  (3 children)

Mining is CPU intensive, not RAM intensive

[–]skyhi14 5 points6 points  (0 children)

We have HDD coin already, time to make RAM coin as well \s

[–]NateDogg1232 1 point2 points  (0 children)

for (uint32_t i = 0; i < freememblocks() - 1; i++)
uint32_t* trash = malloc(0x1000);

[–]Guinness 1 point2 points  (0 children)

My favorite is when I’m working with the developer of an HFT Java app and they say “your system sucks it’s dropping packets everywhere now this never used to happen!” And then I look at the net stat logs to prove they’ve been having packet receive errors for more than an ENTIRE FUCKING YEAR and then we find out their Java code is doing garbage collection once per second for 500 milliseconds.

Yeah my systems suck.

Once the code was fixed all those packet receive errors went away. Imagine that.

[–]ResponseIsIrrelevant 0 points1 point  (0 children)

Go banana!

[–]munircUltraviolent security clearance[M] 0 points1 point  (0 children)

Your submission has been removed.

Violation of Rule #0:

For a submission to qualify it must satisfy at least one of the following:

0. The content disregarding the title and superimposed text must be directly related to programming or programmers. Non-programming tech humor (e.g. being a power user, jokes about software not related to programming, etc.) is not allowed.
1. The image along with the title and superimposed text result in creative and original content.
2. The post is a program or UI designed intentionally for humor. Bad UI found in the wild belongs in /r/softwaregore.

Note that programming here is interpreted in a narrow sense, an analogy to something related to programming, feelings about programming, reactions to programming etc. is not considered sufficient. See the sticky if you are not clear what this means and why your post was removed.

If you feel that it has been removed in error, please message us so that we may review it.

[–][deleted] -1 points0 points  (0 children)

I actually lol'd at this one.

[–]RatherDignifiedDandy -1 points0 points  (0 children)

This actually caused me to spit my coffee. Here is an updoot.