Open brysgo opened 6 years ago
You would probably need to use something like LaTeX to write the math part. But I can imagine having an es6 template string tag that parses latex into executable javascript. I can also imagine an editor plugin that renders the LaTeX inline when you unfocus the template string.
I found a project that is parsing LaTeX into a math runtime: https://github.com/viktorstrate/algebra-latex I imagine it can either be expanded using the insights in this project, or a similar approach can be taken to create something new.
These explanations are really cool, thanks for this. It turns something abstract into something tangible that a developer can play with. To build on this, I would love to see a transpiler that leverages these explanations to turn mathematics into executable javascript, and potentially turn executable javascript into mathematical notation. It would go a long way towards demystifying scientific research for the layprogrammer.