HackerTrans
TopNewTrendsCommentsPastAskShowJobs

rigtorp

52 karmajoined 12 yıl önce
https://rigtorp.se

comments

rigtorp
·dün·discuss
You would use one of those approaches:

If you align and pad each slot there won't be any false sharing and the stream prefetcher can kick in if there's only one producer or consumer.

If you use bijective hashing you reduce false sharing without aligning and padding. This can save memory at the expense of the stream prefetcher never kicking in.
rigtorp
·evvelsi gün·discuss
Here's my widely used implementation of this approach in C++: https://github.com/rigtorp/MPMCQueue
rigtorp
·evvelsi gün·discuss
That looks like a rewrite of my earlier work: https://rigtorp.se/ringbuffer/
rigtorp
·6 ay önce·discuss
Better to use the Gmail API to incrementally backup your mail: https://github.com/rigtorp/gmbackup
rigtorp
·6 ay önce·discuss
I have a tool that saves each mail as a single file using the Gmail API: https://github.com/rigtorp/gmbackup
rigtorp
·10 ay önce·discuss
Interesting, of course many computations can be expressed as a graph. In the case of the bipartite graph we perform belief propagation on to decode LDPC where is the optimization from the distributive property? The parity matrix would typically be constructed so that there's few subexpression to factor out, to maximize the error correcting properties.

I agree both FFT and belief propagation can be expressed as message passing algorithms.
rigtorp
·10 ay önce·discuss
How is belief propagation used for decoding LDPC codes related to FFT?