When Ponyboy says this phrase he means that they don't need to say words to share the problems they have in their life. Both of them have problems so they understand each other like no on do : Johny's parents do not pay attention to him; Pony must live his life with a big loss - death of his parents. So they both know how life can be unfair sometimes.
hamlet at this point is thinking about committing sui cide. hes comparing death to a little sleep. hes asking if people should really exist. hes asking himself what is the big point of life?