Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
damon_dam
searching Neon…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
6 ms
·
1.
▲
by
damon_dam
2y ago
Fun stuff. A long time ago, I did something similar by reverse-engineering the Adobe Illustrator format (technically a PostScript macro dialect.) We generated files that could then get touched up by artists. Everything but PostScript itself
2.
▲
by
damon_dam
2y ago
> How do I allocate memory for addressing it with FS/GS? Allocate the variable normally, then compute the offset in one thread (e.g. offset = uintptr_t(&variable) - get_fs()), then access it by adding the offset to FS in any thr
3.
▲
by
damon_dam
2y ago
To the author: If you have a specific situation that the codegen is failing to optimize well (e.g. the ctor cases that you ran into) you can store the offset to your variable in a non-TLS global, then manually add the FS/GS to it. Use
4.
▲
by
damon_dam
2y ago
I've switched the default to DDG when they started requiring JS. I run with JS enabled, but the fact that it's now required screams fingerprinting and other shenanigans. 90% of my searches are trivial, so DDG is now a better defau
5.
▲
by
damon_dam
2y ago
I don't really disagree with what you wrote. To expand upon my argument, the issues you mention can also be self-policed, or maybe enforced with higher safety levels of the presumptive -W20 switch: - No reference variables in user code
6.
▲
by
damon_dam
2y ago
Agreed. I would add to your argument as follows. If you stick with "21st Century C++" [1], you never have to use a pointer. At some point, there will be (say) a -W20 flag that produces a warning if you use a pointer or other poten
7.
▲
by
damon_dam
2y ago
Halloween came early this year. Pretty ghoulish too.
8.
▲
by
damon_dam
2y ago
> Who says you can’t make a library that does both? Of course you can. I just meant that the linked article didn't. > On LR/SC: to any atomics experts listening, isn’t it technically “obstruction-free” (as per the Wikipedia
9.
▲
by
damon_dam
2y ago
> How are you counting "advantages", and how did you come up with the requisite number being 4 or 5? The vagueness was intentional. There is of course no homogeneous way of combining advantages into a cardinal measure. It'
10.
▲
by
damon_dam
2y ago
A much better solution to the ABA problem is to use load-linked and store-conditional instructions [1] on platforms where they are available (ARM, RISC-V, etc.) Unfortunately x86 is not one of them. That's when CMPXCHG16B on x86-64 com
11.
▲
by
damon_dam
2y ago
"Safety" is just an attack vector. AI has a few very motivated enemies with a lot to lose.