Hacker News new | past | comments | ask | show | jobs | submit login

"First, you need some way to acknowledge that the other side read my message" This is incorrect. Assume a protocol like UDP where the messages are unreliable. You do not get acknowledgement of packets.



Actually just removed that stuff and seems to be faster, there is a qrtun_async.py script now with no seq/ack. That being said, my concern was that if creating/displaying the qr code was much faster than detecting/decoding, and a lot of packets were coming in at once, you could maybe display multiple packets/qrcodes before the other side was able to decode the first one. That would result in drops of course which should be re transmitted though, so I guess its okay.


You could also decouple image capture and packet processing, so that if the former starts to run ahead, you can buffer until the latter catches up. NICs do this a lot, for much the same benefit.

I'm not great with Python, but your code seems quite legible, and it doesn't look like there's any buffering or backpressure in place right now - which is perfectly reasonable for a fantastic proof of concept like this! Just a thought for when you next get around to hacking on it.




Consider applying for YC's Spring batch! Applications are open till Feb 11.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: