Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
pg314
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
11 ms
·
61.
▲
by
pg314
8y ago
Of course that code is broken (relies on undefined behavior) when i is zero, which is a totally reasonable input for a rotate function. A nice illustration of the pitfalls of undefined behavior. You can find a correct implementation in a bl
62.
▲
by
pg314
8y ago
Cargo bikes? Something like an Urban Arrow Tender [1] can transport up to 350 kg. How often do you need something heavier? [1] https://www.treehugger.com/bikes/urban-arrow-e-cargo-bike-re...
63.
▲
by
pg314
8y ago
> As a runtime query system it is completely unsuitable. Millions of users beg to differ.
64.
▲
by
pg314
8y ago
"Architecture of a Database System" by Hellerstein, Stonebraker and Hamilton [1], gives a good overview. The source code and documentation of PostgreSQL is excellent if you want to dive deeper. [1] http://db.cs.berkeley
65.
▲
by
pg314
8y ago
> And my response is "Of course it's not, but if you've got a 3 month old newborn at home, have just been laid off, and are trying to conserve cash so you don't go bankrupt before getting another job (which, BTW, you
66.
▲
by
pg314
8y ago
> Apple sells globally, should Apple also pay for the welfare of the countries where it sells its product? Yes. And they do in countries which charge VAT. They should arguably be taxed on the profits they make in the territories they sel
67.
▲
by
pg314
8y ago
> Every European capital / big city has seen absolutely massive increases in rent and house prises since the ECB started printing money. For Brussels at least, that is simply not true. See the graph in section 'Brussels Hoofdst
68.
▲
by
pg314
8y ago
Buffett bought 75 million Apple shares last quarter, paying market price for a very successful company. His investment philosophy is based on making the distinction between the market price of something and its intrinsic value, and looking
69.
▲
by
pg314
8y ago
> This would light a home for an hour, with LED bulbs and careful usage. Do you have the equivalent of 50 LED bulbs (60W equivalent [1]) burning at a time? Do you consider that careful usage? [1] https://www.amazon.com/Ph
70.
▲
by
pg314
8y ago
> Europe doesn't have the same problem the rest of the 1st world has with obesity. Europe has the same problem, only to a lesser degree. According to [1]: Weight problems and obesity are increasing at a rapid rate in most of the EU
71.
▲
by
pg314
8y ago
> You mean he could make less money by running his company inefficiently and that would be good for people? It would definitely be good for the warehouse workers who are being exploited at the moment. Do you think efficiency goes above a
72.
▲
by
pg314
9y ago
But then why do you need the militia?
73.
▲
by
pg314
9y ago
In a democracy it is the role of the free press, the courts and elections to defend against government overreach. Do you really believe that the 20,000 to 60,000 estimated [1] militia members in the US is what is defending you agains govern
74.
▲
by
pg314
9y ago
I'm not sure which point you are trying to address, but where did you get your data? According to the data collected by the Washington Post [1], in each of the years since 2015, less than half of the victims (excluding 2018 the percent
75.
▲
by
pg314
9y ago
> Has society changed so much in 200 years that armed opposition to the government has become impossible? The US govs failure to control Afghanistan would argue: no. As your Afghanistan example illustrates, you don't need a right to
76.
▲
by
pg314
9y ago
> the guys who wrote the original rules for the country considered gun ownership so essential that they placed it second only to the freedom of expression. That is an appeal to authority. Those guys were not handed down the word of god f
77.
▲
by
pg314
9y ago
> Therefore if everyone fights back when "they" come for you, the outcome for society is positive, even if hopeless for individuals. The insane gun ownership in this country could be a benefit. Sure, you're not going to be
78.
▲
by
pg314
9y ago
> 2. There is some value to Blockchain technology, so the value is not $0. The value of current crypto-currencies might very well be zero, even if there is some value to blockchain technology. > 4. The global market is still tiny? The
79.
▲
by
pg314
9y ago
That's a problem with AWS RDS PostgreSQL, not with Citus and TimescaleDB.
80.
▲
by
pg314
9y ago
> Yes. Sometimes up to 500x faster. It's not the index which is important but the table itself. PostgreSQL tables are heap tables. The index might be ordered by month but the rows it referrs to can be spread throught the entire larg
81.
▲
by
pg314
9y ago
Is there that much of a performance difference, though? In your example the btree of the index of the 2 years of data is probably 1 level deeper than that of an individual month. If you're mostly querying the last month, only that part
82.
▲
by
pg314
9y ago
You seem to be under the incorrect assumption that it is currently sitting in a foreign warehouse as bricks of $100 bills collecting dust. Nothing could be further from the truth. According to page 49 of Apple's yearly report [1] at th
83.
▲
by
pg314
9y ago
> If they bring the money back then inevitably they'd spend it back into the US economy either through direct job creation or buying things. That is a misconception. It's not like they are storing dollar bills in warehouses on
84.
▲
by
pg314
9y ago
A 'personal tax increase' does not have to be across the board. You could e.g. increase the marginal rate for incomes above $1 million, while keeping other rates the same. That would not be politically difficult. Divide et impera.
85.
▲
by
pg314
9y ago
> then the shareholders will invest it. Or use it for consumption. And that consumption or those investments are not necessarily in the US. Where do you think that money is now? It's not like it is stored as dollar bills in some war
86.
▲
by
pg314
9y ago
> to repatriate much of its overseas cash and invest it here in the US. Where in the article does it state that they will invest the repatriated cash in the US? The only concrete number is the $38 billion tax payment upon repatriation, w
87.
▲
by
pg314
9y ago
If you're talking about Walmart, they announced a one-time bonus of up to $1,000. Walmart estimates that it will cost about $400 million [1], and they employ 2.3 million people [2], so the average bonus is under $200. Meanwhile Walma
88.
▲
by
pg314
9y ago
> These are two different things because they are two different sets of people. The sets mostly overlap. The top 10 of the richest people was the same in 2016 and 2017 [1]. These 10 people saw their net worth increase by $107 billion. [1
89.
▲
by
pg314
9y ago
I live in a city that is not flat. If you have a bicycle with gears that is no problem.
90.
▲
by
pg314
9y ago
Under some assumptions it does handle inserts. From [1]: Finally, assume that the inserts follow roughly a similar pattern as the learned CDF; [...] Under these assumptions the model might not need to be retrained at all. [1] https:
More ›