HNHacker News
TopNewBestAskShowJobs

AnanasAttack

47 karma · joined January 11, 2019

submissionscomments
AnanasAttack··on Correctly implementing a spinlock in Modern C++
Correctly using a spinlock: Never when preemption is enabled
AnanasAttack··on Lockless Algorithms for Mere Mortals
You can totally have memory barriers in macros. It doesn't have much to do with the language at all
AnanasAttack··on LinkedIn is copying the contents of my clipboard on every keystroke
I always feared sites would do things like this so I clear the clipboard/fill it with garbage after usage
AnanasAttack··on Go vs. Crystal Performance
People do whatever they can to "win" on these benchmarks, so the resulting code is often not idiomatic
AnanasAttack··on Nand2Tetris Hack assembler implemented in Rust
It seems anything is newsworthy here when it's in Rust
AnanasAttack··on The Shapes of Code
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
AnanasAttack··on C++ coroutines: Initial implementation pushed to master
C++ coroutines are stackless
AnanasAttack··on Mutexes are faster than Spinlocks
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
AnanasAttack··on A More Natural Stackless Coroutine in C That Maintains Local Variables
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
AnanasAttack··on The Swedish phoneme notorious for having a dedicated IPA symbol, /ɧ/ (2016)
Only stød is unusual. It is written with a superscript glottal stop (ˀ) letter
AnanasAttack··on Avoiding Instruction Cache Misses
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.
AnanasAttack··on What is a coder's worst nightmare?
How about infringing on a patent for inventing something independently without knowing it?
AnanasAttack··on New Causes of Autism Found in Noncoding DNA
How is that naive or arrogant?
AnanasAttack··on Efficient IO with io_uring [pdf]
What do you dislike about edge triggered mode?
AnanasAttack··on Geohash in Golang Assembly (2018)
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.
AnanasAttack··on Docli – A declarative language for command-line interfaces in Go
Not that unusual really. Whenever you hear about new stuff, chances are it's better to look it up on Wikipedia first.
AnanasAttack··on The reason America is scared of Huawei: internet-connected everything
>I'd much rather ...

How can you be sure that the NSA is any better than the chinese?

AnanasAttack··on Writing a Self-Mutating x86_64 C Program (2013)
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?
AnanasAttack··on Writing a Self-Mutating x86_64 C Program (2013)
>Are there any languages that could actually make use of self modifying code? JIT languages already do this.