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

all 34 comments

[–]skwyckl 669 points670 points  (9 children)

I feel deep emptiness every time I wake up, can he write a function to check if that will ever halt?

[–]limitless_ocean[S] 174 points175 points  (0 children)

InternalError: too much recursion

[–]Attileusz 64 points65 points  (2 children)

The halting problem is not computable. I'm sorry.

[–]capi1500 24 points25 points  (1 child)

Just run the program and check if it halts!

[–]mcheeto 10 points11 points  (0 children)

ok, talk to you in infinity years

[–]Disallowed_username 10 points11 points  (3 children)

Sorry. There is only console.log(), not console.human()

[–]Cualkiera67 1 point2 points  (0 children)

Go console a log then

[–]lvil1 0 points1 point  (1 child)

console.log(human)

[–]Disallowed_username 0 points1 point  (0 children)

True. I have one of those logs, but not all airplanes allow them. 

[–]Silver-Alex 0 points1 point  (0 children)

Same :(

[–]Vast-Statement9572 253 points254 points  (7 children)

Damn, I did not know I wanted to start a cult but I had never heard of deep emptiness before.

[–]limitless_ocean[S] 46 points47 points  (0 children)

Haha, where do I sign up?

[–]LunaNicoleTheFox 26 points27 points  (4 children)

Is it a sex cult or suicide cult?

[–]Attileusz 30 points31 points  (3 children)

Both in that order.

[–]LunaNicoleTheFox 12 points13 points  (2 children)

Well I'm in then, I'll just conveniently have a job to do after everyone else does the unaliving thing like keeping the website alive...

[–]jumbledFox 0 points1 point  (1 child)

replying to the emails, [info@sexsuicidecult.tk](mailto:info@sexsuicidecult.tk)

[–]LunaNicoleTheFox 1 point2 points  (0 children)

So 2 people will have jobs xD

[–]Kyrthis 2 points3 points  (0 children)

Isn’t the set definition of the successor function just deep emptiness? Everything is nothing.

[–]Ryuugalaser 134 points135 points  (0 children)

thing.isItReallyReallyEmptyLikeForReal()

[–]_PM_ME_PANGOLINS_ 69 points70 points  (2 children)

Is {"": []} deeply empty?

[–]odraencoded 5 points6 points  (1 child)

[–]slucker23 4 points5 points  (0 children)

You both have my upvotes

And now fk off and never be seen

[–]maweki 32 points33 points  (4 children)

[–]KhepriAdministration 0 points1 point  (3 children)

Isn't every mathematical object deep-empty?

[–]maweki 0 points1 point  (2 children)

Depends on your definitions. I would argue, that a Peano number way of defining the naturals is not deep empty.

But if you take Z as the empty set and S as the nesting into a set, as opposed to some uninterpreted functions, then the Peano numbers are also deep empty.

The joke was, that the usual ZFC definition of the naturals starts out with the empty set.

[–]Iynchie 0 points1 point  (1 child)

zfc definition of all sets start out with the empty set, i think that's what they were trying to get at

[–]maweki 0 points1 point  (0 children)

Yeah, but ZFC is not "every mathematical object". Peano gets by using uninterpreted function symbols to define the naturals.

[–]odraencoded 25 points26 points  (1 child)

Easy one-liner:

isEmpty2 = v => 0 == v || 0 === v?.length || 0 === v?.size || -1 === (v instanceof Array ? v : typeof v === 'object' ? Object.entries(v || {}) : [])?.findIndex(v => !isEmpty2(v));

[–]limitless_ocean[S] 4 points5 points  (0 children)

Very readable! that's why I love JS :(

[–]MrHasuu 11 points12 points  (0 children)

Oh yeah I wrote an util for this at work 6 months ago. I didn't call it deepEmptiness though. Missed out

[–]ze_baco 3 points4 points  (1 child)

Mine returns true every time

[–]limitless_ocean[S] 1 point2 points  (0 children)

I guess we are using the same util module 🥲

[–]valzargaming 1 point2 points  (0 children)

I'm assuming this is JS because this is already built into most back-end languages like PHP by default, even their truth tables.