Live data from Hacker News

WebAssembly COBOL Pong

moxon6.github.io

21–30 of 36 posts

Re: WebAssembly COBOL Pong

#25
The ball doesn't seem to bounce "properly" - i.e. upwards if it lands towards the top of the paddle and downwards if it lands towards the bottom of the paddle.

Re: WebAssembly COBOL Pong

#28

Neat! The actual COBOL is pretty minimal, just tracking where the balls and paddles are and then calling out to update the DOM. It doesn't look anywhere near as horrific as I would have expected :) https://github.com/moxon6/cobol-js-emscripten/blob/master/co...

My take is that people who fear COBOL probably haven't seen pre-ES5[0] JavaScript.

[0] While ES2015 was a major leap in and of itself, it wouldn't have happened had ES5 not laid the groundwork by introducing "minor improvements" that we now take for granted like JSON, strict mode and Function.prototype.bind to name a few.

Post reply on HN