79130021

Date: 2024-10-27 06:30:40
Score: 2
Natty:
Report link

Thanks for your response it took me a while to respond because I am still trying to fully understand the implementation you suggested. My understanding is that:

  1. I need to run a server on the Rust client (CLI) that would take user commands and convert it to a JSON payload to be sent to the Rascal backend
  2. I need to also run a server on the Rascal backend that would accept request from the client, marshal the payload sent by the client into a Rascal ADT and use it to call a Rascal function then convert the result into a JSON payload to be sent back to the server.

I assume this setup would work for any client app (Java, Python etc). I will look at the util::Webserver api to see how to spawn a server in Rascal if there are any examples I will be extremely glad if you can point me to it. I already have some experience working with lang::json::IO. Thanks once again this is very useful.

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Blacklisted phrase (0.5): I need
  • Long answer (-0.5):
  • No code block (0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Benni Katchy