|
From: | Amirouche |
Subject: | Re: How to make GNU Guile more successful |
Date: | Tue, 21 Feb 2017 19:19:58 +0100 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.7.0 |
Le 21/02/2017 à 18:18, Arne Babenhauserheide a écrit :
Michael Vehrs writes:On 02/20/2017 09:41 PM, Arne Babenhauserheide wrote:Michael Vehrs <address@hidden> writes:As a late-comer to this discussion, here are my two ceIn practice it does not provide a web interface for uploading packages. If you want to do something truly exciting, you could take wingos fibers and build a high performance web interface for guildhall with them.High performance is not really important in this case. We are not talking about gazillions of npm packages.That’s true. That’s why I wrote exciting :) You could also use the existing (web server) tools to build such a site.
We can make it exciting and use fibers web server nonetheless. The interface of the *fibers* web server is the same as guile web server interface. Here is it [0]: ``` (use-modules (fibers web server)) (define (handler request body) (values '((content-type . (text/plain))) "Hello, World!")) (run-server handler) ``` Basically you just need to change the use-modules line in your current project. [0]
[Prev in Thread] | Current Thread | [Next in Thread] |