CS547 Human-Computer Interaction Seminar   (Seminar on People, Computers, and Design)

Fridays 11:30am-12:30pm PT · Gates B3 · Open to the public
Previous | Next
Yotam Gingold
George Mason University
I❤️LA: Compilable Markdown for Linear Algebra
February 25, 2022

Linear algebra has become the lingua franca of many fields of scientific and high-performance computing. Matrices and vectors allow researchers to succinctly communicate mathematical expressions involving arbitrary amounts of data. Mathematical notation using these constructs evolved over time to be readable and precise. Yet writing linear algebra with a computer is challenging: mathematicians must choose between writing in languages that produce well-formatted but semantically-underdefined representations such as LaTeX; or languages with well-defined semantics but notation unlike conventional math, such as C++/Eigen. In both cases, the underlying linear algebra is obfuscated by the requirements of esoteric language syntax (as in LaTeX) or awkward APIs due to language semantics (as in C++). The gap between representations results in communication challenges, including underspecified and irreproducible research results, difficulty teaching math concepts underlying complex numerical code, as well as repeated, redundant, and error-prone translations from communicated linear algebra to executable computer programs.

In this talk, I will describe I❤️LA, a language with syntax designed to closely mimic conventionally-written linear algebra, while still ensuring an unambiguous, compilable interpretation. Inspired by Markdown, a language for writing naturally-structured plain text files that translate into valid HTML, I❤️LA allows users to write linear algebra in text form and compile the same source into LaTeX for scientific communication, C++/Eigen, Python/NumPy/SciPy, and MATLAB, with easy extension to further math programming environments. I will outline the principles of I❤️LA's design and highlight design decisions that balance between readability and precise semantics. I will demonstrate through case studies the ability for I❤️LA to bridge the semantic gap between conventionally-written linear algebra and unambiguous interpretation in math programming environments.

Try it: iheartla.github.io


Yotam Gingold is an Associate Professor in the Department of Computer Science at George Mason University (GMU). He directs the Creativity and Graphics Lab (CraGL), whose mission is to solve challenging visual, geometry, and design problems and pursue foundational research into human creativity. His research spans computer graphics, computer vision, and perceptual psychology. His work is published regularly in ACM Transactions on Graphics (TOG) and presented at SIGGRAPH. His research has been incorporated into Adobe Creative Cloud as Illustrator's Puppet Warp tool. He serves on the program committees of ACM SIGGRAPH (North America and Asia), Eurographics, and many other international venues. His work has been funded by the National Science Foundation (including a CAREER award), Google, and Adobe. He received his Ph.D. from New York University (2009), where it was awarded the Janet Fabri prize for most outstanding dissertation. In 2017, he was awarded GMU's Teaching Excellence Award.