|
|
|
|
|
by evnc
784 days ago
|
|
When I see an embedded DSL passed around as strings like this I can't help but think "this could be its own programming language" Then it could have syntax highlighting, auto complete, and so on. The type system for such a language could possibly include verifying shapes at compile time. What would a language comprised of .ein source files for manipulating tensors, which compiles down to the same low level ops, look like? |
|
Here's einsum in 200 lines of Common Lisp. All einsum expressions are statically analyzed, checked for errors, and AOT compiled to machine code: https://github.com/quil-lang/magicl/blob/master/src/high-lev...