Live data from Hacker News

Snake in a QR Code

itsmattkc.com

21–30 of 83 posts

Re: Snake in a QR Code

#21

Earlier quoted context omitted.

Could you plausibly make it a URL where the code in the URL is assembled and run using webassembly?

The point is to not rely on a server to host anything though. That the QR contains the data itself, not just a URL pointing to the data. Otherwise it is no different from any other QR code that has a URL in it.

The suggestion, I think, is to put the code in the URL itself, not use the URL as a pointer.

You could probably use a data: URL to avoid needing a server at all, but if not, the server would just provide a launcher and not host the application code.

Re: Snake in a QR Code

#22
post #21

Earlier quoted context omitted.

The point is to not rely on a server to host anything though. That the QR contains the data itself, not just a URL pointing to the data. Otherwise it is no different from any other QR code that has a URL in it.

The suggestion, I think, is to put the code in the URL itself, not use the URL as a pointer. You could probably use a data: URL to avoid needing a server at all, but if not, the server would just provide a launcher and not host the application code.

If the binary data is too big to fit in QR, then URL encoding is only going to require more bytes, and it will not fit either.

Re: Snake in a QR Code

#23
post #14

Am I the only one unwilling to run a non-sandboxed process I found on a tech demo?

especially with the included disclaimer

  ...slightly larger than the executable shown in the video because I decided to add a little more functionality

Re: Snake in a QR Code

#25
post #8

Cool, so all the 1k demos/intros from Assembly ( https://archive.assembly.org/2019/1k-intro ) could also be distributed via QR code... the 4k intros unfortunately not. Maybe it's time for a new category ;)

Or bigger QR codes.

Re: Snake in a QR Code

#26
I'm still waiting for someone to make an app that encodes and decodes large data into multiple QR codes that are displayed in a moving sequence.

That would be the best way to transfer files in physical locations.

Re: Snake in a QR Code

#29
post #3

Might be interesting to print this on business cards and distribute at conventions or something like that.

"Please run this binary from my business card". I guess it's easier than leaving USB drives in the parking lot...

You could run it in a VM.

Re: Snake in a QR Code

#30

I wish more QR-scanners supported data URLs. I think it would be very cool to distribute tiny web-apps via QR code.

Yeah, let’s make it even easier for people to run random executables that cannot be vetted, preferably on devices tightly coupled to their identities. What could go wrong?
Post reply on HN