Getting stuck on conditionals tho pic.twitter.com/JEPeQAp5yy
Ugh lolcats, didn't we collectively agree to forget about those 10 years ago?
You're right. It IS silly. Why WOULD anyone want this? Here's why👇
Think of this compiler as a first step. It's a great learning experience and immensely intellectually gratifying
1) I learned how to build a babel macro, those are great. Just ask @kentcdodds
2) I learned that language extensions are harder than just macros. Ask @jtomchak
AND through this project and my earlier projects with Markdown extensions, I am learning how to play around with and be creative with ASTs. Abstract Syntax Trees.
Those are incredibly important and very useful.
Playing with ASTs opens up another possibility 👇
Machine learning algorithms that write code.
That's right. Now that I can translate code into an AST and an AST back into code, I can start playing with machine learning algorithms that can manipulate an AST.
With a machine generated AST, through some sort of reinforcement learning or similar, you could write part of a program, or just its tests, then unleash an army of a thousand monkeys to finish it up for you.
And that opens up so many possibilities it ain't even funny.
And I'm also learning the building blocks to building an AI that writes its own code.