hankache / rakuguide

The Raku Guide
https://raku.guide
Creative Commons Attribution Share Alike 4.0 International
193 stars 67 forks source link

should snippets of code from perl6intro be linked with an eval service? #146

Open timo opened 7 years ago

timo commented 7 years ago

we have several on-line eval services that can eval perl6 code for us, like https://glot.io/new/perl6 or https://tio.run/nexus/perl6

zoffix gives you a "run this code" button under every piece of perl6 code on his blog over at perl6.party, for example in https://perl6.party/post/Perl6-But-Heres-My-Dispatch-So-Callwith-Maybe

should we steal the code that does it on perl6.party and introduce it to perl6intro.com?

zoffixznet commented 7 years ago

FWIW, perl6.party uses glot.io's API in the backend https://github.com/zoffixznet/perl6.party/blob/master/app.pl#L42-L63 and on frontend codemirror with a crappy perl6-mode plugin for it: https://github.com/zoffixznet/perl6.party/tree/master/assets/js/codemirror