Frontend • May 27, 2019

It's Alive! Machine Learning Writes Your Code! 🧠🔮

Dominic and I have taken all open source TypeScript code from GitHub, cleanup it up, and fed it to a machine learning model we built with TensorFlow. We trained this model to predict the body of a function given just the signature. In this talk we plan to explain how we collected, cleaned up and prepared the data, and then designed and trained the model. We will demonstrate how the model works live on stage, and show how we create a Visual Studio Code extension using TensorflowJS that can automatically complete the body of the function you are working on. Like most programmers, our model sometimes writes code that makes sense, but it also likes to produce buggy / non-sense funny code. This will make the talk a unique, memorable experience with some surprises ;-) We plan to keep working on the improving the model in the coming months, so we may even be able to show how our model writes entire Angular components with their templates and everything by the time of the conference.