Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
AnanasAttack
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
5 ms
·
1.
▲
by
AnanasAttack
5y ago
Correctly using a spinlock: Never when preemption is enabled
2.
▲
by
AnanasAttack
6y ago
You can totally have memory barriers in macros. It doesn't have much to do with the language at all
3.
▲
by
AnanasAttack
6y ago
I always feared sites would do things like this so I clear the clipboard/fill it with garbage after usage
4.
▲
by
AnanasAttack
6y ago
People do whatever they can to "win" on these benchmarks, so the resulting code is often not idiomatic
5.
▲
by
AnanasAttack
6y ago
It seems anything is newsworthy here when it's in Rust
6.
▲
by
AnanasAttack
7y ago
The comment doesn't explain why there even is an offset in the first place. Who put it there and why? I think this should be explained as well
7.
▲
by
AnanasAttack
7y ago
C++ coroutines are stackless
8.
▲
by
AnanasAttack
7y ago
Thread scheduling (or waking up cores) is slow. Because of this, mutexes will look better on dumb benchmarks, as the contending threads keep going to sleep, while the single succesful owner has practically uncontended access
9.
▲
by
AnanasAttack
7y ago
I can't be the only one who finds it cleaner to just use structs with state and pointers to them, than all such macro and typedef hackery
10.
▲
by
AnanasAttack
7y ago
Only stød is unusual. It is written with a superscript glottal stop (ˀ) letter
11.
▲
by
AnanasAttack
7y ago
I've been wondering about the impact of insturction cache misses and potential downsides of executable bloat caused by C++ templates, but have never seen a real case of this being a problem.
12.
▲
by
AnanasAttack
7y ago
How about infringing on a patent for inventing something independently without knowing it?
13.
▲
by
AnanasAttack
7y ago
How is that naive or arrogant?
14.
▲
by
AnanasAttack
7y ago
What do you dislike about edge triggered mode?
15.
▲
by
AnanasAttack
8y ago
You're right: No fun is EVER allowed. Is that a smile on your face? Doesn't look very productive to me, now get back to work.
16.
▲
by
AnanasAttack
8y ago
Not that unusual really. Whenever you hear about new stuff, chances are it's better to look it up on Wikipedia first.
17.
▲
by
AnanasAttack
8y ago
>I'd much rather ... How can you be sure that the NSA is any better than the chinese?
18.
▲
by
AnanasAttack
8y ago
I've seen points like these made before, but never really understood how. Can you give an example of self-modifying code becoming a security issue?
19.
▲
by
AnanasAttack
8y ago
>Are there any languages that could actually make use of self modifying code? JIT languages already do this.