spdegabrielle
2021-9-25 15:56:16

There have been a couple of lisp game jams announced lately:

https://itch.io/jam/longgame-tech-innovation-jam-6-shrink\|https://itch.io/jam/longgame-tech-innovation-jam-6-shrink September 26th – 27th https://itch.io/jam/autumn-lisp-game-jam-2021\|https://itch.io/jam/autumn-lisp-game-jam-2021 October 15th – 25th

If you are thinking of using Racket, some resources are collected at

https://github.com/racket/racket/wiki/Game-Development\|https://github.com/racket/racket/wiki/Game-Development

and don’t forget the <https://docs.racket-lang.org/teachpack/2htdpuniverse.html|magnificent 2htdp/universe>

bw

Stephen


gmauer
2021-9-25 22:05:36

So either I’m misunderstanding something about how to use typed racket or….well it’s likely I’m misunderstanding something.

I’m trying to just do an experiment as this is my first foray into typed. cycle A B over and over and take the first N.

Normally I would use data/collection but that’s out for the above mentioned issues

Ok, so I’ll use sequences (~&gt; (in-cycle '(A B)) (in-slice 9 _) (sequence-ref _ 0)) Fails on account of no identifier: provide/contract-id-in-slice

Ok, what about streams then?

(~&gt; '(A B) in-cycle sequence-&gt;stream (stream-take 9) stream-&gt;list) fails because none of the stream functions are known to typed.

So what am I missing? All of the above work if I just change to #lang racket