406 karma · joined Jan 24, 2013 (13y ago) · 200 submissions
comment 5y ago · link · parent
I think I have a lot more to learn about DNS...
[0] https://github.com/axboe/liburing/issues/26#issuecomment-738...
> [re: implementing getaddrinfo] It's not planned because it's not a single operation but a complex beast reading files, exchanging messages, etc. IMHO, as it's not a single operation it fundamentally doesn't fit liburing, but implementing under some framework on-top would be more viable.
comment 5y ago · link · parent
DNS seems like it perfectly fits the model of "give me a buffer (to hold the resolved IP), and I will wake you up when it's filled". Maybe io_uring (/ IOCP?) already can support this, and these articles are just mistaken about the current (or soon-to-be) state-of-the-art? Or is there some fundamental reason about DNS that make writing a non-blocking resolver very very difficult?
It's just very odd to me that userspace apps are creating their own blocking thread pools just to run DNS stuff, when they can do seemingly everything else with just a single thread if they wanted to.
(edited a few times, sorry if I caught someone who was mid-reply)
comment 5y ago · link · parent
Except that DNS apparently still blocks[0], so usually things farm DNS requests off to their own blocking thread pools (the author ends up disabling DNS just so they can "prove" everything works with just a single thread)
What's so fundamentally difficult about writing an async/non-blocking DNS resolver? Is it just a lack of a real need for it?
[0] (quote: People have been trying to build asynchronous DNS resolvers for decades without success. Can it be done? Yes. Has it been done? No. ) https://gist.github.com/djspiewak/46b543800958cf61af6efa8e07...
comment 5y ago · link · parent
you can homebrew your own though, and use a much larger/cheaper CO2 source than what they sell at grocery stores, which I'll probably be doing soon.
comment 5y ago · link · parent
comment 5y ago · link · parent
comment 5y ago · link · parent
[0] https://www.businessinsider.com/why-horseshoe-crab-blood-exp...
comment 5y ago · link · parent
comment 5y ago · link · parent
Now I see it at the entrance of most businesses / by checkout registers.
comment 5y ago · link · parent
Edit: their website doesn't go into detail much at all, so I don't have high hopes for this
comment 6y ago · link · parent
I'm less cynical about certs offered by neutral third parties, or if they are offered free of charge. (If quality versions of those exist?)
comment 6y ago · link · parent
I have a chromecast as well, and I really expected to use it over the built-in apps. But the built-in TV apps really blew me away, much better user interface than I was expecting. I'm hoping this new chromecast/Google TV thingy is as good, I'd really like to disable network connectivity to the TV if possible (but right now the apps are just too nice to give up).
comment 6y ago · link · parent
comment 6y ago · link · parent
1. people doing what appears to be a weird scam that involves seeds being mailed across boarders
2. seed sellers on amazon have been flagrantly violate import controls for years.
This new policy seems to be addressing #2, which is important to Amazon now more than ever because of the increased scrutiny caused by #1 making international news.
I've personally bought seeds from Amazon which were declared as "bookmarks" to sneak past US customs.
comment 6y ago · link · parent
https://lh3.googleusercontent.com/pw/ACtC-3eNO55-KL0ynsmXLT8...