mousetail / Byte-Heist

Yet Another Golfing Site
https://byte-heist.com
GNU General Public License v3.0
7 stars 5 forks source link

Give some kind of user feedback if a language needs to be installed #18

Open mousetail opened 1 month ago

mousetail commented 1 month ago

Installing a language can take over 5 minutes. That's a long time for a user to wait without any feedback.

Both the lang runner and main server should send some sort of streaming response to inform the front-end that it's processing. This should also prevent nginx from sending a "Gateway Timeout" error.

Technically this is a bit challenging, since I need to deal with both HTML and JSON output formats, and it's a bit hard to stream HTML into a useful feedback message for the user, especially in combination with Tera etc. Also there are multiple places where I need to run solutions so I need an easy system to plug into all of them.

mousetail commented 1 month ago

Alternate solutions: