Code Monkey home page Code Monkey logo

codeworld-talk's Introduction

CodeWorld talk

This repository contains the program that constitutes my “slides“ for my talk about lock step simulation, as implemented in CodeWorld. This talk was first held at Compose Conference 2017, in May 2017, and later at the PLclub at the University of Pennsylvania, the Haskell Hackers meetup in the Bay Area, ICFP 2017 in Oxford and the Comcast Functional Programming conference 2018 in Philly.

For more details, see the extended version of the experience report on that topic.

The slides are actually implemented in CodeWorld itself, as one large interactionOf. I wrote the code locally, and in several modules. Using the hack that is called hs-all-in-one I combine and upload the code:

hs-all-in-one Abstractions.hs Combinators.hs Main.hs Pong.hs \
              PongState.hs Prediction.hs PredictionLargeStep.hs \
              PredictionInterpolation.hs TicTacToe.hs \
              Data/MultiMap.hs Walking.hs \
	  > combined.hs
./upload.sh https://code.world/ haskell combined.hs

You can view the resulting presentation at https://code.world/run.html?mode=haskell&dhash=Di5R-XLJow5sItvbGRJQiNw and the full code at https://code.world/haskell#PbFD9HveFnExUXSKfXNJPhw.

Usage:

  • Use PageUp and PageDown to navigate slides.
  • P to unpause paused animations (some start paused, with no visible indication)
  • Esc to reset animations
  • The Tic-tac-toe games works by clicking.
  • The Pong game with W/S resp. /.
  • The walking game with W/A/D resp. //.
  • The slides where two instances are running in parallel support O to show them next to each other, and = and - to modify the delay.

Or simply play Pong (this runs this code).

codeworld-talk's People

Contributors

nomeata avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

codeworld-talk's Issues

Slides showing interaction between two remote machines are broken

Seems like slides that are supposed to show how computers change don't seem to work.
Or is there a key that is needed to start the animation?

Also, it would be great to add all the other keys in the readme:

"O" to split slides into two player mode (or is there a better way to call this?).
"="/"-" to increase/decrease simulated network delay.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.