Re: Evaluation with function whitelist

2023-07-16 Thread Dr. Arne Babenhauserheide
Mike Gran writes: > So I went ahead and checked in a working version of > my constrained REPL plus a constrained environment in the > (sandy sandy) module found here: > https://github.com/spk121/guile-web-sandbox/tree/master/module/sandy "Containerized web repl" — that sounds awesome! If you wa

Re: Evaluation with function whitelist

2023-07-15 Thread Mike Gran
Hey all- It was just by weird coincidence that I was working on something quite similar to all this for another side project, which is why I had an answer at hand originally. So I went ahead and checked in a working version of my constrained REPL plus a constrained environment in the (sandy sandy

Re: Evaluation with function whitelist

2023-07-15 Thread Dr. Arne Babenhauserheide
Ryan Raymond writes: > Thank you, all. I think it's safe to consider this matter concluded! Great to hear that — good luck! Best wishes, Arne -- Unpolitisch sein heißt politisch sein, ohne es zu merken. draketo.de signature.asc Description: PGP signature

Re: Evaluation with function whitelist

2023-07-15 Thread Ryan Raymond
Mike, you are truly a lifesaver. My work uses an in-house programming language that really is not too great, but now I finally have a chance to change their minds. Thank you so much! This appears to do exactly what I need. Dr. Arne, I will certainly use sandboxed evaluation as you have suggested. I

Re: Evaluation with function whitelist

2023-07-15 Thread Thompson, David
Hey Ryan, Mike, Arne, On Sat, Jul 15, 2023 at 6:48 AM Dr. Arne Babenhauserheide wrote: > > Mike Gran writes: > > >>good choice. Basically, I want the user to be able to open a repl shell, > >>but by default it should have *no* bindings except the ones I whitelisted. > > Define a module in a file

Re: Evaluation with function whitelist

2023-07-15 Thread Dr. Arne Babenhauserheide
Hi Mike, Mike Gran writes: >>good choice. Basically, I want the user to be able to open a repl shell, >>but by default it should have *no* bindings except the ones I whitelisted. > Define a module in a file with the "#:pure" option so that it starts off > empty. … > Using the real repl is proba

Re: Evaluation with function whitelist

2023-07-14 Thread Mike Gran
>Hello, all. >I've been on this for almost a month now. I'm working on a project for my >work, where we need a console to control automation. I wanted to use an >existing language instead of developing one, and I thought Guile would be a >good choice. Basically, I want the user to be able to open a