Re:Type-safely embed DSLs directly into Java
by teslalang on Saturday September 19, 2020 @05:52PM
(#24530547)
Amazing! Reading the posted link this looks much bigger than embedding, which is crazy impressive btw. Do you anticipate building support for more resources? I notice you have GraphQL support... what about SQL?
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?
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...
[1] https://docs.oracle.com/javase/8/docs/jdk/api/javac/tree/com...