WebAssembly COBOL Pong
11–20 of 36 posts
Re: WebAssembly COBOL Pong
#12Re: WebAssembly COBOL Pong
#13I heard COBOL skills are in demand these days in the US.
Re: WebAssembly COBOL Pong
#14What's the deal with the alternator function (in app.js)? Why should keypresses be read only on every other attempt?
Also, is there some kind of implicit sleep or requestAnimationFrame somewhere? Or is it busy-looping and polling for key presses as fast as it can?
Re: WebAssembly COBOL Pong
#15Cool! What's the deal with the alternator function (in app.js)? Why should keypresses be read only on every other attempt? Also, is there some kind of implicit sleep or requestAnimationFrame somewhere? Or is it busy-looping and polling for key presses as fast as it can?
This is just a hack around that to simulate entering a value and then pressing escape on the next prompt request
Re: WebAssembly COBOL Pong
#16https://moxon6.github.io/cobol-js-emscripten/cobol-js/index....
where is the cobol?
Re: WebAssembly COBOL Pong
#17Right paddle controls are backwards compared to vim.
Re: WebAssembly COBOL Pong
#18When I view the source code, it's just a javascript file, https://moxon6.github.io/cobol-js-emscripten/cobol-js/index.... where is the cobol?
https://github.com/moxon6/cobol-js-emscripten/blob/master/co...
I am still looking around so may be wrong.
Re: WebAssembly COBOL Pong
#19When I view the source code, it's just a javascript file, https://moxon6.github.io/cobol-js-emscripten/cobol-js/index.... where is the cobol?
You mean this file? https://github.com/moxon6/cobol-js-emscripten/blob/master/co... I am still looking around so may be wrong.
Re: WebAssembly COBOL Pong
#20When I view the source code, it's just a javascript file, https://moxon6.github.io/cobol-js-emscripten/cobol-js/index.... where is the cobol?
`index.wasm` is built using the build scripts in the source repo
`main.cob` contains the main logic used to generate `index.wasm`
https://github.com/moxon6/cobol-js-emscripten/blob/master/co...