I've played around a bit yesterday with Gleam and Lustre and ported my previous Game Of Life implementations to gleam: https://github.com/tcoopman/gleam-of-life
It was fun, and trivial to port. I need to add some more things - like pausing and selecting different items.
#Gleam of Life
1 messages · Page 1 of 1 (latest)
Is it hosted anywhere?
I wanna see it run!
pushed it as is https://gleam-of-life.fly.dev/
I'm going to try to add some more options later but you can now see it running at least
it's not loading for me 😦
Be good to link to the running version from the github repo.
That's strange. Do you see any errors in the browser?
$ xh https://gleam-of-life.fly.dev/
xh: error: error sending request for url (https://gleam-of-life.fly.dev/): error trying to connect: tcp connect error: Network is unreachable (o
s error 51)
Caused by:
0: error trying to connect: tcp connect error: Network is unreachable (os error 51)
1: tcp connect error: Network is unreachable (os error 51)
2: Network is unreachable (os error 51)
I only get this for https://gleam-of-life.fly.dev/ though
I don't understand 😦
Me neither. I'll try to deploy to another zone later today
it's probably something on my end
I've deployed a new version. You can now:
- play/pause
- click on any cell to toggle it
- load different examples
nice! I'm trying to think of how implementations I've seen before make editing cells while the the simulation is running work. I think it basically requires a "paint" functionality, and then freeze the state of all painted cells to be alive until mouse up maybe? or possibly just a slightly slower tick speed in combination with being able to paint.
also.. have you seen this? 🙂 https://oimo.io/works/life/