|
|
|
|
|
by mcpherrinm
2527 days ago
|
|
There are some circumstances where an interpreter is useful: For example, it should be possible to make better golang repls with an interpreter than with a binary. In a "scripting" scenario, you can load some golang code at runtime without needing to bring the full golang compiler toolchain along, which keeps the nice "single binary" deploys of golang. It may be possible to sandbox scripts as well (though I haven't looked into how that could work with this implementation), which could reduce the risk of running scripts (less likely to shoot yourself in the foot. Probably not a security boundary -just look at how much work goes into safe JS in browsers to have that). |
|