unofficial mirror of guile-user@gnu.org 
 help / color / mirror / Atom feed
From: Christine Lemmer-Webber <cwebber@dustycloud.org>
To: Zelphir Kaltstahl <zelphirkaltstahl@posteo.de>
Cc: Guile User <guile-user@gnu.org>
Subject: Re: Scheme in the browser: A Hoot of a tale
Date: Wed, 11 Oct 2023 16:47:14 -0400	[thread overview]
Message-ID: <87o7h4x34m.fsf@dustycloud.org> (raw)
In-Reply-To: <3bc63287-e584-4dd4-bce7-e3beac803521@posteo.de>

Zelphir Kaltstahl <zelphirkaltstahl@posteo.de> writes:

> Hello Christine,

Hello Zelphir!

> I saw a post earlier on Mastodon and already opened it in my
> browser. Haven't got the time to really look at it yet.
>
> What is a Wireworld canvas? Is that a specific library, that interacts
> with canvas in the browser?

Ah!  Wireworld is just a kind of cellular automata (like Conway's Game
of Life) that we really like to use for showing off projects.  It
actually has nothing to do with Webassembly:

  http://www.quinapalus.com/wi-index.html

So what we're showing in the blogpost is an implementation of wireworld
where all the logic is happening in Scheme.  The rendering of that is
some custom Javascript.  You could expose more of the primitives to
Scheme and have more of the rendering happen in Scheme, but we decided
there were various reasons (including having most of the instructions
being familiar Scheme primitives including bytevector manipulation) to
have Scheme manipulate just the data part.

> Can Guile Hoot be used to make interactive websites, or is it so far
> only for canvas?

It can!  It'll become easier over time as more interfaces are exposed,
right now you have to wire up stuff manually via the FFI interface, but
you should be able to do anything you could do in Javascript in Scheme
instead using Hoot.

> Anyway, I think I need to play with this thing soon, and try some
> examples, as this sounds awesome!

Yay!  Let us know what you make!

> Best regards, Zelphir




      reply	other threads:[~2023-10-11 20:47 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-10-11 17:43 Scheme in the browser: A Hoot of a tale Christine Lemmer-Webber
2023-10-11 20:24 ` Zelphir Kaltstahl
2023-10-11 20:47   ` Christine Lemmer-Webber [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/guile/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87o7h4x34m.fsf@dustycloud.org \
    --to=cwebber@dustycloud.org \
    --cc=guile-user@gnu.org \
    --cc=zelphirkaltstahl@posteo.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).