News for hackers. Stuff that matters.
Re:An embeddable Prolog scripting language for Go by yencabulator on Thursday January 27, 2022 @10:20PM (#30110366)
I see it claiming to have a sandbox but at the same time it seems to allow the program to read and write arbitrary files?

  open(File, Mode, Stream, Options)
https://github.com/ichiban/prolog/blob/8e3dafd6d29334417a793...
Re:An embeddable Prolog scripting language for Go by yichiban on Friday January 28, 2022 @12:10AM (#30110904)
Good point!

`open(File, Mode, Stream, Options)` and other builtin predicates are available if you construct an interpreter with `p := prolog.New(nil, nil)`.

On the other hand, `p := new(prolog.Interpreter)` constructs a sandbox interpreter without any builtin predicates. You can explicitly register builtin predicates as you wish.