Custom foreign types

2024-06-16 Thread Ryan Raymond
Hello, all. I know we can create pointers to structs with make-c-struct, but I would like to pass structs directly as arguments to foreign functions. I can do that by using bytevector-uint-ref, and setting the size to that of the struct, but when it is time to specify the type in pointer->procedure

Re: Writing to closed network port causes guile to exit with error 141, not error message

2024-03-22 Thread Ryan Raymond
z> wrote: > Hi, > > On 2024-03-22 10:22:03 -0400, Ryan Raymond wrote: > > Hello, all > > I have a problem with my web-server. > > If the network connection to the server is closed (by killing the client) > > and one attempts to write data to that port in GUILE

Writing to closed network port causes guile to exit with error 141, not error message

2024-03-22 Thread Ryan Raymond
Hello, all I have a problem with my web-server. If the network connection to the server is closed (by killing the client) and one attempts to write data to that port in GUILE, the interpreter will exit without an error message. echo "$?" says GUILE exited with error code 141 but google doesn't give

Changes to Guile not effecting built binary

2024-03-21 Thread Ryan Raymond
Hello, all. Earlier I mentioned a patch I wanted to apply to the guile source code. I have implemented my change but the guile binary I build with the default build instructions still has the unmodified function. For example, I modified "parse-http-method" and completely removed all error throwing

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

Evaluation with function whitelist

2023-07-14 Thread Ryan Raymond
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 repl