Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
sherincall
searching Neon…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
6 ms
·
1.
▲
by
sherincall
1y ago
> completely impossible with printf Not printf exactly, but I've found bugs with a combination of mprotect, userfaultfd and backtrace_symbols when I couldn't use HW breakpoints. Basically, mark a set of pages as non-writable so
2.
▲
by
sherincall
1y ago
wcc can do that for you: https://github.com/endrazine/wcc
3.
▲
by
sherincall
3y ago
For whatever it's worth it to you, I've been with NVIDIA for over 10 years and I wouldn't switch to F,A,A,N nor G for even 2x my total comp. Feel free to shoot any questions to myusername@gmail.com if it'll help you deci
4.
▲
by
sherincall
3y ago
Because of stock appreciation, they'd need to pay up to 10x what the other company is already paying. Consider a senior SWE at e.g. NVIDIA making $300k, let's say halfsies split between base and RSU. The $150k RSU grant from a few
5.
▲
by
sherincall
4y ago
Some more discussion and clarifications about this at https://github.com/NVIDIA/open-gpu-kernel-modules/discussion...
6.
▲
ST3 Update now is ST4
(forum.sublimetext.com)
36 points
by
sherincall
5y ago
|
11 comments
7.
▲
by
sherincall
5y ago
C language makes a difference between Undefined Behavior and Implementation Defined Behavior. In this case it's the former (n1570 section 7.24.2.1). Any code that invokes UB is not a valid C program, regardless of implemention. More pr
8.
▲
by
sherincall
5y ago
The memcpy API says that is Undefined Behavior, that program was never valid. Not much different from bitbanging specific virtual addresses and expecting they never change. For overlapping memory, use memmove()
9.
▲
by
sherincall
6y ago
There is now a big fat disclaimer at the top of the file saying basically the same thing: https://github.com/nothings/stb/blob/master/stb_truetype.h#L...
10.
▲
by
sherincall
6y ago
Yes, you're totally right, my math is way off.
11.
▲
by
sherincall
6y ago
Be that as it may, existing software that used to work will no longer work, and the developers might not be around/able to fix it. There are also cases of custom suballocators or arrays of objects - Looking at an address makes it possi
12.
▲
by
sherincall
6y ago
The estimated number of atoms on earth is on the order of 1e50, which is 60 bits. If you take the 4 bits out of the 64bit address for tagging, you can still address individual atoms. EDIT: My math is bad, see comments below. I can unsarcast
13.
▲
by
sherincall
6y ago
I don't think it is fair to pin this on steam. Plenty of games on steam run without steam, and require no installation - just copy them over to a different PC. They often come with binaries for all supported OSes at once, so your windo
14.
▲
by
sherincall
6y ago
Certainly. And I hope same thing happens with nim. All I'm advising against is people betting their livelihood on nim reaching critical mass before a single unexpected event happens that removes the benevolent dictator from the picture
15.
▲
by
sherincall
6y ago
While I rather like nim as a language, there's a few more cons that need to be considered for any real use of the language: - It has a bus/lottery factor of 1. The vast majority of all the changes were done by Araq and I have very
16.
▲
by
sherincall
6y ago
I really doubt any compilers will warn on void* casts in pure C. Usually the warning is if you do: int *x; char *y = x; or similar. But if x was "void*", it really should work on all C compilers.
17.
▲
by
sherincall
6y ago
There are several instances of bad syntax in the article. Easy to make mistakes if you don't write C daily. I assume they meant to use calloc() here instead of malloc().
18.
▲
by
sherincall
6y ago
If you are targeting both C and C++, you do want to cast. If it's just C, the advice is not to cast because a) no point in repeating yourself, and b) it could mask an error if malloc was not declared. a) is hardly an issue in a one-off
19.
▲
by
sherincall
6y ago
Even riding a motorcycle without a helmet has externalities - more severe injuries from accidents could raise insurance rates across the board, and these people take from the ER/ICU capacity that others could use. I guess you could hav
20.
▲
by
sherincall
6y ago
The "Federal Republic of Yugoslavia" (FRY) existed until 2003, when it was renamed to "Serbia and Montenegro", which split into separate countries of "Serbia" and "Montenegro" in 2006. "Serbia an
21.
▲
by
sherincall
6y ago
I've kind of taken to calling it a 'disorder' when talking to others, as that quickly carries the "I can't do this thing that you can" message. I can see how 'disorder' might be insensitive or offensi
22.
▲
by
sherincall
6y ago
The most spectacular thing about this is that no matter how people visualize things, everyone always assumes the rest of are the same. So for me it was completely mind blowing that others can truly _see_ things, while for them they couldn&#
23.
▲
by
sherincall
6y ago
Since I had discovered I have this condition (about 9 years ago), I spent a lot of time interrogating many people about how _they_ 'see' things, and it is definitely a spectrum, though I'm very close to one end of it. For exa
24.
▲
by
sherincall
6y ago
Yes. Only voluntary visualizations are impaired. (N=2)
25.
▲
by
sherincall
6y ago
Various sources are putting the base rate of Aphantasia between 1% and 3%. Both myself and my brother have it, but neither of our parents do. I feel like this is evidence for it being a recessive inherited disorder. Considering we're b
26.
▲
by
sherincall
7y ago
Doesn't have to be single-threaded even. Main writes the pointer at the start, and no one else is going to change it, just read from it.
27.
▲
by
sherincall
7y ago
If you thought about portability when you were writing the code, then yes, you just flip a compiler switch and you're good to go. A lot of the older 32bit software didn't ever consider the need to switch to 64bit in the future, so
28.
▲
by
sherincall
7y ago
> And the only cost is that old binaries (not old code, old binaries) will no longer run without being rebuilt. Not always true. There's plenty of 32bit code that can't trivially be ported over to 64bit, even if you have the fu
29.
▲
by
sherincall
7y ago
You can LD_PRELOAD an .so that overrides `open` and family of functions, and drop opens based on a whitelist/blacklist.
30.
▲
by
sherincall
7y ago
One thing not mentioned here (nor in previous discussions of the article, it seems) is that DMA is typically not coherent with the CPU caches. This is kinda visible from the little diagram at the top, with the disk sitting on the other side
More ›