Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
grogers
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
10 ms
·
91.
▲
by
grogers
4y ago
I don't think it's about tax advantages but flexibility for the conpany. RSUs usually vest over several years. If times get tough you can slow/stop buybacks. Eventually that would have an effect on the price from dilution but
92.
▲
by
grogers
4y ago
IIRC we used -ffast-math for numerical simulations of radar cross sections. Fast math was a decent perf win but didn't have any negative effects on the results. Most programs don't care about the difference between ((a+b)+c) vs (a
93.
▲
by
grogers
4y ago
But the tool that jepsen uses to check whether a schedule is serializable would still be useful for any database that supports concurrent operations.
94.
▲
by
grogers
4y ago
Regarding hunger, it only takes a week or two of changing your eating pattern to have your brain realize that your old mealtime is no longer mealtime. After that you won't get a spike in hunger from "skipping" what used to be
95.
▲
by
grogers
4y ago
Thank you for this. I was in this exact position once, where a better offer came along just after I had accepted. Honestly, if the original company had matched (or gotten very close to) the better offer I would have still gone there since i
96.
▲
by
grogers
4y ago
AFIACT Tether doesn't even aspire to any fixed time frame for redemptions, so it's even easier than a typical money market scenario. If all their assets were 30 day treasuries or shorter you don't even need to sell them - jus
97.
▲
by
grogers
4y ago
Yeah the article suggests doing bilateral concentric then unilateral eccentric, but that doesn't seem very practical as you point out. Many movements have other ways to cheat the concentric using momentum though. For example with a bic
98.
▲
by
grogers
4y ago
The author passed the input as &[char] not &str, so indexing is no problem. That's weird in its own right, but obviously not the core of the post.
99.
▲
by
grogers
4y ago
1. Change ... so that foobar(9) instead prints "yam". 2. Change ... so that foobar(9) also prints "yam" 1 is not ambiguous, but 2 is. It could mean that it does it's original behavior and also does the new behavior.
100.
▲
by
grogers
4y ago
More like ambiguity. Because of the "also", one could easily expect the resulting output for foobar(9) to print: baloney yam
101.
▲
by
grogers
4y ago
If the thread you are on doesn't modify the variable (e.g. by const_cast), and that variable isn't atomic or volatile, the compiler should be allowed to treat it as invariant. Whether it does in practice probably depends on a lot
102.
▲
by
grogers
4y ago
Implementation defined
103.
▲
by
grogers
4y ago
US treasuries are sometimes called "return-free risk". It seems pretty clear that the US government is borrowing unsustainably high amounts. We can't keep this pace of borrowing up for very long. So either the government star
104.
▲
by
grogers
4y ago
I guess for large data centers they could use multiple IPs and the overall scheme stays essentially the same, but the article seems to strongly imply that it is one single egress IP per DC. The 64k simultaneous connections limitation is onl
105.
▲
by
grogers
4y ago
Yep, it can happen that your packet gets routed to a different DC from a prior packet. But the routers in between the client and the anycast destination will do the same thing if the environment is the same. So to get routed to a new locati
106.
▲
by
grogers
4y ago
Not in the stdlib, but it exists elsewhere, such as folly::Synchronized. There are some gotchas but it's a LOT better than a separate mutex and data. The main gotcha is instead of for (auto foo : bar.wlock()) { baz(foo); }
107.
▲
by
grogers
4y ago
If you are looking to catch only checked exceptions of unknown type, it's easy enough to first catch and rethrow Error and RuntimeException, and then catch Exception and do whatever. The hierarchy is garbage, but at least it's f
108.
▲
by
grogers
4y ago
You don't need to use it directly for it to play an important role. If you have the green hydrogen you can convert it to methane or ammonia, which have less issues in storage and transport. Methane is already widely used for bus transp
109.
▲
by
grogers
4y ago
> During times of peak network congestion, users will be able to engage in typical Internet activity like email, online shopping, or even downloading an SD movie This makes it seems like they are at least given a fair slice of the aggreg
110.
▲
by
grogers
4y ago
LOC definitely positively correlates to productivity, it just isn't everything. One year I modified over a million lines, because we decided that we wanted to stored some generated data in a config file that was checked into git, rathe
111.
▲
by
grogers
4y ago
LMAX disruptor: https://lmax-exchange.github.io/disruptor/user-guide/index.h... It's used by log4j2 and several other java libraries and is quite solid. You can use it in blocking or polling modes, so it'
112.
▲
by
grogers
4y ago
Writing good code and writing good commits definitely clusters together. It's part of a general pride in quality of work, organization, and planning. Going back into the commit history can be useful to figure out if something suspiciou
113.
▲
by
grogers
4y ago
Honestly I think most managers would rather lose someone with 1 year tenure than 5 years. One year is plenty of time to make many meaningful contributions, especially if the employee is already experienced. You might not get the super deep
114.
▲
by
grogers
4y ago
IANAL but I think if they knew the statements were false (or with reckless disregard for the truth) then it would be slander. This is the "actual malice" standard. But in this case it seems absurdly unlikely that Niemann could p
115.
▲
by
grogers
4y ago
Aren't pages in a buffer pool usually in a different representation than the on-disk format?
116.
▲
by
grogers
4y ago
The error message from azure are literally just “One of the specified inputs is invalid”? I get annoyed at AWS error messages because they aren't really machine readable (unless you're okay parsing a string that is subject to chan
117.
▲
by
grogers
4y ago
Alternatively, you can pass the things you would have captured instead as arguments to the lambda (by value!) and they are valid for the duration of the coroutine. So you can do a lambda returning a coroutine lambda like task<Foo>
118.
▲
by
grogers
4y ago
It's all products at the edge, as opposed to the other clouds where most of the products are delivered in big data centers. So unlike lambda where you have 20ish regions, you have 100s of POPs for cloudlare workers. But because of that
119.
▲
by
grogers
4y ago
> unless they are incredibly greedy That's the crux of it, isn't it? A lot of people think that they are greedy. Also, most tethers were created in 2020, when short term treasuries we're yielding nothing. Which made the
120.
▲
by
grogers
4y ago
Only because energy (which is more volatile) is way down the last two months. What happens when energy swings back the other way? Anyways 0.6% MoM for all items less food and energy is very far from success.
More ›