On Wednesday, August 26, 2015 at 4:23:29 PM UTC, Fengyang Wang wrote: > > Hi, > > I learned Julia recently, and I must say it has been incredible for > scientific work. I am in love with the clean, modern syntax. Props to the > developers for their tireless efforts to improve this language even further! > > Historically, Lua and Javascript have been the most common choices for > scripting languages in larger projects... Lua because it is so easy to > integrate with C(++), and Javascript primarily because it is so easy to > integrate with Java. I would like Julia to fill this role for one of my > current projects, but I have identified some hurdles. >
I know Lua is hugely much used, in say, games, more than Python, but is it somehow (or Python, assume not with JavaScript) good/better to integrate with C++ (not just C)? I understand Keno's Cxx.jl is best in class for that. [Of the few games using Python, one is Eve Online (the say biggest multi-player (in a sense, in the world), in Stackless Python, made by people I know here in Iceland.. Blender also uses Python.] > 1. For now, security is not important because scripts are assumed to > be trusted. However, a plan for scripts to eventually be downloaded from > the Internet is in the works. I could not find a Julia sandbox, however. > Does such a sandbox exist? > > No, as already answered. Some other languages, like C# and Rust, have "managed", otherwise "safe". I've wondered if it could be done in Julia - e.g. by disallowing ccall (and more..). It would break most of Julia.. but say, there where exceptions. Only disallow ccall in your code and not the standard library. I'm not sure how easy if would even be, this disallowing (possible with a macro that looks for ccall?), as ccall is a keyword. And even if you could do this, say be changing core Julia, how easy would it be to get around (as you can modify the standard library at runtime..)? > > 1. > 2. My customers may not necessarily be computer-literate, and I can't > expect them to install Julia. Also, due to the rapid pace of Julia > development, it may be advantageous to install a portable Julia entirely > for this project only. My project currently targets Windows, Linux, and > Mac > OSX. Is there a portable way to install a portable Julia, or will I have > to > create separate installation code for each OS? > > See my other answer I just gave in another thread. -- Palli.