@chandlerc1024 By any chance is the source code for your "RNG" random number generator used in your 2017 CPPcon talk available anywhere?pic.twitter.com/ZwYHbOox3H
I'm worried that the baby thinks people can't change.
You can add location information to your Tweets, such as your city or precise location, from the web and via third-party applications. You always have the option to delete your Tweet location history. Learn more
Add this Tweet to your website by copying the code below. Learn more
Add this video to your website by copying the code below. Learn more
By embedding Twitter content in your website or app, you are agreeing to the Twitter Developer Agreement and Developer Policy.
| Country | Code | For customers of |
|---|---|---|
| United States | 40404 | (any) |
| Canada | 21212 | (any) |
| United Kingdom | 86444 | Vodafone, Orange, 3, O2 |
| Brazil | 40404 | Nextel, TIM |
| Haiti | 40404 | Digicel, Voila |
| Ireland | 51210 | Vodafone, O2 |
| India | 53000 | Bharti Airtel, Videocon, Reliance |
| Indonesia | 89887 | AXIS, 3, Telkomsel, Indosat, XL Axiata |
| Italy | 4880804 | Wind |
| 3424486444 | Vodafone | |
| » See SMS short codes for other countries | ||
This timeline is where you’ll spend most of your time, getting instant updates about what matters to you.
Hover over the profile pic and click the Following button to unfollow any account.
When you see a Tweet you love, tap the heart — it lets the person who wrote it know you shared the love.
The fastest way to share someone else’s Tweet with your followers is with a Retweet. Tap the icon to send it instantly.
Add your thoughts about any Tweet with a Reply. Find a topic you’re passionate about, and jump right in.
Get instant insight into what people are talking about now.
Follow more accounts to get instant updates about topics you care about.
See the latest conversations about any topic instantly.
Catch up instantly on the best stories happening as they unfold.
@chandlerc1024 By any chance is the source code for your "RNG" random number generator used in your 2017 CPPcon talk available anywhere?pic.twitter.com/ZwYHbOox3H
:blink: I probably have it ... somewhere ... lemme go spelunking...pic.twitter.com/lz8vZGsJ5B
Sorry for the deep pull, but your L1 cache miss rate for the 8mb case in this talk looked way lower than what we expected. So some of us were trying to figure out what actually happened. One (wild) guess was that RNG(count) produces highly coherent indices.
Possibly. I found the code. I can try to get it into a gist or something if useful. But to understand what went wrong w/ this, may be easier: its just a silly slide-code wrapper around `std::mt19937`, seeded the usual way and pushed through `std::uniform_int_distribution`.
Not sure exactly which standard library I was using, but my memory is that there have been a few bugs in the uniform distribution implementations in some. And MT isn't the best these days. But I didn't apply deep rigor to this, and so entirely possible there are other factors.
Super interested in what you end up with?
Will report back if we figure it out! Our only theories so far are a) bad RNG and b) the EPYC perf reading was new and flaky then. We haven't come up with anything else, except the absurd c) EPYC's prefetch predictor learned the whole random sequence (since it is repeated)
(b) is at least true. Not sure that's the cause, but the counters were ... not in great shape. (c) yeah, not betting on that one....
The period on MT is 2^19937 – 1, so we can safely put that as a "the predictor absolutely didn't store the entire period".
Well, although option c is absurd (as I said), it's not quite _that_ absurd. Chandler's 8mb benchmark runs the same series of 1,048,576 indices continuously in a loop, so the period is only 1,048,576.
Mmmm. How big is the branch cache? My intuition from the talk was that the branch predictor worked in terms of "tens of branches" at most, maybe the last 16 or 32 branches taken. But also it's been 2-3 years since I saw the video.
I'm not sure what they are on the chip from the lecture (which _is_ 3+ years old). But my guess would 256 entry BTB for L1 and 4K for L2.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.