You're absolutely correct, the base is not specified. That's the joke. 1-1=0 would not be a joke. Perhaps it's better not to think of it as a joke. When mathematician reads what seems like nonsense, questions like "hmm is there a base where this would be true?" and "which bases is this true in?" pop up