167 points · by ianthehenry · 3y ago · 19 comments
# Your program will be compiled as you
# type, but it will not start running
# until you press cmd-enter or
# ctrl-enter, depending on how much
# your computer cost.
How cute;-)...Introducing a powerful language like scheme, having a graphical output and planting the idea that students should hunt around for ways to integrate with or otherwise poke at existing applications is smart.
What a cool project, thanks so much for putting it together.
edit: just changing the values on the canvas tag in inspect element worked!
Try to run it in Emacs Lisp.
Thus it makes sense to mention in what actual programming language it is written in.
Sorry for the ignorance, but how you run Janet on the browser?
Embedding Janet in the browser is hard! My real motivation for making this website was to have a simple example to point to of how to do it. Short answer: Emscripten + WebAssembly. Long answer: https://github.com/ianthehenry/toodle.studio
Specifically I think these are the interesting bits:
https://github.com/ianthehenry/toodle.studio/blob/master/bui... https://github.com/ianthehenry/toodle.studio/blob/master/src...
I'll steal some of the ideas for my lambda.quest if you don't mind :)