Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Embedding JS in Rust by using V8 (as kibwen has mentioned) would be no problem, but using node.js modules might not be so easy. It's like calling ruby gems from C.

What do you mean by "tooling for the web"? If it's preprocessors like LESS (that are written in JS), you could run the JS in V8 to transform the CSS efficiently, but maybe the compiler "binary" (script) is enough. In this case it's the best approach, since performance will be good, and you don't have to reinvent everything.

But if it's something like express.js, it's probably not worth it.

It's surely possible somehow, but in a pretty hacky way and at the cost of high overhead and complexity caused by calling from a static language to a dynamic one.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: