Re:Type-safely embed DSLs directly into Java
by eatonphil on Thursday September 17, 2020 @07:09PM
(#24511065)
So you have a javascript frontend hooked into the java compiler? Or how does your javascript integration work?
[ Parent
| on HN ]
Re:Type-safely embed DSLs directly into Java
by mckinney on Thursday September 17, 2020 @07:29PM
(#24511216)
At compile-time manifold-js[1] parses JS and generates Java types (stubs), which forward execution to rhino at runtime. Basically, JS seamlessly mapped onto Java's type system.
[1] https://github.com/manifold-systems/manifold/tree/master/man...