From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: tantalum Newsgroups: gmane.lisp.guile.user Subject: Re: Web development Date: Mon, 07 Sep 2020 09:35:28 +0000 Message-ID: Reply-To: sph@posteo.eu Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="36870"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Posteo Webmail To: guile-user@gnu.org Original-X-From: guile-user-bounces+guile-user=m.gmane-mx.org@gnu.org Mon Sep 07 11:35:49 2020 Return-path: Envelope-to: guile-user@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kFDYz-0009Sj-RE for guile-user@m.gmane-mx.org; Mon, 07 Sep 2020 11:35:49 +0200 Original-Received: from localhost ([::1]:32824 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kFDYy-0003e8-SG for guile-user@m.gmane-mx.org; Mon, 07 Sep 2020 05:35:48 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:38058) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kFDYn-0003cp-10 for guile-user@gnu.org; Mon, 07 Sep 2020 05:35:37 -0400 Original-Received: from mout02.posteo.de ([185.67.36.66]:33769) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kFDYk-0004hk-90 for guile-user@gnu.org; Mon, 07 Sep 2020 05:35:36 -0400 Original-Received: from submission (posteo.de [89.146.220.130]) by mout02.posteo.de (Postfix) with ESMTPS id 194D62400FB for ; Mon, 7 Sep 2020 11:35:28 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.eu; s=2017; t=1599471329; bh=75vAwHVRuXYucUsksfSNpzwrCVQ9qm/+w5PNNxDvY0c=; h=Date:From:To:Subject:From; b=WW459EnGEYkMeKHapbjviRJgRwXKhqUXI6pw1srf7vgfELwIa2YItvONPaEc4Rdvh WKhzDdijfczeSzY4hzm6uc2qbILuEBlDXrRj3jVB4hwebOH0RRKQ4jE2CJlrLfIFqT UAUtlKN9/CJAeVBuNqIpCro2Lti/GfnqBCQ/kcGfHW5/n9ngzGnOcqr7CMfJzp/roQ 1q53g2fNOihaxFro/vbZbayyNMciIh8zVTesRUIZNpZ8vMWR2DGpUe0LyemyiwGqRx QK4hhW/tWGh/6/5H9XqNDgD9wHmi6f90V4xDR2WdUXuohpTCrzyvGvx9DykzhQilhw 6/sxLgDNFeieQ== Original-Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4BlNS05X1Vz9rxL for ; Mon, 7 Sep 2020 11:35:28 +0200 (CEST) Mail-Reply-To: sph@posteo.eu X-Sender: sph@posteo.eu Received-SPF: pass client-ip=185.67.36.66; envelope-from=sph@posteo.eu; helo=mout02.posteo.de X-detected-operating-system: by eggs.gnu.org: First seen = 2020/09/07 05:35:29 X-ACL-Warn: Detected OS = Linux 3.11 and newer [fuzzy] X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: General Guile related discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-user-bounces+guile-user=m.gmane-mx.org@gnu.org Original-Sender: "guile-user" Xref: news.gmane.io gmane.lisp.guile.user:16875 Archived-At: this is what i use for web development: * for static files, i use nginx and convert markdown to html using guile-commonmark, with an extension that allows calls to scheme code inside markdown (https://github.com/sph-mn/sph-web-publish) to generate some content like file listings * for dynamically generated pages, i use nginx and scgi (like fastcgi but simpler, http://python.ca/scgi/protocol.txt, https://github.com/sph-mn/sph-lib/blob/master/modules/sph/scgi.scm) to call a guile procedure on request. the guile side uses this framework https://github.com/sph-mn/sph-web-app * for serving generated files, i use the x-accel-redirect (x-sendfile) response header to instruct nginx to serve the file * for example, the linked pages here http://sph.mn/other/utilities.html are generated on the fly with guile 3. guile is fast. some of the converters use external tools and have a long initial output delay for a yet unknown reason