Better HN
topnewbestaskshowjobs
Log inSign up

aarongolliver

406 karma · joined Jan 24, 2013 (13y ago) · 200 submissions

software @ tableau, june 2016 -> present
Submissions

comment 5y ago · link · parent

I have found this comment on liburing[0] which clarifies some things for me. So is it because something like getaddrinfo is not just a simple operation, but a hodgepodge of stuff like "first try nscd, then read resolv.conf, then make a bunch of requests using one of many different protocols"?

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

There is a difference between blocking and non-blocking, which is what I am asking about. Language runtimes apparently cannot provide non-blocking DNS (as evidenced by this article, and the other one I linked which was on HN a week or so ago).

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

Not sure a better place to ask this, but we're getting to the point in most OSs where basically anything you want can finally be done truly async (non-blocking).

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

I don't think Pajama Sam requires reading, I definitely played it before I could read at least, and probably around the same age as when I was playing putt putt.

comment 5y ago · link · parent

soda stream is a lot cheaper than buying bottled sparkling water, and you can make a very good analog to your favorite mineral water / soda / energy drink for even cheaper if you buy the right additives online. They did do a good job of making their luxury version waste most of the CO2 tank because it's impossible to make a good airtight seal.

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

much worse than regular win 10 insider builds, not much worse than the other previews for unreleased windows versions. Except for a few bugs in the settings menu which I've figured out ways to work around (couldn't switch easily between stereo and 5.1) I pretty much don't notices the differences between 10 and 11

comment 5y ago · link · parent

You're right! And now I qualify for the win 11 beta. Looks like I got confused between two different security setting pages in the UEFI menu, and had just enabled "the ability for it to use a TPM plugged in to the header" instead of enabling PPT like I thought I was doing.

comment 5y ago · link · parent

You probably only have the header on your motherboard, without a tpm module actually plugged in. Mine was like this, and the specs for your motherboard suggest this is also the case for you. You can buy them on online pretty cheap (I got one for $20)

comment 5y ago · link · parent

If you click the BI link under the image [0] and watch the video they say they're still alive, and that they try to only drain 30% of their blood before putting them back in the ocean. But (paraphrasing) up to 30% don't survive the process and "no one really knows if they even recover down there".

[0] https://www.businessinsider.com/why-horseshoe-crab-blood-exp...

comment 5y ago · link · parent

And here's the email sent by Youtube TV

https://pastebin.com/GDUBi14P

comment 5y ago · link · parent

This is (was?) a big problem with google photos. If you upload a video and immediately share it with someone they'll just see a black screen. A few minutes later they might be able to watch a super-low res encoded version, and only much later does a HD version become available. I started waiting 10 minutes between generating a "share" link before sending it to my family because of all the confusion it was causing.

comment 5y ago · link · parent

Finally a status page that updates the moment an issue starts

comment 5y ago · link · parent

(USA, pre-pandemic) I've seen "mandatory" hand sanitizer use exactly once, at a camp which had some nasty norovirus outbreaks (which was misery, especially I'm sure for people who had to fight over shared bathrooms).

Now I see it at the entrance of most businesses / by checkout registers.

comment 5y ago · link · parent

Seems like that's an ideal problem to solve using a blockchain/smart contracts (a distributed auction). If they can't verify these bids are real & will be paid out that seems like a complete failure of the technology.

Edit: their website doesn't go into detail much at all, so I don't have high hopes for this

comment 5y ago · link · parent

EVGA has a sign up sheet. They'll email you when it's your turn and you have some number of hours to complete the order (don't remember the exact amount of time you get). Note that at this point it'll likely be months before you make it to the head of the line.

comment 5y ago · link · parent

For this reason I try my hardest to buy single-active-ingredient versions of everything. I can keep a list of what pill combos combine into nyquil/mucinex/whatever, and can avoid doubling up on anything unintentionally.

comment 5y ago · link · parent

And acquisitions, which are are frequently paid in part (or entirely) with stock.

comment 6y ago · link · parent

Certs exist because companies realized they could make further fortunes by acting as the gatekeepers of their consulting ecosystems (and by up-selling enterprise deals with mass certification of the purchasing company). They lock otherwise talented and competent people out of jobs until they pay to take an "exam" for the $CORP approved check mark which gets their resume passed the round of filtering. Sometimes you even have to re-pay for the exam every few years to certify you're "up to date" with the software.

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 wonder how many years of fork() we had before someone finally had a second core to run things on.

comment 6y ago · link · parent

Klipsch R-120SW

comment 6y ago · link · parent

That's how my LG TV works. The TV shows up in the cast menu just like a chromecast does. Using youtube as an example, it opens up the youtube app and starts the video. You can either use the remote as usual to interact with the video, or the you phone exactly like you would if it were just a chromecast. You can also queue up multiple videos from your phone.

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

I have this issue with a subwoofer - coupled with a bad amplifier/grounding/(something?) it creates an immense WOOOOF every time it turns on and off. This causes my house to shake 15 minutes after I go to bed, just as I'm about to fall asleep. Have definitely considered auto-starting something that played a continuous low tone to prevent it from happening.

comment 6y ago · link · parent

I think this comment has the right idea [0]. Amazon has two problems with seeds:

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.

[0] https://news.ycombinator.com/item?id=24393395

comment 6y ago · link · parent

An anecdote: I bought some seeds on amazon a few years back and they ended up coming from China with a customs declaration filled out as "bookmarks". I decided not to plant them.

https://lh3.googleusercontent.com/pw/ACtC-3eNO55-KL0ynsmXLT8...

1234567