Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
singron
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
25 ms
·
331.
▲
by
singron
3y ago
You have to be careful. Stackless coroutines will only schedule if you call co_await, but a stackful coroutine can be scheduled in the depths of any call. This can trick 2 parts of your program into thinking they have exclusive access to th
332.
▲
by
singron
3y ago
"track" probably refers to "tracking", which is education jargon: https://en.wikipedia.org/wiki/Tracking_(education) > Tracking is separating students by academic ability into groups...
333.
▲
by
singron
3y ago
I think it's actually agreeing with a lot of points from #11 and #16. Obviously this is an article about why you shouldn't be a manager, so it doesn't have any reasons why you should be a manager or why management is importan
334.
▲
by
singron
3y ago
One thing I love about NixOS so far is that when they do a rename, they can print a deprecation warning every time you use the old name while evaluating your config. When I get a moment, I go through and fix them. You could probably do some
335.
▲
by
singron
3y ago
It's not bad. The form actually says you don't have to calculate your tax and you can leave the remaining fields blank. The IRS will crunch the numbers and send a bill/refund. If your income is simple, that's a good way
336.
▲
by
singron
3y ago
Twitter actually paid a bill?
337.
▲
by
singron
3y ago
Go has trouble with this too. You can cause undefined behavior with completely safe code by making concurrent modifications to a fat pointer. The writes won't be atomic, and the pointer can be interpreted as the wrong type. E.g. in thi
338.
▲
by
singron
3y ago
Yes. The text says it's net revenue, which is gross revenue minus COGS.
339.
▲
by
singron
3y ago
Beating plain LRU isn't very interesting, but they also evaluated a bunch of other algorithms (e.g. ARC) and concluded that it performed better than those as well. I know the ARC paper discusses that other algorithms are often better i
340.
▲
by
singron
3y ago
You can set work_mem to limit per-process memory and max_parallel_workers_per_gather to limit the number of CPUs, although I don't think there is a general way to limit the CPU to less than 1 CPU. If you rewrite your query, you can add
341.
▲
by
singron
3y ago
Aren't pizza boxes already compostable? What was going on? I would have loved to seen the investor pitches and board meetings.
342.
▲
by
singron
3y ago
Netflix has 74.4 million subscribers in the US and Canada. In q1, they added net 100k subscribers or about 1100/day. With some algebra, we can deduce that cancellations increased 60% in this time period. However, we can't calculat
343.
▲
by
singron
3y ago
Herbicides are generally absorbed into plants and can't be washed off. This is a non-selective herbicide, so it usually wouldn't intentionally be used on produce, since it would kill the crop. However, sometimes herbicides are use
344.
▲
by
singron
3y ago
I feel like we learned 20 years ago that buying proprietary software has a bunch of problems, so we switched to open source software. But in the last 10 years, we started buying software services, and now we have all those problems back aga
345.
▲
by
singron
3y ago
You can lose money in options, which means the EV can be negative. E.g. you leave the company and are forced to exercise or abandon the options. If you exercise, the company can stay private until you die or liquidate at less than what you
346.
▲
by
singron
3y ago
It does CREATE TABLE ... AS SELECT * FROM table ORDER BY, which isn't too bad. Then it runs CREATE INDEX for all your indexes, which is usually faster than CREATE INDEX CONCURRENTLY. However, while these are running, a trigger is inser
347.
▲
by
singron
3y ago
The customer has clear cause. Fitness for purpose, warranty, etc. The municipality probably doesn't. If anything, they should try to coordinate a class action lawsuit among consumers.
348.
▲
by
singron
3y ago
If your pg database improves with CLUSTER, you can use pg_repack instead to achieve the same effect without downtime. Besides reordering the heap, it will also clear out bloat from the heap and indexes. I highly recommend partitioning if yo
349.
▲
by
singron
3y ago
The clean room described above is a fairly bullet proof technique, but it's only been employed very few times and is not necessary to create an original work. Nearly every work was produced by people who were exposed to other copyright
350.
▲
by
singron
3y ago
Reminds me about the overnight pizza issue. I.e. the USDA claims pizza that's 2 hours old will kill you despite people eating old pizza all the time and probably no documented significant negative consequences. https://news.
351.
▲
by
singron
3y ago
Just to be clear, this applies to only the most popular parts of National Parks. Most National Parks don't require permits or they are easy to get. There are also tons of ways to hike that aren't National Parks. If you have the sk
352.
▲
by
singron
3y ago
There are certain risks that aren't worth hedging in a stable country like the US. E.g. you don't hedge treasury bond defaults because in the unlikely event that happens, your money is probably worthless anyway and you would rathe
353.
▲
by
singron
3y ago
It looks like a lot of failed kickstarters. I.e. extremely ambitious, small team, too little funding, and unlikely to succeed. I think Kickstarter won't even let you make these anymore and apparently GoFundMe didn't want it either
354.
▲
by
singron
3y ago
In bash, you can use `declare -n`. E.g. var=world declare -n tmp="hello_$var" tmp=value printf '%s\n' "$hello_world" # value I highly recommend this pattern if you want to emulate jagged 2d
355.
▲
by
singron
3y ago
For instance at Google, taking vacation in workday puts an OOO event on your Google calendar. Then the oncall scheduler takes that into account along with your oncall history when it schedules new rotations. You only have to get someone to
356.
▲
by
singron
3y ago
All those writes happen in big blocks with other updates, so the number of writes per update is still relatively low. Compare that to e.g. postgres where a single update causes quite a few page writes that probably don't get batched up
357.
▲
by
singron
4y ago
NZ doesn't have a separate capital gains rate like the US, but capital gains are still taxed as income, so donating stocks might actually be more worthwhile there unless there is some special tax treatment. Obviously simplified filing
358.
▲
by
singron
4y ago
California also has the reverse limit on electronic filing. If you make more than a certain amount, you have to mail in paper forms.
359.
▲
by
singron
4y ago
In the US that's not possible because you only deduct charitable gifts if you itemize, and you decide that after the tax year when you file. Your employer can reduce your pay and give a gift on your behalf, which is essentially the sam
360.
▲
by
singron
4y ago
Is it really simpler to document income to PG&E for every household in California, every year, in perpetuity? Household income isn't tracked by the IRS or FTB, which tracks individual income, so they need a different reporting stru
More ›