Bill Gates making fun of Steve Jobs spending time in Indian Ashrams and acid use and Steve Jobs poking fun at Bill Gates for not inventing anything and using other peoples inventions to his own gain.
Both of them are geniuses and this is the result of that. One genius poking fun at another genius. Between the two, they changed the whole technology landscape like no other have done.
In order to understand Steve Jobs behavior, one has to understand what happened to him as a child. As you know, Steve Jobs father was from Syria and his mother was from the US and they met when his father was a Professor and his mother was a student in a Wisconsin university. He was born when his mother was around 23 years old and his father and mother were not married at that time (because Steve Jobs mother’s father objected to them getting married).
When he was young, he was put up for adoption and he was adapted by a couple in California with last name Jobs. When Steve got older, he found out about his true identity. He talked to his biological mother also (whom he traced through an investigator). He became very close to his biological sister also. He called her his best friend. But, he never forgave his Syrian father for abandoning him as a child. The Syrian father waited for a long time to get a call from Steve Jobs and that never happened.
Now, you can understand the sometime eccentric behavior of Steve Jobs. It is due to what happened to him as child (abandoned by his parents and gave up for adoption). The Indian Ashram’s helped the troubled but brilliant young Jobs. He later became a Buddhist and his marriage was conducted according to Buddhist rituals.