Lattner is a Silicon Valley darling.

Former Apple Inc. (AAPL - Get Report) engineering wunderkind Chris Lattner has been hired by rival Alphabet Inc. (GOOGL - Get Report) to work in the company's artificial intelligence branch, Google Brain. 

Lattner announced the hire himself via Twitter and said that he will start work next week. Lattner is a Silicon Valley darling who also previously worked as the head of automated driving at Tesla Inc. (TSLA - Get Report) before leaving that position in June. 

Lattner only lasted at Tesla for six months, saying that "In the end, Elon and I agreed that he and I did not work well together and that I should leave, so I did."

Watch More with TheStreet: