Live data from Hacker News

Show HN: Tetris, but the blocks are ARM instructions that execute in the browser

ofrak.com

21–30 of 56 posts

Re: Show HN: Tetris, but the blocks are ARM instructions that execute in the browser

#22
Before trying it I hit “About” and it opened a new page which says:

> By continuing to use this site, you agree to the use of cookies.

You seem to be in violation of the GDPR. There must be a way to refuse the cookies that is as simple as accepting them. Especially since yours are not needed for the site to function:

> The Services use cookies and similar technologies such as pixel tags, web beacons, clear GIFs and JavaScript (collectively, “Cookies”) to enable our servers to recognize your web browser, tell us how and when you visit and use our Services, analyze trends, learn about our user base and operate and improve our Services. (…) We may also supplement the information we collect from you with information received from third parties, including third parties that have placed their own Cookies on your device(s).

https://ofrak.com/privacy/#tracking-tools-and-opt-out

Telling people to delete cookies via their browser settings (further down that page) is not an acceptable solution.

Re: Show HN: Tetris, but the blocks are ARM instructions that execute in the browser

#24
post #18
post #10

wow, you can even remap the keys!

It also works with USB gamepads! At DEF CON where we will have this set up in-person tomorrow, we will have people playing on a USB Dance Dance Revolution floor pad.

Cool! Does that use the Gamepad API or WebHID? I'd like to get one working in the browser for one of my projects

Re: Show HN: Tetris, but the blocks are ARM instructions that execute in the browser

#25
post #22

Before trying it I hit “About” and it opened a new page which says: > By continuing to use this site, you agree to the use of cookies. You seem to be in violation of the GDPR. There must be a way to refuse the cookies that is as simple as accepting them. Especially since yours are not needed for the site to function: > The Services use cookies and similar technologies such as pixel tags, web beacons, clear GIFs and J…

Unfortunately this practice has been happening with a lot of websites, and many companies are not complaining with the cookie law

https://www.cnil.fr/en/refusing-cookies-should-be-easy-accep...

Re: Show HN: Tetris, but the blocks are ARM instructions that execute in the browser

#26

Very cool concept, but my assembly understanding is really poor :) It says that my score is stored in R12, but then why do I have a score of 16 of R12 is zero? https://imgur.com/a/RY5jhTu

R12 contains the address of your score. In this case, that is address 0 - the start of the data segment.

The score register is yellow, and the corresponding memory region it points to (the actual bytes of your score) are also yellow.

Re: Show HN: Tetris, but the blocks are ARM instructions that execute in the browser

#27
post #24
post #18

Earlier quoted context omitted.

It also works with USB gamepads! At DEF CON where we will have this set up in-person tomorrow, we will have people playing on a USB Dance Dance Revolution floor pad.

Cool! Does that use the Gamepad API or WebHID? I'd like to get one working in the browser for one of my projects

Uses the Gamepad API. I found it very easy to work with, in large part thanks to the corresponding MDN docs.

The only weird part about the Gamepad API is that you have to poll it rather than handling events the way you normally would for other, similar stuff in JavaScript. In practice, this means that you have to do your own debouncing for handling things like key combos, but that doesn't really affect individual button presses too much.

Re: Show HN: Tetris, but the blocks are ARM instructions that execute in the browser

#28
post #27
post #24

Earlier quoted context omitted.

Cool! Does that use the Gamepad API or WebHID? I'd like to get one working in the browser for one of my projects

Uses the Gamepad API. I found it very easy to work with, in large part thanks to the corresponding MDN docs. The only weird part about the Gamepad API is that you have to poll it rather than handling events the way you normally would for other, similar stuff in JavaScript. In practice, this means that you have to do your own debouncing for handling things like key combos, but that doesn't really affect individual but…

Magic, thanks! Which model mat do you have?

It might be worth trying with WebHID instead of the GamePad API. Quick example with a joystick :)

https://murkle.github.io/utils/webhid/logitech_attack3.html

Re: Show HN: Tetris, but the blocks are ARM instructions that execute in the browser

#29
post #22

Before trying it I hit “About” and it opened a new page which says: > By continuing to use this site, you agree to the use of cookies. You seem to be in violation of the GDPR. There must be a way to refuse the cookies that is as simple as accepting them. Especially since yours are not needed for the site to function: > The Services use cookies and similar technologies such as pixel tags, web beacons, clear GIFs and J…

Telling site visitors to disable cookies via their browser is precisely how apple.com does it.

Re: Show HN: Tetris, but the blocks are ARM instructions that execute in the browser

#30
post #29
post #22

Before trying it I hit “About” and it opened a new page which says: > By continuing to use this site, you agree to the use of cookies. You seem to be in violation of the GDPR. There must be a way to refuse the cookies that is as simple as accepting them. Especially since yours are not needed for the site to function: > The Services use cookies and similar technologies such as pixel tags, web beacons, clear GIFs and J…

Telling site visitors to disable cookies via their browser is precisely how apple.com does it.

Even if Apple is in violation, that doesn’t make it acceptable or within the law. Big companies (notably Meta) frequently don’t comply with GDPR and are beginning to pay the price for it and making changes.

https://noyb.eu/en/5-years-litigation-meta-apparently-switch...

I was pleasantly surprised to see Apple’s cookie policy is considerably less intrusive than the submitted website’s.

https://www.apple.com/legal/privacy/en-ww/cookies/

Post reply on HN