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

Can shen be embedded in the host language?


That depends on the port. The Clojure port allows this:

https://github.com/hraberg/shen.clj#神-define-prolog-and-defp...


From[0], the answer appears to be yes, but it greatly depends on the host. One can write Common Lisp code by using uppercase. Using $native will execute the following code as Scheme code. For Clojure, it looks like Shen provides a FFI for basic interactions.

[0] http://www.shenlanguage.org/learn-shen/native.html




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

Search: