Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

REST Server in TCL

Tags:

rest

tcl

I would like to add a REST interface to an existing TCL codebase (so that the programms in other language can use the existing TCL code).

I found a list of Webserver with TCL support but I have no idea which one would be a good solution to quickly map our TCL functions to HTTP/REST calls without tons of boilerplate code.

Has anyone here already done something like this and can tell me which of these servers would be a good (or bad/difficult) solution? Is there maybe another server/framework that is even better for this use case?

like image 652
rmweiss Avatar asked May 24 '26 22:05

rmweiss


2 Answers

Consider Naviserver. Tcl is its embedded interpreter language. It has a low profile memory overhead, and is regularly maintained and tested for performance and low latency.

like image 159
BenjaminBrink Avatar answered May 27 '26 02:05

BenjaminBrink


For what you’re describing, you might consider Wapp. It’ll do exactly the boilerplate elimination you want, and it’s easy to dive into. You’d probably want to use it as a library, rather than an app, given that you’ve got an existing codebase, but its operation past the initial setup is the same for that use case.

like image 24
Benjamin Pollack Avatar answered May 27 '26 02:05

Benjamin Pollack



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!