Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
nhaehnle
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
9 ms
·
31.
▲
by
nhaehnle
8y ago
I do recommend you give it a try. I was in a similar situation as you, although I made the conscious decision to teach myself "proper" typing when I was in my mid-20s. I don't think it has made my typing significantly faster
32.
▲
by
nhaehnle
8y ago
You mean like HIP?[0] [0] https://github.com/ROCm-Developer-Tools/HIP
33.
▲
by
nhaehnle
8y ago
I think there are different concepts of "cost" and "expensive" at play in this discussion which can lead to this kind of misunderstanding. Having the population located in dense urban areas is more efficient and therefor
34.
▲
by
nhaehnle
8y ago
> "The Times 03/Jan/2009 Chancellor on brink of second bailout for banks". This kind of motivation has arguably always been about people misunderstanding economics. In this particular quote: government bailouts are no
35.
▲
by
nhaehnle
8y ago
Not even writing text. The interface is just terrible for that. Obviously a day may come where people plug their phones into docking stations that are equipped with a keyboard and a monitor, but it seems likely that we'll stick to ligh
36.
▲
by
nhaehnle
8y ago
This is a common misunderstanding. Using foreign currencies is very much legal almost everywhere. The distinction of "legal tender" is that (1) the state expects payment in the domestic currency and (2) when there is a dispute in
37.
▲
by
nhaehnle
8y ago
Sorry, but no. Coinage was the right of kings for millenia. According to historians, the entire history of using coins as money started with governments basically inventing the use of coins as a technique for simplifying the logistics of th
38.
▲
by
nhaehnle
8y ago
Okay, it's a fair point that '(lock) xchg' can potentially be faster than 'lock cmpxchg'. I wouldn't say it's really an ideal spinlock, because under real loads there are other considerations. That's
39.
▲
by
nhaehnle
8y ago
That's all well and good, but: > As such, the optimal spinlock implementation on x86 doesn't use the LOCK prefix at all! You rely upon the memory-ordering consistently guaranteed by the x86 processor, and let the cache-coherenc
40.
▲
by
nhaehnle
8y ago
This seems extremely suspicious. Of course it depends on the nature of the data structure, but in the presentation he compares an atomic increment with a non-atomic increment guarded by a spinlock and comes to the conclusion that the latter
41.
▲
by
nhaehnle
8y ago
> any 10 year old can do that Is this kind of hyperbole really necessary?
42.
▲
by
nhaehnle
8y ago
The interesting thing from a German perspective is that over here, unions seem to have a much more positive influence on business decisions. I wonder where the difference is coming from.
43.
▲
by
nhaehnle
8y ago
I don't think they're claiming they have already achieved this speedup. They're claiming some speedup, plus the possibility of achieving more. Also, as a sibling comment mentions, the 10x claim is pretty disingenuous in the
44.
▲
by
nhaehnle
8y ago
Your last point is basically what Spectre v1 mitigations are all about, at least if you throw in the word "speculation" somehow. The rule is: don't speculate past branches that depend on untrusted data (though there are certa
45.
▲
by
nhaehnle
8y ago
Is it theoretically possible? Maybe. Is it practical? Almost certainly not. Keep in mind that it's not just the L1 cache you potentially need to worry about, but also all the higher level caches, which are really like remote nodes in a
46.
▲
by
nhaehnle
8y ago
> The problem with Linus is that he just smears it around aimlessly I take it you don't really read a lot of Linus' mail? I find it hard to believe that somebody would think that, unless they only got to see a highly biased
47.
▲
by
nhaehnle
8y ago
That is only true for non-negative floating point numbers. It's still useful though. Interestingly, posits as originally proposed do have this property (except for infinity).
48.
▲
by
nhaehnle
8y ago
> How is Kara being offended a smart and socially conscious decision? That's not what the article is saying. The article is not saying that Kara being offended is smart and socially conscious. The article does not judge whether
49.
▲
by
nhaehnle
8y ago
Unums are an odd duck, but the related posits from the same person make a lot of sense. They extend the range of floating point numbers by slowly tapering the relative accuracy the further you get away from 1. I find the paper[0] very reada
50.
▲
by
nhaehnle
8y ago
I largely agree with you, although I think one should place less focus on "trust". It is too vague a concept, and I believe it is too often used to confuse rather than enlighten, and to beat well-intentioned politics into submissi
51.
▲
by
nhaehnle
8y ago
Different kinds of limits and constraints. I may not have made that perfectly clear in my original comment, but on the other hand, the real meaning should have been obvious if you had used a generous reading of what I wrote. The point is th
52.
▲
by
nhaehnle
8y ago
> There are real limits to how much money we have. I think it's very important for us to be aware that while this is true for private individuals, companies, and local governments, it is totally false for monetarily sovereign go
53.
▲
by
nhaehnle
9y ago
This is a very good point, and I agree. No matter how you do it[0], alignment is bad for maintainability. It happens that someType or someFunctionName changes, and if you use alignment, you'll have to re-align all those parameters. Thi
54.
▲
by
nhaehnle
9y ago
This is why you use tabs for indentation and spaces for alignment. Too bad most editors don't have good support for that.
55.
▲
by
nhaehnle
9y ago
Aside from the unnecessary snarkiness, here's my main reason for downvoting you: Even somebody who is familiar with the concept of man pages would have no chance of knowing that xset is the one to look for. Discoverability is super
56.
▲
by
nhaehnle
9y ago
I don't see how that could be. Spectre 2 is about code in a less trusted domain A introducing an otherwise impossible branch target used by branch prediction on code in a trusted domain B. So a solution that adds tag bits to the BTB to
57.
▲
by
nhaehnle
9y ago
That's a good point. Ideally the ISA would allow user level code to also toggle a flag that affects the BTB. That would allow embedding JIT code while guarding against Spectre 2 (fixing the BTB injection). I don't think you really
58.
▲
by
nhaehnle
9y ago
I'd say both Spectre 2 and Meltdown are fairly straightforward to fix in hardware without performance degradation (though probably at the cost of a bit more circuitry), so that's most likely what they did. For Meltdown, you need t
59.
▲
by
nhaehnle
9y ago
I'll make an unconventional suggestion that, in addition to just brushing up on high-school mathematics, you should read Gödel, Escher, Bach by Hofstadter. It's a very meandering book, but it contains a lot of interesting ideas re
60.
▲
by
nhaehnle
9y ago
It's true that symmetric crypto isn't entirely broken by quantum computers, although in many cases the key sizes need to be doubled. However, I wrote my original statement with that fully in mind, because symmetric crypto by itsel
More ›