Is it possible to load a runtime shared library into JavaScript and use it -


Is it possible to load runtime shared libraries in JavaScript and to use it? Is there a safety concern about allowing loading of a .so file?

In a web browser? I think it is impossible.

Server-side programming (eg node.js) is probably possible. Not sure about this

Well Java can sth like this

  ScriptEngineManager manager = new ScriptEngineManager (); ScriptEngine Engine = manager.getEngineByName ("JavaScript"); String js = "var t =" + someJNIMethod () + ";" Engine.eval (js);  

This is not practical, but possible.


Comments

Popular posts from this blog

java - Can't add JTree to JPanel of a JInternalFrame -

asp.net mvc - How to attach sql database to a javascript graph -

c# - How to know the number of Threads created and limit the Tasks accordingly -