3 ms·
> Can modern web applications and REST API's be built in any practical way using C, or is it just too painful? Sure, you can write anything in any Turing-compl
by 15155 12y ago
> Can modern web applications and REST API's be built in any practical way using C, or is it just too painful?
Sure, you can write anything in any Turing-complete language.
I've never seen one, but I am sure a C Sinatra clone exists. Quick googling finds things such as: https://github.com/tyler/Bogart https://github.com/tyler/Bogart (while written as a joke - this should illustrate the possibility. afaik tyler is a reader here)
Possible: absolutely.
The question that needs to be asked, though, is: "Why?"
There are far better-suited (task: web application servers) languages that compile to C (Nim is a great example). Nearly every language has C interop in some capacity (at the very least, FFI to C. In the case of Rust and select others, the capability of compiling with C-compatible ABIs.)