Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
teo_zero
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
21 ms
·
421.
▲
by
teo_zero
2y ago
Mike supports $SPORT team the Compressors. He's so sure they are unbeatable that he accepts 50:1 bets against them. Patrick bets 100$ that they won't win this year's championship; Mike accepts. Later, the Compressors announce
422.
▲
by
teo_zero
2y ago
It's not you who's confused, it's that this part of the process is not described. We only have some hints, here: > If you called rope.offset_to_point(7234), the Rope would traverse its SumTree to find the Chunk that contai
423.
▲
by
teo_zero
2y ago
As I understand it, they do exactly what you say. TFA is about optimizing the last chunk's loop.
424.
▲
by
teo_zero
2y ago
Why? If you are hashing names, for example, or keywords, they can begin at whatever position inside the buffer. The case where you allocate a buffer, populate it with random contents and hash the whole of it is an artificial setup for bench
425.
▲
by
teo_zero
2y ago
> they will be aligned (all lowest bits being zero at the start I don't think so. At the start k will be equal to keyIn, which can point to any arbitrary memory location.
426.
▲
by
teo_zero
2y ago
While the benefit of processing chunks of 8 bytes is obvious, what's the purpose of grouping those into macrogroups of 4? Does it trigger any implicit parallelism I failed to spot? Or is it just to end this phase with the 4 h[] having
427.
▲
by
teo_zero
2y ago
Don't take me wrong, I'm not in the denial camp, quite the opposite in fact. But I cringe when I read a non sequitur like this: > “If you plot global temperatures against the concentration of CO2 in the atmosphere, they both fa
428.
▲
by
teo_zero
2y ago
Contrary to the original one, this editor doesn't automatically capitalize keywords. It was a sort of syntax highlighting that I haven't seen on contemporary editors and IDEs. Does anybody know of a plugin to do that for common ed
429.
▲
by
teo_zero
2y ago
> One workaround is to split the expense posting into several expense postings, each with its own date. Can a rule expeess such calculated fields like "set virtual date at 3 month before transaction date"? > A more strictly
430.
▲
by
teo_zero
2y ago
I've been doing manual accounting with spreadsheets for years, while looking for a smarter system. I wonder if your solution gives satisfactory answers to the issues I struggle with: 1. Entries in one month's CSV file may be repea
431.
▲
by
teo_zero
2y ago
At 10 the state insists to protect you against being hit by a car on dangerous roads, at 15 it gives you a license so you you can drive one along the very same roads! Education in Georgia must be excellent if they make responsible driver ou
432.
▲
by
teo_zero
2y ago
Not only jumps. The Motorola 68000 has a relative addressing mode where any sufficiently near address can be expressed as PC+offset. Offset is 16 bits, thus covering a local range of ±32kB, with the additional benefit of being position-inde
433.
▲
by
teo_zero
2y ago
Beware that the author is comparing an additional capacity (of BYD, estimated as 2.4M/yr) against a production (of Tesla, estimated as 1.8M/yr, while the capacity is nearly 3M/yr). Nitpicking, I know, but numbers are mean
434.
▲
by
teo_zero
2y ago
These examples are unambiguous. Try with something more spicy like return (A)*(B); which depends on A being a type or a variable.
435.
▲
by
teo_zero
2y ago
I didn't downvote your comment but understand why it looks "wrong": it's like, in a thread on English oddities, you replied to someone bringing up the "buffalo buffalo buffalo" example with the question "w
436.
▲
by
teo_zero
2y ago
> this is only relevant if you want to highlight the multiplication operator differently from the dereferencing operator Can you mention one editor which does that?
437.
▲
by
teo_zero
2y ago
It would be an interesting experiment. You would have to give up many concepts that have local relevance, while gaining better understanding with non-local interlocutors. I think the balance depends on how many of your daily interactions ha
438.
▲
by
teo_zero
2y ago
> NYC you’d get to work at 13:00 and go home at 21:00 And if you plan to meet your colleagues after dinner, would you say "see you tomorrow?".
439.
▲
by
teo_zero
2y ago
I don'tknow why we are having this discussion. The question was whether I (but I extrapolate to mean every programmer should) prove that not a single line can overflow, and the answer is yes, usually by proving that some variables are
440.
▲
by
teo_zero
2y ago
> > we have folks in Europe that can't even clone the repo due to it's size. > I have heard that some primary schools in Europe lack internet. Maybe they lack internet but teach their pupils how to write "its".
441.
▲
by
teo_zero
2y ago
Please note that you should ensure that overflow doesn't happen, not detect when it happens. Once you let it happen, it's undefined behavior. But you don't need to check each operation to ensure that none of them overflow. If
442.
▲
by
teo_zero
2y ago
> Normal dropbox behavior Ah, you mean by using some app or daemon. I excluded that possibility because on at least one of my laptops I'm not allowed to install anything, so for me "normal" behavior is using Dropbox as a c
443.
▲
by
teo_zero
2y ago
> Do you prove that every line of arithmetic in your program will not overflow for all possible inputs? If inputs come from outside, a vehement Yes!
444.
▲
by
teo_zero
2y ago
Never store the only copy of anything remotely important on any online service. Storing copies is ok, though, provided that sensitive information is encrypted.
445.
▲
by
teo_zero
2y ago
> store the password vault in dropbox No local backup? Do you rely on the network working all the time? I do something similar on the mobile phone (the reasining is, if there's no network, there's nothing I need to login to) bu
446.
▲
by
teo_zero
2y ago
Sorry, how is this different from what I said? The condition x>y, with x the subsidy and y the expense, is exactly what I intended with "subsidy they get [is] higher than its real cost".
447.
▲
by
teo_zero
2y ago
Then why on earth did they accept to sell me the cheaper fare?
448.
▲
by
teo_zero
2y ago
In the A->B->C example, probably the subsidy they get for B->C is so much higher than its real cost that they can use such "profit" to finance part of the first leg. If you skip the final leg, you risk spoiling their sche
449.
▲
by
teo_zero
2y ago
Houses are perhaps the exception, because hotel rooms, b&b's, cars, and many other rentals that are sold as services don't benefit from the same protection. I'd postulate it's because a house is not considered replac
450.
▲
by
teo_zero
2y ago
Ideally, prices should be consistent with effective costs. Practically, I would be content if prices of any single leg couldn't be negative. If leg A costs a and leg B costs b, the cost of A+B can be lower than a+b (you can offer bun
More ›