From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Nala Ginrut Newsgroups: gmane.lisp.guile.user Subject: Re: Getting started web developpement with GNU Guile (with guile fibers) and BiwaScheme Date: Wed, 10 May 2017 12:15:12 +0800 Message-ID: References: <9546dff3-8696-249e-955e-7c1f8a209833@hypermove.net> <0089113d-1285-34ea-9cf6-e2477c010e33@hypermove.net> <5da90f97-da0d-f869-d92b-61656911810a@gmail.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1494389740 11542 195.159.176.226 (10 May 2017 04:15:40 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 10 May 2017 04:15:40 +0000 (UTC) Cc: Guile User To: Erik Edrosa Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Wed May 10 06:15:33 2017 Return-path: Envelope-to: guile-user@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1d8J2C-0002qU-6b for guile-user@m.gmane.org; Wed, 10 May 2017 06:15:32 +0200 Original-Received: from localhost ([::1]:40346 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1d8J2H-0002iY-HG for guile-user@m.gmane.org; Wed, 10 May 2017 00:15:37 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:48188) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1d8J1v-0002iG-Ek for guile-user@gnu.org; Wed, 10 May 2017 00:15:16 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1d8J1t-0001hI-Qw for guile-user@gnu.org; Wed, 10 May 2017 00:15:15 -0400 Original-Received: from mail-oi0-x229.google.com ([2607:f8b0:4003:c06::229]:35378) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1d8J1t-0001hC-Iu for guile-user@gnu.org; Wed, 10 May 2017 00:15:13 -0400 Original-Received: by mail-oi0-x229.google.com with SMTP id l18so22885160oig.2 for ; Tue, 09 May 2017 21:15:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=fLPWD6/G9KO9Wufs++/VhOz6oGgmuP9Wzo6eJnoeX/s=; b=CXA+M84KYTlSVxUkDzoS/H0AlatzVrVnu2SLK7edcWk6vQb0Kghld6Uhq1vZ689CDS nFHjOxqW6iTPzS6HuHly3EzoyJvY497xMHpSsiX8Uz41bJ7dotj6QOC+nspKZGPQQpWk 9u8Jfa1Pm5hSVQDkZVd/Ivn9tUCFpWKp8lLViQy50xPGJ3nM+Li3JbNiVOGEc0zQ5W3A gBVodKuDZW9XzAEZ48IggmKpNBkTg8TnzN8Bg/VURSBy+Vno7fckdHQF9HHa57oOfOb1 gBBajCIOyAIbah1o9OGNmDx2d1fPZ7acYY0galagrP55YOEf/BFGAvFh8H0UmA8+4tvC UvrA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=fLPWD6/G9KO9Wufs++/VhOz6oGgmuP9Wzo6eJnoeX/s=; b=UtljiWjAU7kc+5HqRAgNMNl1RFojFKmxIe0xrSZlk+5a9SDPN9fYjSZRHtX28+w0sm BPl5uOn8BV2OzMTaXDBvEFSbNuchOTIVk8MHwqJdTmmfkMWnqLg5Qa1+wlfsazY6+Mvj JphTOs1V0rY7dL/U76fJoHO0kEaMbEfFx2dILWGBM8s8nP4gWbcIkGd7hNGjHF2QrXRk Fr4wlUnWGh0QML+iMogDLU4fRUny2UQeGuaVH42pLzZL7VHhJC1yKJBwsrLdMrfHEjGb On7dRJ4eFnc1VKZlQXSCezFRBzPRj0ji97ajNYNN1G9xcWR6rUMeOsoIY8FJBCpnJBIW C+OQ== X-Gm-Message-State: AODbwcBG6XYq30lQJX2i7AemNvCYpsdQBElFJew3dsbNRpon0oCPRcAb 4j871lj83zijTyd5tWHJe2yTXv0+Vg== X-Received: by 10.157.35.69 with SMTP id k5mr1617008otd.49.1494389712613; Tue, 09 May 2017 21:15:12 -0700 (PDT) Original-Received: by 10.157.37.80 with HTTP; Tue, 9 May 2017 21:15:12 -0700 (PDT) Original-Received: by 10.157.37.80 with HTTP; Tue, 9 May 2017 21:15:12 -0700 (PDT) In-Reply-To: <5da90f97-da0d-f869-d92b-61656911810a@gmail.com> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4003:c06::229 X-Content-Filtered-By: Mailman/MimeDel 2.1.21 X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1.21 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.org@gnu.org Original-Sender: "guile-user" Xref: news.gmane.org gmane.lisp.guile.user:13702 Archived-At: Agreed! 2017=E5=B9=B45=E6=9C=8810=E6=97=A5 12:09=EF=BC=8C"Erik Edrosa" =E5=86=99=E9=81=93=EF=BC=9A > WASM is still pretty far off to be a full replacement of what JavaScript > currently does in the browser. It would be interesting to have a scheme > web front-end for Artanis, it will be like using Clojure for the > back-end and ClojureScript for the front-end. > > On 05/08/2017 10:55 AM, Nala Ginrut wrote: > > I'm planning to add Scheme web front-end stuff to let Artanis do every > web > > thing in Scheme. > > Is it too extremist ? : -P > > But nowadays we have WASM, JavaScript is not needed as the high level > > language anymore. > > > > > > > > > > 2017=E5=B9=B45=E6=9C=888=E6=97=A5 20:53=EF=BC=8C"Amirouche" =E5=86=99=E9=81=93=EF=BC=9A > > > >> > >> > >> Le 06/05/2017 =C3=A0 21:18, Nala Ginrut a =C3=A9crit : > >> > >>> Oh I'd love to see someone write web front-end with Scheme. Good job = ! > >>> > >>> > >>> > >> I will see what new artanis will be out :) > >> > >> Tx! > >> > >> > >>> 2017=E5=B9=B45=E6=9C=887=E6=97=A5 02:47=EF=BC=8C"Amirouche" >>> amirouche@hypermove.net>>=E5=86=99=E9=81=93=EF=BC=9A > >>> > >>> I made a screencast explaining how I would start building a poll > >>> application > >>> using by favorite tools of the moment. > >>> > >>> There GNU Guile in the backend using the new guile-fibers to run > >>> the http server > >>> workers. > >>> > >>> In the frontend I use BiwaScheme with snabbdom library for > >>> interacting with the > >>> browser. > >>> > >>> BiwaScheme is a Scheme interpreter written in JavaScript. > >>> > >>> Snabbdom is library that implement a diff+patch algorithm which > >>> allows to declare > >>> how the page will look and it make it happen. It also handles > >>> bindings events to > >>> callbacks. The use of snabbdom is bound to scheme and its use is > >>> transparent. > >>> > >>> The first video, I try to explain what tools I will use and sort > >>> of why. It's not > >>> very interesting https://youtu.be/i47QgE0ihSw > >>> > >>> The second video, I tackle an issue in forward.scm, basically I a= m > >>> bug hunting in > >>> the browser: https://youtu.be/to8vdri82_E > >>> > >>> The last is the most interesing, it restart where I left it in th= e > >>> previous video > >>> with basically a minimal frontend (so you might want to look at > >>> the 20 last minutes > >>> of the second video). Anyway, then it goes on to allow the > >>> frontend (client side) > >>> to communicate with the backend (server side) using HTTP: > >>> https://youtu.be/ePiHp1lgbas > >>> > >>> The code can be found @ https://framagit.org/a-guile-mind/azul > >>> > >>> > >>> azul means "hello" in amazigh. > >>> > >>> Happy hacking! > >>> > >>> ~ amz3 ~ http://hyperdev.fr > >>> > >>> > >>> > >>> > >> > >