Skip to content
This repository has been archived by the owner on Jan 27, 2021. It is now read-only.

support native call #10

Closed
netpyoung opened this issue May 3, 2018 · 1 comment
Closed

support native call #10

netpyoung opened this issue May 3, 2018 · 1 comment

Comments

@netpyoung
Copy link

Do you have a plan to support interop .net?

https://clojure.org/reference/java_interop

like

(Console/WriteLine "A")
(.ToString 1)
@kflu
Copy link
Contributor

kflu commented May 3, 2018

We do support interop with .NET today, but not in the form you mentioned.

Specifically, Schemy don't support accessing .NET functions unless they are explicitly exposed (registered) via the interpreter. Schemy is used as a embedding language for users to extend the application business logic. In most cases, it is a major security concern letting Schemy script accessing anything the host platform (application) can access, e.g., file system, etc.

Languages like Clojure, IronPython, etc, have a different goal - they are full-fledged language built on that runtime (JRE/CLR), while they can, they are not intended to be used as embedded languages. In fact, if used as embedded languages, you've to put a lot of effort on how to sandbox them.

@kflu kflu closed this as completed May 3, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants